rtc: rv8803: Add power management support
authorStefan Eichenberger <eichest@gmail.com>
Wed, 22 Nov 2023 18:16:11 +0000 (19:16 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Jan 2024 00:17:00 +0000 (01:17 +0100)
commit2f80de657f83a1f6495e557096847f4626d57164
treeb224b556658594a57d31a63a84580013dbdc603a
parent3628d999e31e2e31b51f78b0f68e91275854c179
rtc: rv8803: Add power management support

Add power management support to the driver. This allows a SoC to wake
from suspend using the nINT provided by the RTC. Only register it as a
wakeup device if the interrupt is provided and handled.

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
Link: https://lore.kernel.org/r/20231122181611.164792-1-eichest@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv8803.c