Searched refs:RTC_HOUR_ADDR (Results 1 – 1 of 1) sorted by relevance
42 #define RTC_HOUR_ADDR 0x2 macro87 tmp->tm_hour = bcd2bin (data[RTC_HOUR_ADDR] & 0x3F); in rtc_get()93 + ((data[RTC_HOUR_ADDR]&0x40) ? 100 : 0); in rtc_get()98 if( !(data[RTC_HOUR_ADDR] & 0x80) ){ in rtc_get()102 if( (cent & 0x1) != ((data[RTC_HOUR_ADDR]&0x40)>>7) ){ in rtc_get()131 data[RTC_HOUR_ADDR] = bin2bcd(tmp->tm_hour) & 0x3F;/*handle cent stuff later*/ in rtc_set()136 data[RTC_HOUR_ADDR] |= 0x80;/*we will always use CEB*/ in rtc_set()144 data[RTC_HOUR_ADDR] |= (tmp->tm_year - CONFIG_SYS_M41T11_BASE_YEAR) > 100 ? 0x40 : 0; in rtc_set()149 data[RTC_HOUR_ADDR] |= (cent & 0x1) ? 0x40 : 0; in rtc_set()