Lines Matching +full:0 +full:x1e8

24 #define PM8xxx_RTC_ALARM_CLEAR		BIT(0)
27 #define NUM_8_BIT_RTC_REGS 0x4
94 return 0; in pm8xxx_rtc_read_nvmem_offset()
105 if (rc < 0) { in pm8xxx_rtc_write_nvmem_offset()
110 return 0; in pm8xxx_rtc_write_nvmem_offset()
116 return 0; in pm8xxx_rtc_read_offset()
137 if (rc < 0) in pm8xxx_rtc_read_raw()
140 if (reg < value[0]) { in pm8xxx_rtc_read_raw()
149 return 0; in pm8xxx_rtc_read_raw()
168 return 0; in pm8xxx_rtc_update_offset()
176 return 0; in pm8xxx_rtc_update_offset()
183 * 3. Write 0x00 to LSB.
184 * 4. Write Byte[1], Byte[2], Byte[3] then Byte[0].
198 regs->alarm_en, 0, &alarm_enabled); in __pm8xxx_rtc_set_time()
203 rc = regmap_update_bits(rtc_dd->regmap, regs->ctrl, PM8xxx_RTC_ENABLE, 0); in __pm8xxx_rtc_set_time()
207 /* Write 0 to Byte[0] */ in __pm8xxx_rtc_set_time()
208 rc = regmap_write(rtc_dd->regmap, regs->write, 0); in __pm8xxx_rtc_set_time()
218 /* Write Byte[0] */ in __pm8xxx_rtc_set_time()
219 rc = regmap_write(rtc_dd->regmap, regs->write, value[0]); in __pm8xxx_rtc_set_time()
236 return 0; in __pm8xxx_rtc_set_time()
257 return 0; in pm8xxx_rtc_set_time()
275 return 0; in pm8xxx_rtc_read_time()
291 regs->alarm_en, 0); in pm8xxx_rtc_set_alarm()
309 return 0; in pm8xxx_rtc_set_alarm()
338 return 0; in pm8xxx_rtc_read_alarm()
345 u8 value[NUM_8_BIT_RTC_REGS] = {0}; in pm8xxx_rtc_alarm_irq_enable()
352 val = 0; in pm8xxx_rtc_alarm_irq_enable()
367 return 0; in pm8xxx_rtc_alarm_irq_enable()
388 regs->alarm_en, 0); in pm8xxx_alarm_trigger()
394 PM8xxx_RTC_ALARM_CLEAR, 0); in pm8xxx_alarm_trigger()
410 .ctrl = 0x11d,
411 .write = 0x11f,
412 .read = 0x123,
413 .alarm_rw = 0x127,
414 .alarm_ctrl = 0x11d,
415 .alarm_ctrl2 = 0x11e,
420 .ctrl = 0x1e8,
421 .write = 0x1ea,
422 .read = 0x1ee,
423 .alarm_rw = 0x1f2,
424 .alarm_ctrl = 0x1e8,
425 .alarm_ctrl2 = 0x1e9,
430 .ctrl = 0x6046,
431 .write = 0x6040,
432 .read = 0x6048,
433 .alarm_rw = 0x6140,
434 .alarm_ctrl = 0x6146,
435 .alarm_ctrl2 = 0x6148,
440 .ctrl = 0x6146,
441 .write = 0x6140,
442 .read = 0x6148,
443 .alarm_rw = 0x6240,
444 .alarm_ctrl = 0x6246,
445 .alarm_ctrl2 = 0x6248,
476 rtc_dd->alarm_irq = platform_get_irq(pdev, 0); in pm8xxx_rtc_probe()
477 if (rtc_dd->alarm_irq < 0) in pm8xxx_rtc_probe()
519 if (rc < 0) in pm8xxx_rtc_probe()
530 return 0; in pm8xxx_rtc_probe()