Searched refs:twl_rtc (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/rtc/ |
D | rtc-twl.c | 143 struct twl_rtc { struct 162 static int twl_rtc_read_u8(struct twl_rtc *twl_rtc, u8 *data, u8 reg) in twl_rtc_read_u8() argument 166 ret = twl_i2c_read_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_read_u8() 175 static int twl_rtc_write_u8(struct twl_rtc *twl_rtc, u8 data, u8 reg) in twl_rtc_write_u8() argument 179 ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_write_u8() 189 static int set_rtc_irq_bit(struct twl_rtc *twl_rtc, unsigned char bit) in set_rtc_irq_bit() argument 195 if (twl_rtc->rtc_irq_bits & bit) in set_rtc_irq_bit() 198 val = twl_rtc->rtc_irq_bits | bit; in set_rtc_irq_bit() 200 ret = twl_rtc_write_u8(twl_rtc, val, REG_RTC_INTERRUPTS_REG); in set_rtc_irq_bit() 202 twl_rtc->rtc_irq_bits = val; in set_rtc_irq_bit() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/mfd/ |
D | twl-familly.txt | 41 twl_rtc { 42 compatible = "ti,twl_rtc";
|