Home
last modified time | relevance | path

Searched refs:RTC_MONTH (Results 1 – 9 of 9) sorted by relevance

/rk3399_rockchip-uboot/drivers/rtc/
H A Dm41t60.c53 #define RTC_MONTH 0x5 macro
116 month = data[RTC_MONTH] & 0x3F; in rtc_validate()
127 (0x00 == years && 0x00 != (data[RTC_MONTH] & 0xC0))))) { in rtc_validate()
137 data[RTC_MONTH] = 0xC1; in rtc_validate()
160 tmp->tm_mon = bcd2bin(data[RTC_MONTH] & 0x1F); in rtc_get()
161 tmp->tm_year = cb2year(data[RTC_MONTH] >> 6) + bcd2bin(data[RTC_YEAR]); in rtc_get()
188 data[RTC_MONTH] = bin2bcd(tmp->tm_mon) & 0x1F; in rtc_set()
190 data[RTC_MONTH] |= year2cb(tmp->tm_year) << 6; in rtc_set()
H A Dds164x.c37 #define RTC_MONTH ( RTC_BASE + 0x06 ) macro
71 mon = rtc_read( RTC_MONTH ); in rtc_get()
117 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
H A Dds1556.c31 #define RTC_MONTH ( RTC_BASE + 0xe ) macro
71 mon = rtc_read( RTC_MONTH ); in rtc_get()
117 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
H A Dds174x.c28 #define RTC_MONTH ( RTC_BASE + 6 ) macro
68 mon = rtc_read( RTC_MONTH ); in rtc_get()
114 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
H A Dmc146818.c37 #define RTC_MONTH 0x08 macro
98 mon = mc146818_read8(RTC_MONTH); in mc146818_get()
144 mc146818_write8(RTC_MONTH, bin2bcd(tmp->tm_mon)); in mc146818_set()
H A Dmk48t59.c95 mon = rtc_read (RTC_MONTH); in rtc_get()
145 rtc_write (RTC_MONTH, bin2bcd(tmp->tm_mon)); in rtc_set()
H A Dds1306.c30 #define RTC_MONTH 0x05 macro
311 mon = rtc_read (RTC_MONTH); in rtc_get()
378 rtc_write (RTC_MONTH, bin2bcd (tmp->tm_mon)); in rtc_set()
/rk3399_rockchip-uboot/include/
H A Dmk48t59.h25 #define RTC_MONTH 0x1FFE macro
/rk3399_rockchip-uboot/include/linux/
H A Dmc146818rtc.h32 #define RTC_MONTH 8 macro