# # Copyright (C) 2006-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # USB_MENU:=USB Support USBNET_DIR:=net/usb USBHID_DIR?=hid/usbhid USBINPUT_DIR?=input/misc define KernelPackage/usb-core SUBMENU:=$(USB_MENU) 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 \ $(LINUX_DIR)/drivers/usb/usb-common.ko AUTOLOAD:=$(call AutoLoad,20,usb-common usbcore,1) $(call AddDepends/nls) endef define KernelPackage/usb-core/description Kernel support for USB endef $(eval $(call KernelPackage,usb-core)) define AddDepends/usb SUBMENU:=$(USB_MENU) DEPENDS+=+kmod-usb-core $(1) endef define KernelPackage/usb-musb-hdrc TITLE:=Support for Mentor Graphics silicon dual role USB KCONFIG:= \ CONFIG_USB_MUSB_HDRC \ CONFIG_USB_INVENTRA_DMA=n \ CONFIG_USB_TI_CPPI41_DMA=n \ CONFIG_MUSB_PIO_ONLY=y \ CONFIG_USB_MUSB_DUAL_ROLE=y \ CONFIG_USB_MUSB_GADGET=n \ CONFIG_USB_MUSB_HOST=n \ CONFIG_USB_MUSB_DEBUG=y DEPENDS:= \ @(TARGET_omap||TARGET_omap24xx) +kmod-usb-gadget \ +TARGET_omap24xx:kmod-usb-musb-tusb6010 FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko AUTOLOAD:=$(call AutoLoad,46,musb_hdrc) $(call AddDepends/usb) endef define KernelPackage/usb-musb-hdrc/description Kernel support for Mentor Graphics silicon dual role USB device. endef $(eval $(call KernelPackage,usb-musb-hdrc)) define KernelPackage/usb-musb-platformglue TITLE:=MUSB platform glue layer KCONFIG:= \ CONFIG_USB_MUSB_TUSB6010=n \ CONFIG_USB_MUSB_OMAP2PLUS=n \ CONFIG_USB_MUSB_AM35X=n \ CONFIG_USB_MUSB_DSPS \ CONFIG_USB_MUSB_UX500=n DEPENDS:=@TARGET_omap +kmod-usb-phy-nop +kmod-usb-musb-hdrc +kmod-usb-phy-am335x FILES:= \ $(LINUX_DIR)/drivers/usb/musb/musb_dsps.ko \ $(LINUX_DIR)/drivers/usb/musb/musb_am335x.ko AUTOLOAD:=$(call AutoLoad,45,phy-omap-control musb_dsps musb_am335x) $(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 HIDDEN:=1 ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-generic.ko),) FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko AUTOLOAD:=$(call AutoLoad,43,phy-generic) else ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-nop.ko),) FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-nop.ko AUTOLOAD:=$(call AutoLoad,43,phy-nop) else FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko AUTOLOAD:=$(call AutoLoad,43,nop-usb-xceiv) endif endif $(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 \ CONFIG_AM335X_CONTROL_USB DEPENDS:=@TARGET_omap +kmod-usb-phy-nop FILES:= \ $(LINUX_DIR)/drivers/usb/phy/phy-am335x.ko \ $(LINUX_DIR)/drivers/usb/phy/phy-am335x-control.ko AUTOLOAD:=$(call AutoLoad,44,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-usb2 TITLE:=Support for OMAP2 USB PHY KCONFIG:= \ CONFIG_OMAP_USB2 \ CONFIG_OMAP_CONTROL_USB DEPENDS:=@TARGET_omap FILES:= \ $(LINUX_DIR)/drivers/phy/phy-omap-usb2.ko \ $(LINUX_DIR)/drivers/usb/phy/phy-omap-control.ko AUTOLOAD:=$(call AutoLoad,45,phy-omap-control phy-omap-usb2) $(call AddDepends/usb) endef define KernelPackage/usb-phy-omap-usb2/description Support for AM335x USB PHY endef $(eval $(call KernelPackage,usb-phy-omap-usb2)) define KernelPackage/usb-phy-omap-usb3 TITLE:=Support for OMAP USB3 PH
obj-m += gpio-button-hotplug.o