imx6: enable the chipidea usb driver in the kernel config instead of packaging it
authorFelix Fietkau <nbd@nbd.name>
Tue, 10 Jan 2017 09:10:13 +0000 (10:10 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 10 Jan 2017 11:10:20 +0000 (12:10 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/linux/modules/usb.mk
target/linux/imx6/config-4.4
target/linux/imx6/image/Makefile
target/linux/imx6/profiles/100-generic.mk

index 3574bec5f75176ffdad0af4ecd298bf784ba1f63..7356602721a441ebd823e9220e8a599814ade087 100644 (file)
@@ -1566,7 +1566,7 @@ $(eval $(call KernelPackage,usbip-server))
 
 define KernelPackage/usb-chipidea-imx
   TITLE:=Support for ChipIdea controllers
-  DEPENDS:=@TARGET_imx6||TARGET_mxs +kmod-usb2 +USB_GADGET_SUPPORT:kmod-usb-gadget
+  DEPENDS:=@TARGET_mxs +kmod-usb2 +USB_GADGET_SUPPORT:kmod-usb-gadget
   KCONFIG:=\
        CONFIG_USB_CHIPIDEA \
        CONFIG_USB_CHIPIDEA_HOST=y \
@@ -1589,7 +1589,7 @@ $(eval $(call KernelPackage,usb-chipidea-imx,1))
 
 define KernelPackage/usb-mxs-phy
   TITLE:=Support for Freescale MXS USB PHY
-  DEPENDS:=@TARGET_imx6||TARGET_mxs +TARGET_mxs:kmod-usb-chipidea-imx
+  DEPENDS:=@TARGET_mxs +kmod-usb-chipidea-imx
   KCONFIG:=CONFIG_USB_MXS_PHY
   FILES:=\
        $(LINUX_DIR)/drivers/usb/phy/phy-mxs-usb.ko
index 353ca2e6d875637e2d43e50974d3af2092f27045..94be69bb6e8f9957405f7d8fc115310be1a63b06 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CLKSRC_OF=y
 CONFIG_CLKSRC_PROBE=y
 CONFIG_CLONE_BACKWARDS=y
 CONFIG_COMMON_CLK=y
+CONFIG_CONFIGFS_FS=m
 CONFIG_CPUFREQ_DT=y
 CONFIG_CPU_32v6K=y
 CONFIG_CPU_32v7=y
@@ -403,8 +404,31 @@ CONFIG_UBIFS_FS_ADVANCED_COMPR=y
 CONFIG_UBIFS_FS_LZO=y
 CONFIG_UBIFS_FS_ZLIB=y
 CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
-# CONFIG_USB_MXS_PHY is not set
+CONFIG_USB=y
+CONFIG_USB_CHIPIDEA=y
+# CONFIG_USB_CHIPIDEA_DEBUG is not set
+CONFIG_USB_CHIPIDEA_HOST=y
+CONFIG_USB_CHIPIDEA_OF=y
+CONFIG_USB_CHIPIDEA_UDC=y
+CONFIG_USB_COMMON=y
+CONFIG_USB_EHCI_HCD=y
+# CONFIG_USB_EHCI_HCD_PLATFORM is not set
+# CONFIG_USB_EHCI_MXC is not set
+CONFIG_USB_EHCI_PCI=y
+CONFIG_USB_ETH=m
+# CONFIG_USB_ETH_EEM is not set
+CONFIG_USB_ETH_RNDIS=y
+CONFIG_USB_F_ECM=m
+CONFIG_USB_F_RNDIS=m
+CONFIG_USB_F_SUBSET=m
+CONFIG_USB_GADGET=y
+# CONFIG_USB_IMX21_HCD is not set
+CONFIG_USB_LIBCOMPOSITE=m
+CONFIG_USB_MXS_PHY=y
+CONFIG_USB_PHY=y
 CONFIG_USB_SUPPORT=y
+# CONFIG_USB_UHCI_HCD is not set
+CONFIG_USB_U_ETHER=m
 CONFIG_USE_OF=y
 CONFIG_VECTORS_BASE=0xffff0000
 CONFIG_VFP=y
index 7407db8037596cd8c37ae2e49d50fb24e969aa34..3ccece7c19d6da68e28143192d44250310561102 100644 (file)
@@ -86,8 +86,7 @@ define Device/ventana
        imx6q-gw551x \
        imx6q-gw552x \
        imx6q-gw553x
-  DEVICE_PACKAGES := kmod-sky2 kmod-usb-chipidea-imx kmod-usb-mxs-phy \
-       kmod-sound-core kmod-sound-soc-imx kmod-sound-soc-imx-sgtl5000 \
+  DEVICE_PACKAGES := kmod-sky2 kmod-sound-core kmod-sound-soc-imx kmod-sound-soc-imx-sgtl5000 \
        kmod-can kmod-can-flexcan kmod-can-raw \
        kmod-hwmon-gsc \
        kmod-leds-gpio kmod-pps-gpio \
@@ -116,7 +115,6 @@ endef
 define Device/wandboard
   DEVICE_TITLE := Wandboard Dual
   DEVICE_DTS := imx6dl-wandboard
-  DEVICE_PACKAGES := kmod-usb-chipidea-imx kmod-usb-mxs-phy
 endef
 
 TARGET_DEVICES += \
index 9d981fdc02453a38e003dfb406875a2f6a09c5d1..218cd694041f7354ec9aeb7e38bb70c50eab2583 100644 (file)
@@ -8,8 +8,6 @@
 define Profile/Generic
   PRIORITY:=1
   NAME:=Generic (default)
-  PACKAGES:= \
-       kmod-usb-chipidea-imx kmod-usb-mxs-phy
 endef
 
 define Profile/Generic/Description