Searched refs:RTC_SEC (Results 1 – 1 of 1) sorted by relevance
47 #define RTC_SEC 0x0 macro103 data[RTC_SEC] = 0x80; in rtc_validate()104 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) { in rtc_validate()117 if (0x59 < data[RTC_SEC] || 0x09 < (data[RTC_SEC] & 0x0F) || in rtc_validate()131 data[RTC_SEC] = 0x00; in rtc_validate()155 tmp->tm_sec = bcd2bin(data[RTC_SEC] & 0x7F); in rtc_get()183 data[RTC_SEC] = (data[RTC_SEC] & 0x80) | (bin2bcd(tmp->tm_sec) & 0x7F); in rtc_set()