]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb93c59da86c0937b4b353b3f0e2fda5309ea80ef
tree909abba1d080bff56d0f0a76d291eeee0cd6c5e9
parenta681813235748928ac8a71644bee7797d47b018e
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]