X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a0b9641a8f6bd889eec68a7f212460d47ff4e877..HEAD:/package/kernel/modules/usb.mk diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index d5b58ffb3..62e79baba 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -16,8 +16,15 @@ define KernelPackage/usb-core TITLE:=Support for USB DEPENDS:=@USB_SUPPORT KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n - FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko - AUTOLOAD:=$(call AutoLoad,20,usbcore,1) + 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 @@ -88,10 +95,13 @@ $(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_ATH79=y \ + CONFIG_USB_OHCI_BCM63XX=y \ + CONFIG_USB_OHCI_RT3883=y \ CONFIG_USB_OCTEON_OHCI=y FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko AUTOLOAD:=$(call AutoLoad,50,ohci-hcd,1) @@ -145,6 +155,7 @@ $(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) @@ -198,8 +209,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_ATH79=y \ + CONFIG_USB_EHCI_BCM63XX=y \ + CONFIG_USB_EHCI_RT3883=y \ CONFIG_USB_OCTEON_EHCI=y \ CONFIG_USB_EHCI_FSL=n FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.ko @@ -353,6 +367,21 @@ 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 @@ -577,6 +606,21 @@ endef $(eval $(call KernelPackage,usb-serial-option)) +define KernelPackage/usb-serial-qualcomm + TITLE:=Support for Qualcomm USB serial + KCONFIG:=CONFIG_USB_SERIAL_QUALCOMM + FILES:=$(LINUX_DIR)/drivers/usb/serial/qcserial.ko + AUTOLOAD:=$(call AutoLoad,65,qcserial) + $(call AddDepends/usb-serial) +endef + +define KernelPackage/usb-serial-qualcomm/description + Kernel support for Qualcomm USB Serial devices (Gobi) +endef + +$(eval $(call KernelPackage,usb-serial-qualcomm)) + + define KernelPackage/usb-storage TITLE:=USB Storage support DEPENDS:= +kmod-scsi-core @@ -870,6 +914,21 @@ endef $(eval $(call KernelPackage,usb-net-sierrawireless)) +define KernelPackage/usb-net-ipheth + TITLE:=Apple iPhone USB Ethernet driver + KCONFIG:=CONFIG_USB_IPHETH + FILES:=$(LINUX_DIR)/drivers/net/usb/ipheth.ko + AUTOLOAD:=$(call AutoLoad,64,ipheth) + $(call AddDepends/usb-net) +endef + +define KernelPackage/usb-net-ipheth/description + Kernel support for Apple iPhone USB Ethernet driver +endef + +$(eval $(call KernelPackage,usb-net-ipheth)) + + define KernelPackage/usb-hid TITLE:=Support for USB Human Input Devices KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y @@ -967,3 +1026,20 @@ define KernelPackage/usb-rt305x-dwc_otg/description 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)) +