X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fkernel%2Flinux%2Fmodules%2Fusb.mk;h=75c506cd21f3188c27da5e361930718ff8af89ae;hb=18675e9ea60dc5f81f4c51f733a0ca3bcd279b6f;hp=5ece8ff3225ebdcb704964c907f9b14509034539;hpb=6b62eef492b5ad73e1367ab52085f61a3f992400;p=openwrt%2Fstaging%2Flynxis%2Fomap.git diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index 5ece8ff322..75c506cd21 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -36,7 +36,7 @@ define AddDepends/usb endef -define KernelPackage/musb-hdrc +define KernelPackage/usb-musb-hdrc TITLE:=Support for Mentor Graphics silicon dual role USB KCONFIG:= \ CONFIG_USB_MUSB_HDRC \ @@ -47,35 +47,132 @@ define KernelPackage/musb-hdrc CONFIG_USB_MUSB_GADGET=n \ CONFIG_USB_MUSB_HOST=n \ CONFIG_USB_MUSB_DEBUG=y - DEPENDS:=@(TARGET_omap||TARGET_omap24xx) +kmod-usb-gadget + DEPENDS:= \ + @(TARGET_omap||TARGET_omap24xx) +kmod-usb-gadget \ + +TARGET_omap24xx:kmod-usb-musb-tusb6010 \ + +TARGET_omap:kmod-usb-musb-platformglue FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko AUTOLOAD:=$(call AutoLoad,46,musb_hdrc) $(call AddDepends/usb) endef -define KernelPackage/musb-hdrc/description +define KernelPackage/usb-musb-hdrc/description Kernel support for Mentor Graphics silicon dual role USB device. endef -$(eval $(call KernelPackage,musb-hdrc)) +$(eval $(call KernelPackage,usb-musb-hdrc)) - -define KernelPackage/nop-usb-xceiv - TITLE:=Support for USB OTG NOP transceiver +define KernelPackage/usb-musb-platformglue + TITLE:=MUSB platform glue layer KCONFIG:= \ - CONFIG_NOP_USB_XCEIV - DEPENDS:=+kmod-musb-hdrc - FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko - AUTOLOAD:=$(call AutoLoad,45,nop-usb-xceiv) + CONFIG_USB_MUSB_TUSB6010=n \ + CONFIG_USB_MUSB_OMAP2PLUS \ + CONFIG_USB_MUSB_AM35X \ + CONFIG_USB_MUSB_DSPS=n\ + CONFIG_USB_MUSB_UX500=n + DEPENDS:=@TARGET_omap + $(call AddDepends/usb) +endef + +define KernelPackage/usb-musb-platformglue/description + MUSB platform glue modules +endef + +$(eval $(call KernelPackage,usb-musb-platformglue)) + + +define KernelPackage/usb-musb-tusb6010 + TITLE:=Support for TUSB 6010 + KCONFIG:=CONFIG_USB_MUSB_TUSB6010 + DEPENDS:=@TARGET_omap24xx + $(call AddDepends/usb) +endef + +define KernelPackage/usb-musb-tusb6010/description + TUSB6010 support +endef + +$(eval $(call KernelPackage,usb-musb-tusb6010)) + + +define KernelPackage/usb-phy-nop + TITLE:=Support for USB NOP transceiver + KCONFIG:=CONFIG_NOP_USB_XCEIV + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko + AUTOLOAD:=$(call AutoLoad,45,phy-generic) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-phy-nop/description + Support for USB NOP transceiver +endef + +$(eval $(call KernelPackage,usb-phy-nop)) + + +define KernelPackage/usb-phy-am335x + TITLE:=Support for AM335x USB PHY + KCONFIG:=CONFIG_AM335X_PHY_USB + DEPENDS:=@TARGET_omap +kmod-usb-phy-nop + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-am335x.ko + AUTOLOAD:=$(call AutoLoad,45,phy-am335x) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-phy-am335x/description + Support for AM335x USB PHY +endef + +$(eval $(call KernelPackage,usb-phy-am335x)) + + +define KernelPackage/usb-phy-omap-usb3 + TITLE:=Support for OMAP USB3 PHY + KCONFIG:=CONFIG_OMAP_USB3 + DEPENDS:=@TARGET_omap + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-omap-usb3.ko + AUTOLOAD:=$(call AutoLoad,45,phy-omap-usb3) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-phy-omap-usb3/description + Support for OMAP USB3 PHY +endef + +$(eval $(call KernelPackage,usb-phy-omap-usb3)) + + +define KernelPackage/usb-phy-twl4030 + TITLE:=Support for TWL6030 OTG PHY + KCONFIG:=CONFIG_TWL4030_USB + DEPENDS:=@TARGET_omap + FILES:=$(LINUX_DIR)/drivers/phy/phy-twl4030-usb.ko + AUTOLOAD:=$(call AutoLoad,45,phy-twl4030-usb) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-phy-twl4030/description + Support for TWL4030/TWL5030/TPS659x0 OTG PHY +endef + +$(eval $(call KernelPackage,usb-phy-twl4030)) + + +define KernelPackage/usb-phy-twl6030 + TITLE:=Support for TWL6030 OTG PHY + KCONFIG:=CONFIG_TWL6030_USB + DEPENDS:=@TARGET_omap + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-twl6030-usb.ko + AUTOLOAD:=$(call AutoLoad,45,phy-twl6030-usb) $(call AddDepends/usb) endef -define KernelPackage/nop-usb-xceiv/description - Support for USB OTG NOP transceiver +define KernelPackage/usb-phy-twl6030/description + Support for TWL6030 OTG PHY endef -$(eval $(call KernelPackage,nop-usb-xceiv)) +$(eval $(call KernelPackage,usb-phy-twl6030)) define KernelPackage/usb-gadget @@ -196,11 +293,32 @@ endef $(eval $(call KernelPackage,usb2-fsl)) +define KernelPackage/usb2-omap + TITLE:=Support for USB2 for OMAP + DEPENDS:=@TARGET_omap +kmod-usb-phy-nop +kmod-usb-phy-am335x + KCONFIG:=\ + CONFIG_USB_EHCI_HCD_OMAP \ + CONFIG_OMAP_USB2 + FILES:= \ + $(LINUX_DIR)/drivers/phy/phy-omap2-usb.ko \ + $(LINUX_DIR)/drivers/usb/host/ehci-omap.ko + AUTOLOAD:=$(call AutoLoad,39,phy-omap2-usb ehci-omap) + $(call AddDepends/usb) +endef + +define KernelPackage/usb2-omap/description + Kernel support for OMAP USB2 (EHCI) controllers +endef + +$(eval $(call KernelPackage,usb2-omap)) + + define KernelPackage/usb2 TITLE:=Support for USB2 controllers DEPENDS:=\ +TARGET_brcm47xx:kmod-usb-brcm47xx \ - +TARGET_mpc85xx:kmod-usb2-fsl + +TARGET_mpc85xx:kmod-usb2-fsl \ + +TARGET_omap:kmod-usb2-omap KCONFIG:=\ CONFIG_USB_EHCI_HCD \ CONFIG_USB_EHCI_ATH79=y \ @@ -1193,6 +1311,7 @@ $(eval $(call KernelPackage,usbmon)) define KernelPackage/usb3 TITLE:=Support for USB3 controllers + DEPENDS:=+TARGET_omap:kmod-usb-phy-omap-usb3 KCONFIG:= \ CONFIG_USB_XHCI_HCD \ CONFIG_USB_XHCI_HCD_DEBUGGING=n