Go to the documentation of this file.
13 #ifndef __LINUX_MFD_SEC_RTC_H
14 #define __LINUX_MFD_SEC_RTC_H
48 #define RTC_I2C_ADDR (0x0C >> 1)
50 #define HOUR_12 (1 << 7)
51 #define HOUR_AMPM (1 << 6)
52 #define HOUR_PM (1 << 5)
53 #define ALARM0_STATUS (1 << 1)
54 #define ALARM1_STATUS (1 << 2)
55 #define UPDATE_AD (1 << 0)
58 #define BCD_EN_SHIFT 0
59 #define BCD_EN_MASK (1 << BCD_EN_SHIFT)
60 #define MODEL24_SHIFT 1
61 #define MODEL24_MASK (1 << MODEL24_SHIFT)
63 #define RTC_UDR_SHIFT 0
64 #define RTC_UDR_MASK (1 << RTC_UDR_SHIFT)
66 #define HOUR_PM_SHIFT 6
67 #define HOUR_PM_MASK (1 << HOUR_PM_SHIFT)
69 #define ALARM_ENABLE_SHIFT 7
70 #define ALARM_ENABLE_MASK (1 << ALARM_ENABLE_SHIFT)