Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-twl.c139 struct twl_rtc { struct
158 static int twl_rtc_read_u8(struct twl_rtc *twl_rtc, u8 *data, u8 reg) in twl_rtc_read_u8() argument
162 ret = twl_i2c_read_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_read_u8()
171 static int twl_rtc_write_u8(struct twl_rtc *twl_rtc, u8 data, u8 reg) in twl_rtc_write_u8() argument
175 ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_write_u8()
185 static int set_rtc_irq_bit(struct twl_rtc *twl_rtc, unsigned char bit) in set_rtc_irq_bit() argument
191 if (twl_rtc->rtc_irq_bits & bit) in set_rtc_irq_bit()
194 val = twl_rtc->rtc_irq_bits | bit; in set_rtc_irq_bit()
196 ret = twl_rtc_write_u8(twl_rtc, val, REG_RTC_INTERRUPTS_REG); in set_rtc_irq_bit()
198 twl_rtc->rtc_irq_bits = val; in set_rtc_irq_bit()
[all …]