Skip to content

Commit 818b670

Browse files
Ciprian Marian Costeaalexandrebelloni
authored andcommitted
rtc: s32g: add NXP S32G2/S32G3 SoC support
Add a RTC driver for NXP S32G2/S32G3 SoCs. RTC tracks clock time during system suspend. It can be a wakeup source for the S32G2/S32G3 SoC based boards. The RTC module from S32G2/S32G3 is not battery-powered and it is not kept alive during system reset. Co-developed-by: Bogdan Hamciuc <[email protected]> Signed-off-by: Bogdan Hamciuc <[email protected]> Co-developed-by: Ghennadi Procopciuc <[email protected]> Signed-off-by: Ghennadi Procopciuc <[email protected]> Signed-off-by: Ciprian Marian Costea <[email protected]> Reviewed-by: Frank Li <[email protected]> Tested-by: Enric Balletbo i Serra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 8568d8b commit 818b670

File tree

3 files changed

+397
-0
lines changed

3 files changed

+397
-0
lines changed

drivers/rtc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,4 +2108,15 @@ config RTC_DRV_AMLOGIC_A4
21082108
This driver can also be built as a module. If so, the module
21092109
will be called "rtc-amlogic-a4".
21102110

2111+
config RTC_DRV_S32G
2112+
tristate "RTC driver for S32G2/S32G3 SoCs"
2113+
depends on ARCH_S32 || COMPILE_TEST
2114+
depends on COMMON_CLK
2115+
help
2116+
Say yes to enable RTC driver for platforms based on the
2117+
S32G2/S32G3 SoC family.
2118+
2119+
This RTC module can be used as a wakeup source.
2120+
Please note that it is not battery-powered.
2121+
21112122
endif # RTC_CLASS

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ obj-$(CONFIG_RTC_DRV_RX8111) += rtc-rx8111.o
161161
obj-$(CONFIG_RTC_DRV_RX8581) += rtc-rx8581.o
162162
obj-$(CONFIG_RTC_DRV_RZN1) += rtc-rzn1.o
163163
obj-$(CONFIG_RTC_DRV_RENESAS_RTCA3) += rtc-renesas-rtca3.o
164+
obj-$(CONFIG_RTC_DRV_S32G) += rtc-s32g.o
164165
obj-$(CONFIG_RTC_DRV_S35390A) += rtc-s35390a.o
165166
obj-$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o
166167
obj-$(CONFIG_RTC_DRV_S5M) += rtc-s5m.o

0 commit comments

Comments
 (0)