Skip to content

Commit c89ac91

Browse files
Yiting Dengalexandrebelloni
authored andcommitted
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 <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent ce57cf7 commit c89ac91

File tree

3 files changed

+487
-0
lines changed

3 files changed

+487
-0
lines changed

drivers/rtc/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,4 +2091,16 @@ config RTC_DRV_SSD202D
20912091
This driver can also be built as a module, if so, the module
20922092
will be called "rtc-ssd20xd".
20932093

2094+
config RTC_DRV_AMLOGIC_A4
2095+
tristate "Amlogic RTC"
2096+
depends on ARCH_MESON || COMPILE_TEST
2097+
select REGMAP_MMIO
2098+
default y
2099+
help
2100+
If you say yes here you get support for the RTC block on the
2101+
Amlogic A113L2(A4) and A113X2(A5) SoCs.
2102+
2103+
This driver can also be built as a module. If so, the module
2104+
will be called "rtc-amlogic-a4".
2105+
20942106
endif # RTC_CLASS

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ obj-$(CONFIG_RTC_DRV_ABB5ZES3) += rtc-ab-b5ze-s3.o
2727
obj-$(CONFIG_RTC_DRV_ABEOZ9) += rtc-ab-eoz9.o
2828
obj-$(CONFIG_RTC_DRV_ABX80X) += rtc-abx80x.o
2929
obj-$(CONFIG_RTC_DRV_AC100) += rtc-ac100.o
30+
obj-$(CONFIG_RTC_DRV_AMLOGIC_A4) += rtc-amlogic-a4.o
3031
obj-$(CONFIG_RTC_DRV_ARMADA38X) += rtc-armada38x.o
3132
obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
3233
obj-$(CONFIG_RTC_DRV_ASM9260) += rtc-asm9260.o

0 commit comments

Comments
 (0)