X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fkernel%2Fmodules%2Fusb.mk;h=1e5c7aad414d207958c0c374caa9a47b71812edb;hp=e543cd644ec2f5204a50860d2b96938fb4ba7694;hb=d3fd7dda722815f166b966517bb0a0b6fd2af0fa;hpb=7f0e2b8af821b6e869266fadac908bd08e246579 diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index e543cd644e..1e5c7aad41 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-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -14,10 +14,13 @@ USBINPUT_DIR?=input/misc define KernelPackage/usb-core SUBMENU:=$(USB_MENU) TITLE:=Support for USB - DEPENDS:=@USB_SUPPORT +kmod-nls-base + 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) + FILES:= \ + $(LINUX_DIR)/drivers/usb/core/usbcore.ko \ + $(LINUX_DIR)/drivers/usb/usb-common.ko + AUTOLOAD:=$(call AutoLoad,20,usb-common usbcore,1) + $(call AddDepends/nls) endef define KernelPackage/usb-core/description @@ -87,10 +90,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) @@ -144,6 +150,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) @@ -197,8 +204,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 @@ -292,21 +302,6 @@ define AddDepends/usb-serial endef -define KernelPackage/usb-serial-airprime - TITLE:=Support for Airprime (EVDO) - KCONFIG:=CONFIG_USB_SERIAL_AIRPRIME - FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.ko - AUTOLOAD:=$(call AutoLoad,65,airprime) - $(call AddDepends/usb-serial) -endef - -define KernelPackage/usb-serial-airprime/description - Kernel support for Airprime (EVDO) -endef - -$(eval $(call KernelPackage,usb-serial-airprime)) - - define KernelPackage/usb-serial-belkin TITLE:=Support for Belkin devices KCONFIG:=CONFIG_USB_SERIAL_BELKIN @@ -352,6 +347,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 @@ -546,7 +556,6 @@ $(eval $(call KernelPackage,usb-serial-keyspan)) define KernelPackage/usb-serial-wwan TITLE:=Support for GSM and CDMA modems - DEPENDS:= @LINUX_2_6_35||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38 KCONFIG:=CONFIG_USB_SERIAL_WWAN FILES:=$(LINUX_DIR)/drivers/usb/serial/usb_wwan.ko AUTOLOAD:=$(call AutoLoad,61,usb_wwan) @@ -562,7 +571,7 @@ $(eval $(call KernelPackage,usb-serial-wwan)) define KernelPackage/usb-serial-option TITLE:=Support for Option HSDPA modems - DEPENDS:=+LINUX_2_6_35||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38:kmod-usb-serial-wwan + DEPENDS:=+kmod-usb-serial-wwan KCONFIG:=CONFIG_USB_SERIAL_OPTION FILES:=$(LINUX_DIR)/drivers/usb/serial/option.ko AUTOLOAD:=$(call AutoLoad,65,option) @@ -576,9 +585,24 @@ 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:= +!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) @@ -631,21 +655,6 @@ endef $(eval $(call KernelPackage,usb-storage-extras)) -define KernelPackage/usb-video - TITLE:=Support for USB video devices - KCONFIG:=CONFIG_VIDEO_USBVIDEO - FILES:=$(LINUX_DIR)/drivers/media/video/usbvideo/usbvideo.ko - AUTOLOAD:=$(call AutoLoad,61,usbvideo) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-video/description - Kernel support for USB video devices -endef - -$(eval $(call KernelPackage,usb-video)) - - define KernelPackage/usb-atm TITLE:=Support for ATM on USB bus DEPENDS:=+kmod-atm @@ -869,6 +878,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 @@ -934,16 +958,70 @@ endef $(eval $(call KernelPackage,usb-test)) -define KernelPackage/usb-phidget - TITLE:=USB Phidget Driver - KCONFIG:=CONFIG_USB_PHIDGET CONFIG_USB_PHIDGETKIT CONFIG_USB_PHIDGETMOTORCONTROL CONFIG_USB_PHIDGETSERVO - FILES:=$(LINUX_DIR)/drivers/usb/misc/phidget*.ko -$(call AddDepends/usb) +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-phidget/description - Kernel support for USB Phidget devices. +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-phidget)) +$(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)) + +define KernelPackage/usbip + TITLE := USB-over-IP kernel support + KCONFIG:= \ + CONFIG_USBIP_CORE \ + CONFIG_USBIP_DEBUG=n + FILES:=$(LINUX_DIR)/drivers/staging/usbip/usbip-core.ko + AUTOLOAD:=$(call AutoLoad,90,usbip-core) + $(call AddDepends/usb) +endef +$(eval $(call KernelPackage,usbip)) + +define KernelPackage/usbip-client + TITLE := USB-over-IP client driver + DEPENDS := +kmod-usbip + KCONFIG := CONFIG_USBIP_VHCI_HCD + FILES := $(LINUX_DIR)/drivers/staging/usbip/vhci-hcd.$(LINUX_KMOD_SUFFIX) + AUTOLOAD := $(call AutoLoad,95,vhci-hcd) + $(call AddDepends/usb) +endef +$(eval $(call KernelPackage,usbip-client)) + +define KernelPackage/usbip-server +$(call KernelPackage/usbip/Default) + TITLE := USB-over-IP host driver + DEPENDS := +kmod-usbip + KCONFIG := CONFIG_USBIP_HOST + FILES := $(LINUX_DIR)/drivers/staging/usbip/usbip-host.ko + AUTOLOAD := $(call AutoLoad,95,usbip-host) + $(call AddDepends/usb) +endef +$(eval $(call KernelPackage,usbip-server))