Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dm41t60.c48 #define RTC_SEC 0x0 macro
104 data[RTC_SEC] = 0x80; in rtc_validate()
105 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) { in rtc_validate()
118 if (0x59 < data[RTC_SEC] || 0x09 < (data[RTC_SEC] & 0x0F) || in rtc_validate()
132 data[RTC_SEC] = 0x00; in rtc_validate()
156 tmp->tm_sec = bcd2bin(data[RTC_SEC] & 0x7F); in rtc_get()
184 data[RTC_SEC] = (data[RTC_SEC] & 0x80) | (bin2bcd(tmp->tm_sec) & 0x7F); in rtc_set()
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-da9063.c28 RTC_SEC = 0, enumerator
127 .rtc_data_start = RTC_SEC,
155 .rtc_data_start = RTC_SEC,
171 tm->tm_sec = data[RTC_SEC] & config->rtc_count_sec_mask; in da9063_data_to_tm()
186 data[RTC_SEC] = tm->tm_sec & config->rtc_count_sec_mask; in da9063_tm_to_data()
235 if (!(data[RTC_SEC] & config->rtc_ready_to_read_mask)) { in da9063_rtc_read_time()
279 data[RTC_SEC] = 0; in da9063_rtc_read_alarm()
454 data[RTC_SEC] = 0; in da9063_rtc_probe()
482 if (config->rtc_data_start != RTC_SEC) in da9063_rtc_probe()
H A Drtc-max8925.c17 RTC_SEC = 0, enumerator
106 tm->tm_sec = ((buf[RTC_SEC] >> 4) & 0x7) * 10 in tm_calc()
107 + (buf[RTC_SEC] & 0x0f); in tm_calc()
147 buf[RTC_SEC] = (high << 4) + low; in data_calc()
H A Drtc-max8907.c21 RTC_SEC = 0, enumerator
75 tm->tm_sec = bcd2bin(regs[RTC_SEC] & 0x7f); in regs_to_tm()
91 regs[RTC_SEC] = bin2bcd(tm->tm_sec); in tm_to_regs()
H A Drtc-max8997.c54 RTC_SEC = 0, enumerator
77 tm->tm_sec = data[RTC_SEC] & 0x7f; in max8997_rtc_data_to_tm()
97 data[RTC_SEC] = tm->tm_sec; in max8997_rtc_tm_to_data()
269 data[RTC_SEC] |= (1 << ALARM_ENABLE_SHIFT); in max8997_rtc_start_alarm()
304 data[RTC_HOUR], data[RTC_MIN], data[RTC_SEC]); in max8997_rtc_set_alarm()
H A Drtc-rx6110.c86 RTC_SEC = 0, enumerator
121 data[RTC_SEC] = bin2bcd(tm->tm_sec); in rx6110_rtc_tm_to_data()
140 tm->tm_sec = bcd2bin(data[RTC_SEC] & 0x7f); in rx6110_data_to_rtc_tm()
H A Drtc-max8998.c56 RTC_SEC = 0, enumerator
77 tm->tm_sec = bcd2bin(data[RTC_SEC]); in max8998_data_to_tm()
95 data[RTC_SEC] = bin2bcd(tm->tm_sec); in max8998_tm_to_data()
H A Drtc-s5m.c32 RTC_SEC = 0, enumerator
176 tm->tm_sec = data[RTC_SEC] & 0x7f; in s5m8767_data_to_tm()
196 data[RTC_SEC] = tm->tm_sec; in s5m8767_tm_to_data()
340 tm->tm_sec = bcd2bin(data[RTC_SEC]); in s5m8763_data_to_tm()
360 data[RTC_SEC] = bin2bcd(tm->tm_sec); in s5m8763_tm_to_data()
563 data[RTC_SEC] |= ALARM_ENABLE_MASK; in s5m_rtc_start_alarm()
H A Drtc-ds1511.c72 #define RTC_SEC DS1511_SEC macro
231 rtc_write(sec, RTC_SEC); in ds1511_rtc_set_time()
247 rtc_tm->tm_sec = rtc_read(RTC_SEC) & 0x7f; in ds1511_rtc_read_time()
H A Drtc-max77686.c54 RTC_SEC = 0, enumerator
276 tm->tm_sec = data[RTC_SEC] & mask; in max77686_rtc_data_to_tm()
305 data[RTC_SEC] = tm->tm_sec; in max77686_rtc_tm_to_data()
557 data[RTC_SEC] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()