Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/rtc/
H A Dm41t11.c40 #define RTC_HOUR_ADDR 0x2 macro
85 tmp->tm_hour = bcd2bin (data[RTC_HOUR_ADDR] & 0x3F); in rtc_get()
91 + ((data[RTC_HOUR_ADDR]&0x40) ? 100 : 0); in rtc_get()
96 if( !(data[RTC_HOUR_ADDR] & 0x80) ){ in rtc_get()
100 if( (cent & 0x1) != ((data[RTC_HOUR_ADDR]&0x40)>>7) ){ in rtc_get()
129 data[RTC_HOUR_ADDR] = bin2bcd(tmp->tm_hour) & 0x3F;/*handle cent stuff later*/ in rtc_set()
134 data[RTC_HOUR_ADDR] |= 0x80;/*we will always use CEB*/ in rtc_set()
142 data[RTC_HOUR_ADDR] |= (tmp->tm_year - CONFIG_SYS_M41T11_BASE_YEAR) > 100 ? 0x40 : 0; in rtc_set()
147 data[RTC_HOUR_ADDR] |= (cent & 0x1) ? 0x40 : 0; in rtc_set()