diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index a75195a..d6ec750 100644 --- a/package/kernel/modules/other.mk +++ b/package/kernel/modules/other.mk @@ -68,6 +68,50 @@ endef $(eval $(call KernelPackage,eeprom-93cx6)) +define KernelPackage/rtc-core + SUBMENU:=$(OTHER_MENU) + TITLE:=RTC support + DEPENDS:=@LINUX_2_6 + KCONFIG:=CONFIG_RTC_CLASS + FILES:= \ + $(LINUX_DIR)/drivers/rtc/rtc-core.$(LINUX_KMOD_SUFFIX) \ + $(LINUX_DIR)/drivers/rtc/rtc-lib.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,59,rtc-lib rtc-core) +endef + +define KernelPackage/rtc-ds1307/description + Generic RTC class support. If you say yes here, you will + be allowed to plug one or more RTCs to your system. You will + probably want to enable one or more of the interfaces below. +endef + +$(eval $(call KernelPackage,rtc-core)) + + +define KernelPackage/rtc-ds1307 + SUBMENU:=$(OTHER_MENU) + TITLE:=DS1307 RTC support + DEPENDS:=@LINUX_2_6 kmod-rtc-core +kmod-i2c-core + KCONFIG:=CONFIG_RTC_DRV_DS1307 + FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1307.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,60,rtc-ds1307) +endef + +define KernelPackage/rtc-ds1307/description + If you say yes here you get support for various compatible RTC + chips (often with battery backup) connected with I2C. This driver + should handle DS1307, DS1337, DS1338, DS1339, DS1340, ST M41T00, + and probably other chips. In some cases the RTC must already + have been initialized (by manufacturing or a bootloader). + + The first seven registers on these chips hold an RTC, and other + registers may add features such as NVRAM, a trickle charger for + the RTC/NVRAM backup power, and alarms. NVRAM is visible in + sysfs, but other chip features may not be available. +endef + +$(eval $(call KernelPackage,rtc-ds1307)) + define KernelPackage/lp SUBMENU:=$(OTHER_MENU) TITLE:=Parallel port and line printer support