Skip to content

Commit 5adbaed

Browse files
minying0829alexandrebelloni
authored andcommitted
rtc: Add NCT3018Y real time clock driver
Add real time clock support for NCT3018Y. Signed-off-by: Mia Lin <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8b30b09 commit 5adbaed

File tree

4 files changed

+565
-0
lines changed

4 files changed

+565
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,7 @@ F: arch/arm/boot/dts/nuvoton-npcm*
24512451
F: arch/arm/mach-npcm/
24522452
F: drivers/*/*npcm*
24532453
F: drivers/*/*/*npcm*
2454+
F: drivers/rtc/rtc-nct3018y.c
24542455
F: include/dt-bindings/clock/nuvoton,npcm7xx-clock.h
24552456

24562457
ARM/NUVOTON WPCM450 ARCHITECTURE

drivers/rtc/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,16 @@ config RTC_DRV_MAX77686
383383
This driver can also be built as a module. If so, the module
384384
will be called rtc-max77686.
385385

386+
config RTC_DRV_NCT3018Y
387+
tristate "Nuvoton NCT3018Y"
388+
depends on OF
389+
help
390+
If you say yes here you get support for the Nuvoton NCT3018Y I2C RTC
391+
chip.
392+
393+
This driver can also be built as a module, if so, the module will be
394+
called "rtc-nct3018y".
395+
386396
config RTC_DRV_RK808
387397
tristate "Rockchip RK805/RK808/RK809/RK817/RK818 RTC"
388398
depends on MFD_RK808

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ obj-$(CONFIG_RTC_DRV_MV) += rtc-mv.o
112112
obj-$(CONFIG_RTC_DRV_MXC) += rtc-mxc.o
113113
obj-$(CONFIG_RTC_DRV_MXC_V2) += rtc-mxc_v2.o
114114
obj-$(CONFIG_RTC_DRV_GAMECUBE) += rtc-gamecube.o
115+
obj-$(CONFIG_RTC_DRV_NCT3018Y) += rtc-nct3018y.o
115116
obj-$(CONFIG_RTC_DRV_NTXEC) += rtc-ntxec.o
116117
obj-$(CONFIG_RTC_DRV_OMAP) += rtc-omap.o
117118
obj-$(CONFIG_RTC_DRV_OPAL) += rtc-opal.o

0 commit comments

Comments
 (0)