You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
rtc: add STM32 RTC driver
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
7c60930500
commit
4e64350f42
@@ -1716,6 +1716,17 @@ config RTC_DRV_R7301
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called rtc-r7301.
|
||||
|
||||
config RTC_DRV_STM32
|
||||
tristate "STM32 RTC"
|
||||
select REGMAP_MMIO
|
||||
depends on ARCH_STM32 || COMPILE_TEST
|
||||
help
|
||||
If you say yes here you get support for the STM32 On-Chip
|
||||
Real Time Clock.
|
||||
|
||||
This driver can also be built as a module, if so, the module
|
||||
will be called "rtc-stm32".
|
||||
|
||||
comment "HID Sensor RTC drivers"
|
||||
|
||||
config RTC_DRV_HID_SENSOR_TIME
|
||||
|
||||
@@ -145,6 +145,7 @@ obj-$(CONFIG_RTC_DRV_SNVS) += rtc-snvs.o
|
||||
obj-$(CONFIG_RTC_DRV_SPEAR) += rtc-spear.o
|
||||
obj-$(CONFIG_RTC_DRV_STARFIRE) += rtc-starfire.o
|
||||
obj-$(CONFIG_RTC_DRV_STK17TA8) += rtc-stk17ta8.o
|
||||
obj-$(CONFIG_RTC_DRV_STM32) += rtc-stm32.o
|
||||
obj-$(CONFIG_RTC_DRV_STMP) += rtc-stmp3xxx.o
|
||||
obj-$(CONFIG_RTC_DRV_ST_LPC) += rtc-st-lpc.o
|
||||
obj-$(CONFIG_RTC_DRV_SUN4V) += rtc-sun4v.o
|
||||
|
||||
727
drivers/rtc/rtc-stm32.c
Normal file
727
drivers/rtc/rtc-stm32.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user