Skip to content

Commit fad6cbe

Browse files
Vincent Shihalexandrebelloni
authored andcommitted
rtc: Add driver for RTC in Sunplus SP7021
Add driver for RTC in Sunplus SP7021 Signed-off-by: Vincent Shih <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ed06106 commit fad6cbe

File tree

4 files changed

+382
-0
lines changed

4 files changed

+382
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18216,6 +18216,12 @@ L: [email protected]
1821618216
S: Maintained
1821718217
F: drivers/net/ethernet/dlink/sundance.c
1821818218

18219+
SUNPLUS RTC DRIVER
18220+
M: Vincent Shih <[email protected]>
18221+
18222+
S: Maintained
18223+
F: drivers/rtc/rtc-sunplus.c
18224+
1821918225
SUPERH
1822018226
M: Yoshinori Sato <[email protected]>
1822118227
M: Rich Felker <[email protected]>

drivers/rtc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,19 @@ config RTC_DRV_SH
14551455
To compile this driver as a module, choose M here: the
14561456
module will be called rtc-sh.
14571457

1458+
config RTC_DRV_SUNPLUS
1459+
tristate "Sunplus SP7021 RTC"
1460+
depends on SOC_SP7021
1461+
help
1462+
Say 'yes' to get support for the real-time clock present in
1463+
Sunplus SP7021 - a SoC for industrial applications. It provides
1464+
RTC status check, timer/alarm functionalities, user data
1465+
reservation with the battery over 2.5V, RTC power status check
1466+
and battery charge.
1467+
1468+
This driver can also be built as a module. If so, the module
1469+
will be called rtc-sunplus.
1470+
14581471
config RTC_DRV_VR41XX
14591472
tristate "NEC VR41XX"
14601473
depends on CPU_VR41XX || COMPILE_TEST

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ obj-$(CONFIG_RTC_DRV_STM32) += rtc-stm32.o
166166
obj-$(CONFIG_RTC_DRV_STMP) += rtc-stmp3xxx.o
167167
obj-$(CONFIG_RTC_DRV_SUN4V) += rtc-sun4v.o
168168
obj-$(CONFIG_RTC_DRV_SUN6I) += rtc-sun6i.o
169+
obj-$(CONFIG_RTC_DRV_SUNPLUS) += rtc-sunplus.o
169170
obj-$(CONFIG_RTC_DRV_SUNXI) += rtc-sunxi.o
170171
obj-$(CONFIG_RTC_DRV_TEGRA) += rtc-tegra.o
171172
obj-$(CONFIG_RTC_DRV_TEST) += rtc-test.o

0 commit comments

Comments
 (0)