rtc: support for the Amlogic on-chip RTC
authorYiting Deng <yiting.deng@amlogic.com>
Tue, 12 Nov 2024 03:10:15 +0000 (11:10 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 12 Nov 2024 14:05:31 +0000 (15:05 +0100)
commitc89ac9182ee297597f1c6971045382bae19c3f9d
treee40a5ee59fc1481523026dfc92f26b366540f343
parentce57cf7319e5315637349c02b50a51b2d2efba89
rtc: support for the Amlogic on-chip RTC

This is the third amlogic driver. The RTC hardware of A4 SoC is different
from the previous one. This RTC hardware includes a timing function and
an alarm function. But the existing has only timing function, alarm
function is using the system clock to implement a virtual alarm. Add
the RTC driver to support it.

Signed-off-by: Yiting Deng <yiting.deng@amlogic.com>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://lore.kernel.org/r/20241112-rtc-v6-2-a71b60d2f354@amlogic.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-amlogic-a4.c [new file with mode: 0644]