rtc: Add Amlogic Virtual Wake RTC
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 12 Aug 2019 23:28:50 +0000 (16:28 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 22 Aug 2019 21:08:32 +0000 (23:08 +0200)
commit6ef35398e827dcf321a012c8f7a4d8d739674db6
tree909abba1d080bff56d0f0a76d291eeee0cd6c5e9
parented16239637f6656d3e6656ed1753e70d7823d94f
rtc: Add Amlogic Virtual Wake RTC

The Amlogic Meson GX SoCs uses a special register to store the
time in seconds to wakeup after a system suspend.

In order to be able to reuse the RTC wakealarm feature, this
driver implements a fake RTC device which uses the system time
to deduce a suspend delay.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[khilman: rebase to v5.3-rc, rework and modernization]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20190812232850.8016-3-khilman@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
MAINTAINERS
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-meson-vrtc.c [new file with mode: 0644]