summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Kolar2025-08-12 07:09:34 +0000
committerHauke Mehrtens2025-08-14 19:55:48 +0000
commit830cd4f64b02130d548082a9f12f3d1fee8233d4 (patch)
treeeb13123b9e6403c62c77c93a8709cfff8b9c244c
parent228237784193702d43662d184f4c36dc89dc7c3f (diff)
downloadopenwrt-830cd4f64b02130d548082a9f12f3d1fee8233d4.tar.gz
kernel/modules: add BQ32000 I2C RTC kernel module support
Add support for the Texas Instruments BQ32000 I2C real-time clock chip. Tested on a custom board based on Hi-Link HLK-7628N. Signed-off-by: Ondrej Kolar <ondrej@kolarovo.cz> Link: https://github.com/openwrt/openwrt/pull/19764 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/linux/modules/rtc.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/rtc.mk b/package/kernel/linux/modules/rtc.mk
index 3658e8598c..e386167286 100644
--- a/package/kernel/linux/modules/rtc.mk
+++ b/package/kernel/linux/modules/rtc.mk
@@ -7,6 +7,24 @@
RTC_MENU:=RTC Real-Time Clock Support
+define KernelPackage/rtc-bq32k
+ SUBMENU:=$(RTC_MENU)
+ TITLE:=Texas Instruments BQ32000 RTC support
+ DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
+ DEPENDS:=+kmod-i2c-core
+ KCONFIG:=CONFIG_RTC_DRV_BQ32K \
+ CONFIG_RTC_CLASS=y
+ FILES:=$(LINUX_DIR)/drivers/rtc/rtc-bq32k.ko
+ AUTOLOAD:=$(call AutoProbe,rtc-bq32k)
+endef
+
+define KernelPackage/rtc-bq32k/description
+ Kernel module for Texas Instruments BQ32000 I2C RTC.
+endef
+
+$(eval $(call KernelPackage,rtc-bq32k))
+
+
define KernelPackage/rtc-ds1307
SUBMENU:=$(RTC_MENU)
TITLE:=Dallas/Maxim DS1307 (and compatible) RTC support