xref: /openbmc/linux/include/linux/mfd/rohm-shared.h (revision fe5a591b)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* Copyright (C) 2020 ROHM Semiconductors */
3 
4 
5 #ifndef __LINUX_MFD_ROHM_SHARED_H__
6 #define __LINUX_MFD_ROHM_SHARED_H__
7 
8 /* RTC definitions shared between BD70528 and BD71828 */
9 
10 #define BD70528_MASK_RTC_SEC		0x7f
11 #define BD70528_MASK_RTC_MINUTE		0x7f
12 #define BD70528_MASK_RTC_HOUR_24H	0x80
13 #define BD70528_MASK_RTC_HOUR_PM	0x20
14 #define BD70528_MASK_RTC_HOUR		0x3f
15 #define BD70528_MASK_RTC_DAY		0x3f
16 #define BD70528_MASK_RTC_WEEK		0x07
17 #define BD70528_MASK_RTC_MONTH		0x1f
18 #define BD70528_MASK_RTC_YEAR		0xff
19 #define BD70528_MASK_ALM_EN		0x7
20 
21 #endif /* __LINUX_MFD_ROHM_SHARED_H__ */
22