Searched refs:RTC_HOUR_ADDR (Results 1 – 1 of 1) sorted by relevance
40 #define RTC_HOUR_ADDR 0x2 macro85 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()