Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/rtc/
H A Dds1337.c24 #define RTC_HR_REG_ADDR 0x2 macro
35 #define RTC_HR_REG_ADDR 0x3 macro
78 hour = rtc_read (RTC_HR_REG_ADDR); in rtc_get()
137 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
H A Dpt7c4338.c28 #define RTC_HR_REG_ADDR 0x2 macro
70 hour = rtc_read(RTC_HR_REG_ADDR); in rtc_get()
115 rtc_write(RTC_HR_REG_ADDR, bin2bcd(tmp->tm_hour)); in rtc_set()
H A Dds3231.c24 #define RTC_HR_REG_ADDR 0x2 macro
69 hour = rtc_read (RTC_HR_REG_ADDR); in rtc_get()
123 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
H A Dds1307.c34 #define RTC_HR_REG_ADDR 0x02 macro
88 hour = rtc_read (RTC_HR_REG_ADDR); in rtc_get()
163 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
225 buf[RTC_HR_REG_ADDR] = bin2bcd(tm->tm_hour); in ds1307_rtc_set()
282 tm->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in ds1307_rtc_get()
H A Drx8025.c35 #define RTC_HR_REG_ADDR 0x02 macro
89 hour = rtc_read(RTC_HR_REG_ADDR); in rtc_get()
153 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
H A Disl1208.c34 #define RTC_HR_REG_ADDR 0x2 macro
99 tmp->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in isl1208_rtc_get()
144 buf[RTC_HR_REG_ADDR] = bin2bcd(tmp->tm_hour) | 0x80; /* 24h clock */ in isl1208_rtc_set()