diff options
Diffstat (limited to 'target/linux/imx23/modules.mk')
-rw-r--r-- | target/linux/imx23/modules.mk | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/target/linux/imx23/modules.mk b/target/linux/imx23/modules.mk index 91faf513a0..1e27e415ac 100644 --- a/target/linux/imx23/modules.mk +++ b/target/linux/imx23/modules.mk @@ -4,13 +4,27 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. +define KernelPackage/rtc-stmp3xxx + SUBMENU:=$(OTHER_MENU) + TITLE:=STMP3xxx SoC built-in RTC support + DEPENDS:=@(TARGET_imx23) + $(call AddDepends/rtc) + KCONFIG:=\ + CONFIG_RTC_CLASS=y \ + CONFIG_RTC_DRV_STMP=m + FILES:=$(LINUX_DIR)/drivers/rtc/rtc-stmp3xxx.ko + AUTOLOAD:=$(call AutoLoad,50,rtc-stmp3xxx) +endef + +$(eval $(call KernelPackage,rtc-stmp3xxx)) + define KernelPackage/wdt-stmp3xxx SUBMENU:=$(OTHER_MENU) TITLE:=STMP3xxx Watchdog timer - DEPENDS:=@(TARGET_imx23) + DEPENDS:=kmod-rtc-stmp3xxx KCONFIG:=CONFIG_STMP3XXX_RTC_WATCHDOG FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/stmp3xxx_rtc_wdt.ko - AUTOLOAD:=$(call AutoLoad,50,stmp3xxx_rtc_wdt) + AUTOLOAD:=$(call AutoLoad,51,stmp3xxx_rtc_wdt) endef define KernelPackage/wdt-stmp3xxx/description @@ -18,9 +32,9 @@ define KernelPackage/wdt-stmp3xxx/description endef $(eval $(call KernelPackage,wdt-stmp3xxx)) + define KernelPackage/usb-chipidea TITLE:=Support for ChipIdea controllers - DEPENDS:=+kmod-usb2 +kmod-usb-mxs-phy KCONFIG:= \ CONFIG_USB_CHIPIDEA \ CONFIG_USB_CHIPIDEA_HOST=y \ @@ -40,11 +54,11 @@ $(eval $(call KernelPackage,usb-chipidea,1)) define KernelPackage/usb-mxs-phy TITLE:=Support for Freescale MXS USB PHY controllers - DEPENDS:=+kmod-usb2 + DEPENDS:=+kmod-usb-chipidea KCONFIG:= \ CONFIG_USB_MXS_PHY - FILES:=$(LINUX_DIR)/drivers/usb/otg/mxs-phy.ko - AUTOLOAD:=$(call AutoLoad,50,mxs-phy,1) + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-mxs-usb.ko + AUTOLOAD:=$(call AutoLoad,50,phy-mxs-usb,1) $(call AddDepends/usb) endef @@ -68,4 +82,3 @@ endef $(eval $(call KernelPackage,usb-net-smsc95xx)) - |