[OpenWrt-Devel,1/3] kernel: add Ricoh RS5C372 RTC module support
diff mbox

Message ID 20150714214002.GA12846@makrotopia.org
State Deferred
Headers show

Commit Message

Daniel Golle July 14, 2015, 9:40 p.m. UTC
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 package/kernel/linux/modules/other.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Patch
diff mbox

diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 473f063..b4907f4 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -643,6 +643,21 @@  endef
 
 $(eval $(call KernelPackage,rtc-pt7c4338))
 
+define KernelPackage/rtc-rs5c372
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Ricoh RS5C372A/B (and compatbile) RTC support
+  DEPENDS:=@RTC_SUPPORT +kmod-i2c-core
+  KCONFIG:=CONFIG_RTC_DRV_RS5C372
+  FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rs5c372.ko
+  AUTOLOAD:=$(call AutoProbe,rtc-rs5c372)
+endef
+
+define KernelPackage/rtc-rs5c372/description
+ Kernel module for Ricoh R2025S/D, RS5C372A, RS5C372B, RV5C386
+ and RV5C387A RTC chips
+endef
+
+$(eval $(call KernelPackage,rtc-rs5c372))
 
 define KernelPackage/mtdtests
   SUBMENU:=$(OTHER_MENU)