mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 11:36:53 +07:00
35c86bf66d
The WM831x series of PMICs contain RTC functionality. The hardware provides a 32 bit counter incrementing at 1Hz together with a per tick interrupt and an alarm value. For simplicity the driver chooses to define the epoch for the counter as the Unix epoch - if required platform data can be used in future to customise this. When powered on from a completely cold state the RTC reports that it has not been configured - when this happens an error is returned when attempting to read the RTC in order to avoid use of values we know to be invalid. The hardware also provides security features which mean that it can ignore attempts to set the RTC time in certain circumstances, most notably if the RTC is written to too often. These errors are detected by verifying the written RTC value. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
82 lines
3.1 KiB
Makefile
82 lines
3.1 KiB
Makefile
#
|
|
# Makefile for RTC class/drivers.
|
|
#
|
|
|
|
ifeq ($(CONFIG_RTC_DEBUG),y)
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
endif
|
|
|
|
obj-$(CONFIG_RTC_LIB) += rtc-lib.o
|
|
obj-$(CONFIG_RTC_HCTOSYS) += hctosys.o
|
|
obj-$(CONFIG_RTC_CLASS) += rtc-core.o
|
|
rtc-core-y := class.o interface.o
|
|
|
|
rtc-core-$(CONFIG_RTC_INTF_DEV) += rtc-dev.o
|
|
rtc-core-$(CONFIG_RTC_INTF_PROC) += rtc-proc.o
|
|
rtc-core-$(CONFIG_RTC_INTF_SYSFS) += rtc-sysfs.o
|
|
|
|
# Keep the list ordered.
|
|
|
|
obj-$(CONFIG_RTC_DRV_AT32AP700X)+= rtc-at32ap700x.o
|
|
obj-$(CONFIG_RTC_DRV_AT91RM9200)+= rtc-at91rm9200.o
|
|
obj-$(CONFIG_RTC_DRV_AT91SAM9) += rtc-at91sam9.o
|
|
obj-$(CONFIG_RTC_DRV_AU1XXX) += rtc-au1xxx.o
|
|
obj-$(CONFIG_RTC_DRV_BFIN) += rtc-bfin.o
|
|
obj-$(CONFIG_RTC_DRV_CMOS) += rtc-cmos.o
|
|
obj-$(CONFIG_RTC_DRV_DM355EVM) += rtc-dm355evm.o
|
|
obj-$(CONFIG_RTC_DRV_DS1216) += rtc-ds1216.o
|
|
obj-$(CONFIG_RTC_DRV_DS1286) += rtc-ds1286.o
|
|
obj-$(CONFIG_RTC_DRV_DS1302) += rtc-ds1302.o
|
|
obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o
|
|
obj-$(CONFIG_RTC_DRV_DS1307) += rtc-ds1307.o
|
|
obj-$(CONFIG_RTC_DRV_DS1374) += rtc-ds1374.o
|
|
obj-$(CONFIG_RTC_DRV_DS1390) += rtc-ds1390.o
|
|
obj-$(CONFIG_RTC_DRV_DS1511) += rtc-ds1511.o
|
|
obj-$(CONFIG_RTC_DRV_DS1553) += rtc-ds1553.o
|
|
obj-$(CONFIG_RTC_DRV_DS1672) += rtc-ds1672.o
|
|
obj-$(CONFIG_RTC_DRV_DS1742) += rtc-ds1742.o
|
|
obj-$(CONFIG_RTC_DRV_DS3234) += rtc-ds3234.o
|
|
obj-$(CONFIG_RTC_DRV_EFI) += rtc-efi.o
|
|
obj-$(CONFIG_RTC_DRV_EP93XX) += rtc-ep93xx.o
|
|
obj-$(CONFIG_RTC_DRV_FM3130) += rtc-fm3130.o
|
|
obj-$(CONFIG_RTC_DRV_ISL1208) += rtc-isl1208.o
|
|
obj-$(CONFIG_RTC_DRV_M41T80) += rtc-m41t80.o
|
|
obj-$(CONFIG_RTC_DRV_M41T94) += rtc-m41t94.o
|
|
obj-$(CONFIG_RTC_DRV_M48T35) += rtc-m48t35.o
|
|
obj-$(CONFIG_RTC_DRV_M48T59) += rtc-m48t59.o
|
|
obj-$(CONFIG_RTC_DRV_M48T86) += rtc-m48t86.o
|
|
obj-$(CONFIG_RTC_DRV_BQ4802) += rtc-bq4802.o
|
|
obj-$(CONFIG_RTC_DRV_SUN4V) += rtc-sun4v.o
|
|
obj-$(CONFIG_RTC_DRV_STARFIRE) += rtc-starfire.o
|
|
obj-$(CONFIG_RTC_DRV_MAX6900) += rtc-max6900.o
|
|
obj-$(CONFIG_RTC_DRV_MAX6902) += rtc-max6902.o
|
|
obj-$(CONFIG_RTC_DRV_MV) += rtc-mv.o
|
|
obj-$(CONFIG_RTC_DRV_OMAP) += rtc-omap.o
|
|
obj-$(CONFIG_RTC_DRV_PCF8563) += rtc-pcf8563.o
|
|
obj-$(CONFIG_RTC_DRV_PCF8583) += rtc-pcf8583.o
|
|
obj-$(CONFIG_RTC_DRV_PL030) += rtc-pl030.o
|
|
obj-$(CONFIG_RTC_DRV_PL031) += rtc-pl031.o
|
|
obj-$(CONFIG_RTC_DRV_GENERIC) += rtc-generic.o
|
|
obj-$(CONFIG_RTC_DRV_PXA) += rtc-pxa.o
|
|
obj-$(CONFIG_RTC_DRV_R9701) += rtc-r9701.o
|
|
obj-$(CONFIG_RTC_DRV_RS5C313) += rtc-rs5c313.o
|
|
obj-$(CONFIG_RTC_DRV_RS5C348) += rtc-rs5c348.o
|
|
obj-$(CONFIG_RTC_DRV_RS5C372) += rtc-rs5c372.o
|
|
obj-$(CONFIG_RTC_DRV_RX8025) += rtc-rx8025.o
|
|
obj-$(CONFIG_RTC_DRV_RX8581) += rtc-rx8581.o
|
|
obj-$(CONFIG_RTC_DRV_S35390A) += rtc-s35390a.o
|
|
obj-$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o
|
|
obj-$(CONFIG_RTC_DRV_SA1100) += rtc-sa1100.o
|
|
obj-$(CONFIG_RTC_DRV_SH) += rtc-sh.o
|
|
obj-$(CONFIG_RTC_DRV_STK17TA8) += rtc-stk17ta8.o
|
|
obj-$(CONFIG_RTC_DRV_TEST) += rtc-test.o
|
|
obj-$(CONFIG_RTC_DRV_TWL4030) += rtc-twl4030.o
|
|
obj-$(CONFIG_RTC_DRV_TX4939) += rtc-tx4939.o
|
|
obj-$(CONFIG_RTC_DRV_V3020) += rtc-v3020.o
|
|
obj-$(CONFIG_RTC_DRV_VR41XX) += rtc-vr41xx.o
|
|
obj-$(CONFIG_RTC_DRV_WM831X) += rtc-wm831x.o
|
|
obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
|
|
obj-$(CONFIG_RTC_DRV_X1205) += rtc-x1205.o
|
|
obj-$(CONFIG_RTC_DRV_PCF50633) += rtc-pcf50633.o
|
|
obj-$(CONFIG_RTC_DRV_PS3) += rtc-ps3.o
|