additional musb fixups

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39554
master
Imre Kaloz 11 years ago
parent 6b62eef492
commit 6daafb74b9
  1. 50
      package/kernel/linux/modules/usb.mk
  2. 18
      target/linux/omap24xx/modules.mk

@ -36,7 +36,7 @@ define AddDepends/usb
endef endef
define KernelPackage/musb-hdrc define KernelPackage/usb-musb-hdrc
TITLE:=Support for Mentor Graphics silicon dual role USB TITLE:=Support for Mentor Graphics silicon dual role USB
KCONFIG:= \ KCONFIG:= \
CONFIG_USB_MUSB_HDRC \ CONFIG_USB_MUSB_HDRC \
@ -47,21 +47,57 @@ define KernelPackage/musb-hdrc
CONFIG_USB_MUSB_GADGET=n \ CONFIG_USB_MUSB_GADGET=n \
CONFIG_USB_MUSB_HOST=n \ CONFIG_USB_MUSB_HOST=n \
CONFIG_USB_MUSB_DEBUG=y 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 FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko
AUTOLOAD:=$(call AutoLoad,46,musb_hdrc) AUTOLOAD:=$(call AutoLoad,46,musb_hdrc)
$(call AddDepends/usb) $(call AddDepends/usb)
endef endef
define KernelPackage/musb-hdrc/description define KernelPackage/usb-musb-hdrc/description
Kernel support for Mentor Graphics silicon dual role USB device. Kernel support for Mentor Graphics silicon dual role USB device.
endef endef
$(eval $(call KernelPackage,musb-hdrc)) $(eval $(call KernelPackage,usb-musb-hdrc))
define KernelPackage/usb-musb-platformglue
TITLE:=MUSB platform glue layer
KCONFIG:= \
CONFIG_USB_MUSB_TUSB6010=n \
USB_MUSB_OMAP2PLUS \
USB_MUSB_AM35X \
USB_MUSB_DSPS=n\
USB_MUSB_UX500=n
# DEPENDS:=+kmod-usb-musb-hdrc
$(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:=+kmod-usb-musb-hdrc +kmod-usb-nop-usb-xceiv
$(call AddDepends/usb)
endef
define KernelPackage/usb-musb-tusb6010/description
TUSB6010 support
endef
$(eval $(call KernelPackage,usb-musb-tusb6010))
define KernelPackage/nop-usb-xceiv define KernelPackage/usb-nop-usb-xceiv
TITLE:=Support for USB OTG NOP transceiver TITLE:=Support for USB OTG NOP transceiver
KCONFIG:= \ KCONFIG:= \
CONFIG_NOP_USB_XCEIV CONFIG_NOP_USB_XCEIV
@ -71,11 +107,11 @@ define KernelPackage/nop-usb-xceiv
$(call AddDepends/usb) $(call AddDepends/usb)
endef endef
define KernelPackage/nop-usb-xceiv/description define KernelPackage/usb-nop-usb-xceiv/description
Support for USB OTG NOP transceiver Support for USB OTG NOP transceiver
endef endef
$(eval $(call KernelPackage,nop-usb-xceiv)) $(eval $(call KernelPackage,usb-nop-usb-xceiv))
define KernelPackage/usb-gadget define KernelPackage/usb-gadget

@ -63,22 +63,6 @@ endef
$(eval $(call KernelPackage,n810bm)) $(eval $(call KernelPackage,n810bm))
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 define KernelPackage/usb-tahvo
TITLE:=Support for Tahvo (Nokia n810) USB TITLE:=Support for Tahvo (Nokia n810) USB
KCONFIG:= \ KCONFIG:= \
@ -86,7 +70,7 @@ define KernelPackage/usb-tahvo
CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=n \ CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=n \
CONFIG_USB_OHCI_HCD_OMAP1=y \ CONFIG_USB_OHCI_HCD_OMAP1=y \
CONFIG_USB_GADGET_DEBUG_FS=n CONFIG_USB_GADGET_DEBUG_FS=n
DEPENDS:=@TARGET_omap24xx +kmod-tusb6010 +kmod-usb-gadget DEPENDS:=@TARGET_omap24xx +kmod-usb-musb-tusb6010
FILES:=$(LINUX_DIR)/drivers/cbus/tahvo-usb.ko FILES:=$(LINUX_DIR)/drivers/cbus/tahvo-usb.ko
AUTOLOAD:=$(call AutoLoad,45,tahvo-usb) AUTOLOAD:=$(call AutoLoad,45,tahvo-usb)
$(call AddDepends/usb) $(call AddDepends/usb)

Loading…
Cancel
Save