This is required for gadget modes to work on most platforms. It must be
disabled for dragonboard410c since that doesn't use dwc3. USB on other
MSM8916 platforms isn't supported by qcom_defconfig anyway.

Signed-off-by: Caleb Connolly <caleb.conno...@linaro.org>
---
 arch/arm/Kconfig                  | 1 +
 configs/dragonboard410c_defconfig | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 
32b80da9869a1647b7b295d3070964fa11f4fc65..63aefeda9575fec8fc57194358df0819397d088e
 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1120,8 +1120,9 @@ config ARCH_SNAPDRAGON
        select SYSRESET
        select SYSRESET_PSCI
        imply OF_UPSTREAM
        imply CMD_DM
+       imply DM_USB_GADGET
 
 config ARCH_SOCFPGA
        bool "Altera SOCFPGA family"
        select ARCH_EARLY_INIT_R
diff --git a/configs/dragonboard410c_defconfig 
b/configs/dragonboard410c_defconfig
index 
967817f4f58e901fc827b4ed991ddd61d1167efa..5870aae83b4fc8d6897eb0f18cc4eb153d299c11
 100644
--- a/configs/dragonboard410c_defconfig
+++ b/configs/dragonboard410c_defconfig
@@ -59,8 +59,9 @@ CONFIG_DM_PMIC=y
 CONFIG_PMIC_QCOM=y
 CONFIG_MSM_SERIAL=y
 CONFIG_SPMI_MSM=y
 CONFIG_USB=y
+# CONFIG_DM_USB_GADGET is not set
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_MSM=y
 CONFIG_USB_ULPI_VIEWPORT=y
 CONFIG_USB_ULPI=y

-- 
2.49.0

Reply via email to