kernel: Add kmod-rtc-x1205

To support the IXP42x platforms we need a kernel module
for the X1205 RTC so we can load it as an optional module.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Linus Walleij 2023-10-12 10:42:18 +02:00 committed by Christian Marangi
parent 743dc8dd15
commit 806b359bbc
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -780,6 +780,22 @@ endef
$(eval $(call KernelPackage,rtc-s35390a))
define KernelPackage/rtc-x1205
SUBMENU:=$(OTHER_MENU)
TITLE:=Xicor Intersil X1205
DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
DEPENDS:=+kmod-i2c-core
KCONFIG:=CONFIG_RTC_DRV_X1205 \
CONFIG_RTC_CLASS=y
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-x1205.ko
AUTOLOAD:=$(call AutoProbe,rtc-x1205)
endef
define KernelPackage/rtc-x1205/description
Kernel module for Xicor Intersil X1205 I2C RTC chip
endef
$(eval $(call KernelPackage,rtc-x1205))
define KernelPackage/mtdtests
SUBMENU:=$(OTHER_MENU)