]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: dwc3: Move CONFIG_USB_DWC3_GADGET/HOST to Kconfig
authorSam Protsenko <semen.protsenko@linaro.org>
Wed, 13 Apr 2016 11:20:27 +0000 (14:20 +0300)
committerMarek Vasut <marex@denx.de>
Wed, 20 Apr 2016 09:43:27 +0000 (11:43 +0200)
Description was borrowed from kernel dwc3 Kconfig.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
20 files changed:
configs/am437x_gp_evm_defconfig
configs/am437x_sk_evm_defconfig
configs/am43xx_evm_defconfig
configs/am43xx_evm_ethboot_defconfig
configs/am43xx_evm_qspiboot_defconfig
configs/am43xx_evm_usbhost_boot_defconfig
configs/dra72_evm_defconfig
configs/dra74_evm_defconfig
configs/dra7xx_evm_defconfig
configs/dra7xx_evm_qspiboot_defconfig
configs/dra7xx_evm_uart3_defconfig
configs/odroid-xu3_defconfig
configs/omap5_uevm_defconfig
configs/xilinx_zynqmp_ep_defconfig
drivers/usb/dwc3/Kconfig
include/configs/am43xx_evm.h
include/configs/dra7xx_evm.h
include/configs/odroid_xu3.h
include/configs/omap5_uevm.h
include/configs/xilinx_zynqmp.h

index b02f8ad39649aa04cd73b660b0233825694e1da5..8dc905e4ad602bc45ebbb8e599f2734826c4d172 100644 (file)
@@ -22,5 +22,6 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
index 1960429f758368be2650b9ae65b9d71fa21912a3..33cc903a7ef519b85838fe50b082d04bcd45edce 100644 (file)
@@ -26,5 +26,6 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
index 942a6a0eb043634af10a529a14b0c9118aaf3ccc..5406bebf298a6853e61ea54d6c6aeb19c7f7c431 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index 114d10f9b4a7e63750908aecfdef9a437e88fd1d..fa01c754dda84b40376aa0d0f7d7fdd6851ba037 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index 52265c340bbb5ebc5b1c0ece8893cdef0ead5898..76d2e72c9168aa727cc225a9a40be0a49109874f 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index 9166848863cf27c2de062dadff9ff4a94fc4a845..c437b3a02ea5f157711ce706b3e5b45268def554 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index b2276a90c03561dfb7edc7b491777e0ceba2edad..9fdd842748eddb25195e82343ec61da5dd40ebe0 100644 (file)
@@ -25,5 +25,6 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
index 7aa823334e00ccc283ef263341e9d6d81feb5887..810db5b5da1452398696de5e25a584ac94fce091 100644 (file)
@@ -24,5 +24,6 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
index 160ce933a56eda0a540328aa8c2c6fb252d58920..88bf3797738806c99492bbba202f727e7be3eb84 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index 4b4fd272c91cc85a5c21167c054b98cabad66aa4..80961f76368968f1b86d63ce79c49d13cdea3896 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index c86cedc37b46920890291253c6a60257e9a22ea3..f1870839b572464b8a96c895b59fd26c26c1698c 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index da92b2d16596addd7de12ba72b6e3707ec77db4f..cb6035b98bfa61672ee6b9fbf2cae58d0879dd6f 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_DM_REGULATOR=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_VIDEO_BRIDGE=y
index 024de7223006ea5170888ab6ac962b7d3118705d..5ab2b9d1a8656ddd7cb438480613423faecc1307 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
index 81f59457e62057b674f51eb4ad3f4d115e179300..3bab31c8e8ffb5ede0d2d4af1a60d936fba875d2 100644 (file)
@@ -39,6 +39,7 @@ CONFIG_DM_ETH=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_REGEX is not set
index debc74baa1ebce7aff411bc24660f5edb1e65f1c..c0251b1937ccb2aac4fc394720b7e39bc3f0b39a 100644 (file)
@@ -5,3 +5,26 @@ config USB_DWC3
        help
          Say Y here if your system has a Dual Role SuperSpeed
          USB controller based on the DesignWare USB3 IP Core.
+
+if USB_DWC3
+
+choice
+       bool "DWC3 Mode Selection"
+
+config USB_DWC3_HOST
+       bool "Host only mode"
+       depends on USB
+       help
+         Select this when you want to use DWC3 in host mode only,
+         thereby the gadget feature will be regressed.
+
+config USB_DWC3_GADGET
+       bool "Gadget only mode"
+       depends on USB_GADGET
+       help
+         Select this when you want to use DWC3 in gadget mode only,
+         thereby the host feature will be regressed.
+
+endchoice
+
+endif
index 3643489b189a3db215a8625870534246f17f5168..5e0f65d58fe68dd69c52706c90e05b8bef9c2fa3 100644 (file)
 /* USB GADGET */
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
 #undef CONFIG_USB_DWC3
+#undef CONFIG_USB_DWC3_GADGET
 
 #undef CONFIG_USB_GADGET_DOWNLOAD
 #undef CONFIG_USB_GADGET_VBUS_DRAW
        (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
index 70c25bf0e04b7a659881a760627ee4046564fda8..3fb97e88439f2a9ab073b46213016ef15b35b20d 100644 (file)
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
index 7e91f61eee8d2a11be1fb4b1117cd21cd5e30eaa..57e20e7e3fca68ae15e0341f2c49da4f7c8da90d 100644 (file)
@@ -48,7 +48,6 @@
 #define CONFIG_USB_EHCI_EXYNOS
 
 /* DWC3 */
-#define CONFIG_USB_DWC3_GADGET
 #define CONFIG_USB_DWC3_PHY_SAMSUNG
 
 /* Downloader */
index 8a989340206093a18f7e2bd1e7472958db854f5d..6853260fd2578dd03f16150caec2a71bbacc3f60 100644 (file)
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
index d572b814cb2e3db9f0945fe19d99d245ee3bdacd..63165df18c350cd99ce85af1c77419f1cd0e7d2c 100644 (file)
 #define CONFIG_USB_STORAGE
 #define CONFIG_USB_XHCI_ZYNQMP
 
-#define CONFIG_USB_DWC3_GADGET
-
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE   0x1800000
 #define DFU_DEFAULT_POLL_TIMEOUT       300
 #define CONFIG_USB_FUNCTION_DFU