Home
last modified time | relevance | path

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

/external/u-boot/drivers/rtc/
Dm41t60.c52 #define RTC_MONTH 0x5 macro
115 month = data[RTC_MONTH] & 0x3F; in rtc_validate()
126 (0x00 == years && 0x00 != (data[RTC_MONTH] & 0xC0))))) { in rtc_validate()
136 data[RTC_MONTH] = 0xC1; in rtc_validate()
159 tmp->tm_mon = bcd2bin(data[RTC_MONTH] & 0x1F); in rtc_get()
160 tmp->tm_year = cb2year(data[RTC_MONTH] >> 6) + bcd2bin(data[RTC_YEAR]); in rtc_get()
187 data[RTC_MONTH] = bin2bcd(tmp->tm_mon) & 0x1F; in rtc_set()
189 data[RTC_MONTH] |= year2cb(tmp->tm_year) << 6; in rtc_set()
Dds164x.c36 #define RTC_MONTH ( RTC_BASE + 0x06 ) macro
70 mon = rtc_read( RTC_MONTH ); in rtc_get()
116 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
Dds1556.c30 #define RTC_MONTH ( RTC_BASE + 0xe ) macro
70 mon = rtc_read( RTC_MONTH ); in rtc_get()
116 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
Dds174x.c27 #define RTC_MONTH ( RTC_BASE + 6 ) macro
67 mon = rtc_read( RTC_MONTH ); in rtc_get()
113 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
Dmc146818.c36 #define RTC_MONTH 0x08 macro
97 mon = mc146818_read8(RTC_MONTH); in mc146818_get()
143 mc146818_write8(RTC_MONTH, bin2bcd(tmp->tm_mon)); in mc146818_set()
Dds1306.c29 #define RTC_MONTH 0x05 macro
310 mon = rtc_read (RTC_MONTH); in rtc_get()
377 rtc_write (RTC_MONTH, bin2bcd (tmp->tm_mon)); in rtc_set()
Dmk48t59.c94 mon = rtc_read (RTC_MONTH); in rtc_get()
144 rtc_write (RTC_MONTH, bin2bcd(tmp->tm_mon)); in rtc_set()
/external/u-boot/include/
Dmk48t59.h24 #define RTC_MONTH 0x1FFE macro
/external/u-boot/include/linux/
Dmc146818rtc.h32 #define RTC_MONTH 8 macro