34 i2c_readb(CONFIG_DRIVERS_TI_TPS65913_RTC_BUS,
35 CONFIG_DRIVERS_TI_TPS65913_RTC_ADDR, reg, &
val);
42 CONFIG_DRIVERS_TI_TPS65913_RTC_ADDR, reg,
val);
static uint8_t bin2bcd(uint8_t val)
static uint8_t bcd2bin(uint8_t val)
#define printk(level,...)
static int i2c_writeb(unsigned int bus, uint8_t slave, uint8_t reg, uint8_t data)
Write a byte with one segment in one frame.
static int i2c_readb(unsigned int bus, uint8_t slave, uint8_t reg, uint8_t *data)
Read a byte with two segments in one frame.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
static void tps65913_rtc_ctrl_clear(uint8_t bit)
static int tps65913_rtc_start(void)
static void tps65913_rtc_shadow(void)
static uint8_t tps65913_read(enum TPS65913_RTC_REG reg)
static void tps65913_write(enum TPS65913_RTC_REG reg, uint8_t val)
int rtc_set(const struct rtc_time *time)
@ TPS65913_RTC_STATUS_REG
@ TPS65913_RTC_INTERRUPTS_REG
int rtc_get(struct rtc_time *time)
static int tps65913_rtc_stop(void)
@ TPS65913_RTC_CTRL_GET_TIME
@ TPS65913_RTC_STATUS_RUN
static int tps65913_is_rtc_running(void)
static void tps65913_rtc_ctrl_set(uint8_t bit)