kirkwood: Add Marvell RTC to all machines with nothing else

The Kirkwood SoCs all have an onchip RTC that can hold the time
over e.g. a reboot which will help if no NTP servers are available.

Create a kernel module package for the Marvell RTC, and add it to
all Kirkwood devices that do not have their own discrete
battery-backed RTC. Adding it to platforms with a proper RTC
is just surplus.

All Kirkwoods have at least one RTC so add RTC to the features
list for Kirkwood as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij
2024-02-23 08:23:47 +01:00
committed by Hauke Mehrtens
parent 09be63de70
commit ef34f8f5b5
3 changed files with 35 additions and 14 deletions

View File

@@ -578,6 +578,23 @@ endef
$(eval $(call KernelPackage,rtc-isl1208))
define KernelPackage/rtc-mv
SUBMENU:=$(OTHER_MENU)
TITLE:=Marvell SoC RTC support
DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
KCONFIG:=CONFIG_RTC_DRV_MV \
CONFIG_RTC_CLASS=y
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-mv.ko
AUTOLOAD:=$(call AutoProbe,rtc-mv)
endef
define KernelPackage/rtc-mv/description
Kernel module for Marvell SoC RTC.
endef
$(eval $(call KernelPackage,rtc-mv))
define KernelPackage/rtc-pcf8563
SUBMENU:=$(OTHER_MENU)
TITLE:=Philips PCF8563/Epson RTC8564 RTC support