X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/67dac5cad683c1e870b7a6c01cb4fbe44942ab6b..59006bd473f95583cf3f1c50b1d43cfbef8a30bf:/package/kernel/modules/usb.mk diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index 45f69f638..d92f9ce03 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -14,10 +14,18 @@ USBINPUT_DIR?=input/misc define KernelPackage/usb-core SUBMENU:=$(USB_MENU) TITLE:=Support for USB - DEPENDS:=@USB_SUPPORT +kmod-nls-base - KCONFIG:=CONFIG_USB - FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko - AUTOLOAD:=$(call AutoLoad,20,usbcore,1) + DEPENDS:=@USB_SUPPORT + KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n + ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.2)),1) + FILES:= \ + $(LINUX_DIR)/drivers/usb/core/usbcore.ko \ + $(LINUX_DIR)/drivers/usb/usb-common.ko + AUTOLOAD:=$(call AutoLoad,20,usb-common usbcore,1) + else + FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko + AUTOLOAD:=$(call AutoLoad,20,usbcore,1) + endif + $(call AddDepends/nls) endef define KernelPackage/usb-core/description @@ -33,6 +41,41 @@ define AddDepends/usb endef +define KernelPackage/usb-gadget + TITLE:=USB Gadget support + KCONFIG:=CONFIG_USB_GADGET + FILES:= + AUTOLOAD:= + DEPENDS:=@USB_GADGET_SUPPORT + $(call AddDepends/usb) +endef + +define KernelPackage/usb-gadget/description + Kernel support for USB Gadget mode. +endef + +$(eval $(call KernelPackage,usb-gadget)) + + +define KernelPackage/usb-eth-gadget + TITLE:=USB Ethernet Gadget support + KCONFIG:= \ + CONFIG_USB_ETH \ + CONFIG_USB_ETH_RNDIS=y \ + CONFIG_USB_ETH_EEM=y + DEPENDS:=+kmod-usb-gadget + FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko + AUTOLOAD:=$(call AutoLoad,52,g_ether) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-eth-gadget/description + Kernel support for USB Ethernet Gadget. +endef + +$(eval $(call KernelPackage,usb-eth-gadget)) + + define KernelPackage/usb-uhci TITLE:=Support for UHCI controllers KCONFIG:= \ @@ -52,10 +95,12 @@ $(eval $(call KernelPackage,usb-uhci,1)) define KernelPackage/usb-ohci TITLE:=Support for OHCI controllers + DEPENDS:=+TARGET_brcm47xx:kmod-usb-brcm47xx KCONFIG:= \ CONFIG_USB_OHCI \ CONFIG_USB_OHCI_HCD \ - CONFIG_USB_OHCI_AR71XX=y + CONFIG_USB_OHCI_AR71XX=y \ + CONFIG_USB_OCTEON_OHCI=y FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko AUTOLOAD:=$(call AutoLoad,50,ohci-hcd,1) $(call AddDepends/usb) @@ -68,16 +113,69 @@ endef $(eval $(call KernelPackage,usb-ohci,1)) +define KernelPackage/musb-hdrc + TITLE:=Support for Mentor Graphics silicon dual role USB + KCONFIG:= \ + CONFIG_USB_MUSB_HDRC \ + CONFIG_MUSB_PIO_ONLY=n \ + CONFIG_USB_MUSB_OTG=y \ + CONFIG_USB_MUSB_DEBUG=y + DEPENDS:=@TARGET_omap24xx + FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko + AUTOLOAD:=$(call AutoLoad,46,musb_hdrc) + $(call AddDepends/usb) +endef + +define KernelPackage/musb-hdrc/description + Kernel support for Mentor Graphics silicon dual role USB device. +endef + +$(eval $(call KernelPackage,musb-hdrc)) + + +define KernelPackage/nop-usb-xceiv + TITLE:=Support for USB OTG NOP transceiver + KCONFIG:= \ + CONFIG_NOP_USB_XCEIV + DEPENDS:=@TARGET_omap24xx + FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko + AUTOLOAD:=$(call AutoLoad,45,nop-usb-xceiv) + $(call AddDepends/usb) +endef + +define KernelPackage/nop-usb-xceiv/description + Support for USB OTG NOP transceiver +endef + +$(eval $(call KernelPackage,nop-usb-xceiv)) + + +define KernelPackage/tusb6010 + TITLE:=Support for TUSB 6010 + KCONFIG:= \ + CONFIG_USB_MUSB_TUSB6010 \ + CONFIG_USB_TUSB6010=y + DEPENDS:=+kmod-musb-hdrc +kmod-nop-usb-xceiv + $(call AddDepends/usb) +endef + +define KernelPackage/tusb6010/description + TUSB6010 support +endef + +$(eval $(call KernelPackage,tusb6010)) + + define KernelPackage/usb-tahvo TITLE:=Support for Tahvo (Nokia n810) USB KCONFIG:= \ CONFIG_CBUS_TAHVO_USB \ - CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=y \ + CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=n \ CONFIG_USB_OHCI_HCD_OMAP1=y \ CONFIG_USB_GADGET_DEBUG_FS=n - DEPENDS:=@TARGET_omap24xx +kmod-usb-ohci + DEPENDS:=@TARGET_omap24xx +kmod-tusb6010 +kmod-usb-gadget FILES:=$(LINUX_DIR)/drivers/cbus/tahvo-usb.ko - AUTOLOAD:=$(call AutoLoad,51,tahvo-usb) + AUTOLOAD:=$(call AutoLoad,45,tahvo-usb) $(call AddDepends/usb) endef @@ -109,8 +207,11 @@ $(eval $(call KernelPackage,usb-isp116x-hcd)) define KernelPackage/usb2 TITLE:=Support for USB2 controllers + DEPENDS:=+TARGET_brcm47xx:kmod-usb-brcm47xx KCONFIG:=CONFIG_USB_EHCI_HCD \ - CONFIG_USB_EHCI_AR71XX=y + CONFIG_USB_EHCI_AR71XX=y \ + CONFIG_USB_OCTEON_EHCI=y \ + CONFIG_USB_EHCI_FSL=n FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko AUTOLOAD:=$(call AutoLoad,40,ehci-hcd,1) $(call AddDepends/usb) @@ -240,7 +341,7 @@ define KernelPackage/usb-serial-ch341 $(call AddDepends/usb-serial) endef -define KernelPackage/usb-serial-belkin/description +define KernelPackage/usb-serial-ch341/description Kernel support for Winchiphead CH341 USB-to-Serial converters endef @@ -262,6 +363,32 @@ endef $(eval $(call KernelPackage,usb-serial-ftdi)) +define KernelPackage/usb-serial-ti-usb + TITLE:=Support for TI USB 3410/5052 + KCONFIG:=CONFIG_USB_SERIAL_TI + FILES:=$(LINUX_DIR)/drivers/usb/serial/ti_usb_3410_5052.ko + AUTOLOAD:=$(call AutoLoad,65,ti_usb_3410_5052) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-ti-usb/description + Kernel support for TI USB 3410/5052 devices +endef + +$(eval $(call KernelPackage,usb-serial-ti-usb)) + + +define KernelPackage/usb-serial-ipw + TITLE:=Support for IPWireless 3G devices + KCONFIG:=CONFIG_USB_SERIAL_IPW + FILES:=$(LINUX_DIR)/drivers/usb/serial/ipw.ko + AUTOLOAD:=$(call AutoLoad,65,ipw) + $(call AddDepends/usb-serial) +endef + +$(eval $(call KernelPackage,usb-serial-ipw)) + + define KernelPackage/usb-serial-mct TITLE:=Support for Magic Control Tech. devices KCONFIG:=CONFIG_USB_SERIAL_MCT_U232 @@ -277,6 +404,21 @@ endef $(eval $(call KernelPackage,usb-serial-mct)) +define KernelPackage/usb-serial-mos7720 + TITLE:=Support for Moschip MOS7720 devices + KCONFIG:=CONFIG_USB_SERIAL_MOS7720 + FILES:=$(LINUX_DIR)/drivers/usb/serial/mos7720.ko + AUTOLOAD:=$(call AutoLoad,65,mos7720) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-mos7720/description + Kernel support for Moschip MOS7720 USB-to-Serial converters +endef + +$(eval $(call KernelPackage,usb-serial-mos7720)) + + define KernelPackage/usb-serial-pl2303 TITLE:=Support for Prolific PL2303 devices KCONFIG:=CONFIG_USB_SERIAL_PL2303 @@ -428,8 +570,25 @@ endef $(eval $(call KernelPackage,usb-serial-keyspan)) +define KernelPackage/usb-serial-wwan + TITLE:=Support for GSM and CDMA modems + DEPENDS:= @!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32 + KCONFIG:=CONFIG_USB_SERIAL_WWAN + FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko + AUTOLOAD:=$(call AutoLoad,61,usb_wwan) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-wwan/description + Kernel support for USB GSM and CDMA modems +endef + +$(eval $(call KernelPackage,usb-serial-wwan)) + + define KernelPackage/usb-serial-option TITLE:=Support for Option HSDPA modems + DEPENDS:=+!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32:kmod-usb-serial-wwan KCONFIG:=CONFIG_USB_SERIAL_OPTION FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko AUTOLOAD:=$(call AutoLoad,65,option) @@ -445,7 +604,7 @@ $(eval $(call KernelPackage,usb-serial-option)) define KernelPackage/usb-storage TITLE:=USB Storage support - DEPENDS:= +!TARGET_x86:kmod-scsi-core + DEPENDS:= +kmod-scsi-core KCONFIG:=CONFIG_USB_STORAGE FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko AUTOLOAD:=$(call AutoLoad,60,usb-storage,1) @@ -582,7 +741,7 @@ $(eval $(call KernelPackage,usb-atm-cxacru)) define KernelPackage/usb-net TITLE:=Kernel modules for USB-to-Ethernet convertors - KCONFIG:=CONFIG_USB_USBNET + KCONFIG:=CONFIG_USB_USBNET CONFIG_MII=y AUTOLOAD:=$(call AutoLoad,60,usbnet) FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/usbnet.ko $(call AddDepends/usb) @@ -721,6 +880,20 @@ endef $(eval $(call KernelPackage,usb-net-rndis)) +define KernelPackage/usb-net-sierrawireless + TITLE:=Support for Sierra Wireless devices + KCONFIG:=CONFIG_USB_SIERRA_NET + FILES:=$(LINUX_DIR)/drivers/net/usb/sierra_net.ko + AUTOLOAD:=$(call AutoLoad,65,sierra_net) + $(call AddDepends/usb-net) +endef + +define KernelPackage/usb-net-sierrawireless/description + Kernel support for Sierra Wireless devices +endef + +$(eval $(call KernelPackage,usb-net-sierrawireless)) + define KernelPackage/usb-hid TITLE:=Support for USB Human Input Devices @@ -800,3 +973,39 @@ endef $(eval $(call KernelPackage,usb-phidget)) +define KernelPackage/usb-rt305x-dwc_otg + TITLE:=RT305X USB controller driver + DEPENDS:=@TARGET_ramips_rt305x + KCONFIG:= \ + CONFIG_DWC_OTG \ + CONFIG_DWC_OTG_HOST_ONLY=y \ + CONFIG_DWC_OTG_DEVICE_ONLY=n \ + CONFIG_DWC_OTG_DEBUG=n + FILES:=$(LINUX_DIR)/drivers/usb/dwc_otg/dwc_otg.ko + AUTOLOAD:=$(call AutoLoad,54,dwc_otg,1) + $(call AddDepends/usb) +endef + +define KernelPackage/usb-rt305x-dwc_otg/description + This driver provides USB Device Controller support for the + Synopsys DesignWare USB OTG Core used in the Ralink RT305X SoCs. +endef + +$(eval $(call KernelPackage,usb-rt305x-dwc_otg)) + +define KernelPackage/usb-brcm47xx + SUBMENU:=$(USB_MENU) + TITLE:=Support for USB on bcm47xx + DEPENDS:=@USB_SUPPORT @TARGET_brcm47xx + KCONFIG:= \ + CONFIG_USB_HCD_BCMA \ + CONFIG_USB_HCD_SSB + FILES:= \ + $(LINUX_DIR)/drivers/usb/host/bcma-hcd.ko \ + $(LINUX_DIR)/drivers/usb/host/ssb-hcd.ko + AUTOLOAD:=$(call AutoLoad,19,bcma-hcd ssb-hcd,1) + $(call AddDepends/usb) +endef + +$(eval $(call KernelPackage,usb-brcm47xx)) +