Searched refs:RTC_SEC (Results 1 – 1 of 1) sorted by relevance
48 #define RTC_SEC 0x0 macro104 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()