From 4e90ae9682d3714509064971b4c7d5ad86fb5411 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Fri, 7 Jun 2024 08:07:53 +0200 Subject: [PATCH] kernel: rtc: add RTC non volatile storage support By enabling the kmod-rtc-nvmem you enable the RTC non volatile storage support including nvmem sysfs access. This make it possible to store some (small) information in the (often battery backed) storage present on RTCs. Signed-off-by: Martin Schiller --- package/kernel/linux/modules/rtc.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/rtc.mk b/package/kernel/linux/modules/rtc.mk index 3658e8598c2..f720193a464 100644 --- a/package/kernel/linux/modules/rtc.mk +++ b/package/kernel/linux/modules/rtc.mk @@ -116,6 +116,22 @@ endef $(eval $(call KernelPackage,rtc-mv)) +define KernelPackage/rtc-nvmem + SUBMENU:=$(RTC_MENU) + TITLE:=RTC non volatile storage support + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + KCONFIG:=CONFIG_RTC_NVMEM=y \ + CONFIG_NVMEM_SYSFS=y +endef + +define KernelPackage/rtc-nvmem/description + Say yes here to add support for the non volatile (often battery + backed) storage present on RTCs. +endef + +$(eval $(call KernelPackage,rtc-nvmem)) + + define KernelPackage/rtc-pcf8563 SUBMENU:=$(RTC_MENU) TITLE:=Philips PCF8563/Epson RTC8564 RTC support