Skip to contentSkip to conversation

usb: Move DWC3 and some gadget options to Kconfig

PATCH Superseded Semen Protsenko 6 participants 25 messages Apr 5, 2016 – Apr 11, 2016

Subsystems (9)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

#1 lore raw

PATCH 1/8 usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

From: Sam Protsenko <[email protected]>

The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0.

Definitions were added to defconfig files in a way that "make savedefconfig" generates exactly the same file as used defconfig.

---
 configs/A13-OLinuXino_defconfig           |  1 +
 configs/CHIP_defconfig                    |  1 +
 configs/Cubietruck_defconfig              |  1 +
 configs/bcm11130_defconfig                |  1 +
 configs/bcm11130_nand_defconfig           |  1 +
 configs/bcm28155_ap_defconfig             |  1 +
 configs/bcm28155_w1d_defconfig            |  1 +
 configs/kc1_defconfig                     |  1 +
 configs/omap3_beagle_defconfig            |  1 +
 configs/omap3_logic_defconfig             |  1 +
 configs/sniper_defconfig                  |  1 +
 configs/tbs2910_defconfig                 |  1 +
 drivers/usb/gadget/Kconfig                | 21 +++++++++++++++++++++
 include/configs/am335x_evm.h              |  1 -
 include/configs/am43xx_evm.h              |  5 ++++-
 include/configs/baltos.h                  |  1 -
 include/configs/bav335x.h                 |  1 -
 include/configs/bcm28155_ap.h             |  1 -
 include/configs/cgtqmx6eval.h             |  1 -
 include/configs/colibri_vf.h              |  1 -
 include/configs/corvus.h                  |  1 -
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/exynos4-common.h          |  1 -
 include/configs/gw_ventana.h              |  1 -
 include/configs/kc1.h                     |  1 -
 include/configs/mx6sabre_common.h         |  1 -
 include/configs/mx7dsabresd.h             |  1 -
 include/configs/nitrogen6x.h              |  1 -
 include/configs/odroid_xu3.h              |  1 -
 include/configs/omap3_beagle.h            |  1 -
 include/configs/omap3_logic.h             |  1 -
 include/configs/omap5_uevm.h              |  1 -
 include/configs/pengwyn.h                 |  1 -
 include/configs/s5p_goni.h                |  1 -
 include/configs/siemens-am33x-common.h    |  1 -
 include/configs/smartweb.h                |  1 -
 include/configs/sniper.h                  |  1 -
 include/configs/socfpga_common.h          |  1 -
 include/configs/sunxi-common.h            |  1 -
 include/configs/taurus.h                  |  1 -
 include/configs/tbs2910.h                 |  1 -
 include/configs/tegra-common-usb-gadget.h |  1 -
 include/configs/warp.h                    |  1 -
 include/configs/xilinx_zynqmp.h           |  1 -
 include/configs/zynq-common.h             |  1 -
 45 files changed, 37 insertions(+), 32 deletions(-)
configs/A13-OLinuXino_defconfig +1 -0
index 45ec575..f022ba3 100644
@@ -23,3 +23,4 @@ CONFIG_CMD_GPIO=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/CHIP_defconfig +1 -0
index f6346de..6c9a25f 100644
@@ -14,3 +14,4 @@ CONFIG_AXP_ALDO3_VOLT=3300
 CONFIG_AXP_ALDO4_VOLT=3300
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/Cubietruck_defconfig +1 -0
index 0599472..7400d8d 100644
@@ -20,3 +20,4 @@ CONFIG_ETH_DESIGNWARE=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/bcm11130_defconfig +1 -0
index 222c319..d6e13c0 100644
@@ -10,3 +10,4 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/bcm11130_nand_defconfig +1 -0
index 7e1e682..8cb654b 100644
@@ -10,3 +10,4 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/bcm28155_ap_defconfig +1 -0
index ba57944..eb6a609 100644
@@ -9,3 +9,4 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/bcm28155_w1d_defconfig +1 -0
index 36849d5..21d83d4 100644
@@ -10,3 +10,4 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
configs/kc1_defconfig +1 -0
index 06698b8..73c89b5 100644
@@ -13,4 +13,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_OF_LIBFDT=y
configs/omap3_beagle_defconfig +1 -0
index 798a7e5..1aa89df 100644
@@ -9,4 +9,5 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_OF_LIBFDT=y
configs/omap3_logic_defconfig +1 -0
index 02202d5..332d2de 100644
@@ -13,4 +13,5 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_OF_LIBFDT=y
configs/sniper_defconfig +1 -0
index 313c489..7756b7f 100644
@@ -13,4 +13,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_OF_LIBFDT=y
configs/tbs2910_defconfig +1 -0
index d0fda48..3f21e54 100644
@@ -10,4 +10,5 @@ CONFIG_DM=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_OF_LIBFDT=y
drivers/usb/gadget/Kconfig +21 -0
index f4698f4..17ca316 100644
@@ -33,3 +33,24 @@ menuconfig USB_GADGET
 	   a USB peripheral device.  Configure one hardware driver for your
 	   peripheral/device side bus controller, and a "gadget driver" for
 	   your peripheral protocol.
+
+if USB_GADGET
+
+config USB_GADGET_VBUS_DRAW
+	int "Maximum VBUS Power usage (2-500 mA)"
+	range 0 500
+	default 2
+	help
+	   Some devices need to draw power from USB when they are
+	   configured, perhaps to operate circuitry or to recharge
+	   batteries.  This is in addition to any local power supply,
+	   such as an AC adapter or batteries.
+
+	   Enter the maximum power your device draws through USB, in
+	   milliAmperes.  The permitted range of values is 2 - 500 mA;
+	   0 mA would be legal, but can make some hosts misbehave.
+
+	   This value will be used except for system-specific gadget
+	   drivers that have more specific information.
+
+endif # USB_GADGET
include/configs/am335x_evm.h +0 -1
index 29b693a..8d68d60 100644
@@ -290,7 +290,6 @@
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
 #define CONFIG_AM335X_USB0_MODE	MUSB_PERIPHERAL
include/configs/am43xx_evm.h +4 -1
index fd3f6a7..0dd9c7a7 100644
@@ -122,6 +122,10 @@
 #endif
 
 /* USB GADGET */
+#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
+#undef CONFIG_USB_GADGET_VBUS_DRAW
+#endif
+
 #if !defined(CONFIG_SPL_BUILD) || \
 	(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
 #define CONFIG_USB_DWC3_PHY_OMAP
@@ -130,7 +134,6 @@
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW 2
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
include/configs/baltos.h +0 -1
index bfe3fa3..529cf1c 100644
@@ -276,7 +276,6 @@
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
 #define CONFIG_AM335X_USB0_MODE	MUSB_HOST
include/configs/bav335x.h +0 -1
index 6c860a6..82bf92a 100644
@@ -441,7 +441,6 @@ DEFAULT_LINUX_BOOT_ENV \
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
 #define CONFIG_AM335X_USB0_MODE	MUSB_PERIPHERAL
include/configs/bcm28155_ap.h +0 -1
index cf25bde..387895b 100644
@@ -139,7 +139,6 @@
 #define CONFIG_FASTBOOT_BUF_SIZE	(CONFIG_SYS_SDRAM_SIZE - SZ_1M)
 #define CONFIG_FASTBOOT_BUF_ADDR	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_BCM_UDC_OTG_PHY
 #define CONFIG_USB_GADGET_DOWNLOAD
include/configs/cgtqmx6eval.h +0 -1
index 63e3b94..3f3b69d 100644
@@ -93,7 +93,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/colibri_vf.h +0 -1
index 7f57a54..63dbe12 100644
@@ -235,7 +235,6 @@
 /* USB Client Support */
 #define CONFIG_CI_UDC
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW      2
 #define CONFIG_TRDX_VID                  0x1B67
 #define CONFIG_TRDX_PID_COLIBRI_VF50     0x0016
 #define CONFIG_TRDX_PID_COLIBRI_VF61     0x0017
include/configs/corvus.h +0 -1
index fcf2bd6..b8c441e 100644
@@ -125,7 +125,6 @@
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/dra7xx_evm.h +0 -1
index 7734e8d..e9facae 100644
@@ -233,7 +233,6 @@
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW 2
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM 0xd022
include/configs/exynos4-common.h +0 -1
index 008d24c..c8e5397 100644
@@ -53,7 +53,6 @@
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
include/configs/gw_ventana.h +0 -1
index 793b3fb..62f3468 100644
@@ -196,7 +196,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW    2
 
 /* Netchip IDs */
 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
include/configs/kc1.h +0 -1
index ee7d9ce..d8aa182 100644
@@ -185,7 +185,6 @@
 #define CONFIG_USB_MUSB_OMAP2PLUS
 
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 
 /*
  * Download
include/configs/mx6sabre_common.h +0 -1
index ceea74e..299f11b 100644
@@ -241,7 +241,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/mx7dsabresd.h +0 -1
index 5d897c2..506ac32 100644
@@ -256,7 +256,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/nitrogen6x.h +0 -1
index 3604e44..a50829e 100644
@@ -333,7 +333,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 /* Netchip IDs */
 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
include/configs/odroid_xu3.h +0 -1
index 01d08dc..e4986b0 100644
@@ -54,7 +54,6 @@
 
 /* USB gadget */
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 /* Downloader */
 #define CONFIG_G_DNL_VENDOR_NUM		0x04E8
include/configs/omap3_beagle.h +0 -1
index 2112d9f..17d8a86 100644
@@ -66,7 +66,6 @@
 #define CONFIG_TWL4030_USB		1
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
include/configs/omap3_logic.h +0 -1
index 304e1ce..7e802e9 100644
@@ -85,7 +85,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
include/configs/omap5_uevm.h +0 -1
index a5cfa0c..09beb74 100644
@@ -106,7 +106,6 @@
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW 2
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
include/configs/pengwyn.h +0 -1
index 1a670cb..ec3fcba 100644
@@ -200,7 +200,6 @@
 #define CONFIG_USB_MUSB_PIO_ONLY
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
 #define CONFIG_AM335X_USB0_MODE	MUSB_PERIPHERAL
include/configs/s5p_goni.h +0 -1
index 07a5134..919c60e 100644
@@ -273,7 +273,6 @@
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW 2
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
include/configs/siemens-am33x-common.h +0 -1
index df2a514..df4e734 100644
@@ -225,7 +225,6 @@
 #define CONFIG_USB_MUSB_PIO_ONLY
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
 #undef CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USB_MUSB_HOST
 
 #define CONFIG_AM335X_USB0
include/configs/smartweb.h +0 -1
index db820ba..0586aec 100644
@@ -176,7 +176,6 @@
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	SZ_1M
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/sniper.h +0 -1
index 18a379d..12090a3 100644
@@ -202,7 +202,6 @@
 #define CONFIG_TWL4030_USB
 
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 
 /*
  * Download
include/configs/socfpga_common.h +0 -1
index 07519c1..a42e6d7 100644
@@ -254,7 +254,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #if defined(CONFIG_CMD_DFU) || defined(CONFIG_CMD_USB_MASS_STORAGE)
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 /* USB Composite download gadget - g_dnl */
 #define CONFIG_USB_GADGET_DOWNLOAD
include/configs/sunxi-common.h +0 -1
index 8f11eb9..b5d05cd 100644
@@ -343,7 +343,6 @@ extern int soft_i2c_gpio_scl;
 
 #ifdef CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_FUNCTION_DFU
include/configs/taurus.h +0 -1
index 5b190f6..0b04b3a 100644
@@ -140,7 +140,6 @@
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/tbs2910.h +0 -1
index 1b5046a..715994c 100644
@@ -132,7 +132,6 @@
 #define CONFIG_USBD_HS
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	0
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/tegra-common-usb-gadget.h +0 -1
index c3a0151..ec034a1 100644
@@ -10,7 +10,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* USB gadget mode support*/
-#define CONFIG_USB_GADGET_VBUS_DRAW    2
 #define CONFIG_CI_UDC
 #define CONFIG_CI_UDC_HAS_HOSTPC
 #define CONFIG_USB_GADGET_DUALSPEED
include/configs/warp.h +0 -1
index cb93629..80c4e38 100644
@@ -81,7 +81,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/xilinx_zynqmp.h +0 -1
index 8cea610..3a96483 100644
@@ -130,7 +130,6 @@
 
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_VBUS_DRAW	2
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	0x1800000
 #define DFU_DEFAULT_POLL_TIMEOUT	300
include/configs/zynq-common.h +0 -1
index d8e3fa4..941372d 100644
@@ -107,7 +107,6 @@
 # define DFU_DEFAULT_POLL_TIMEOUT	300
 # define CONFIG_USB_FUNCTION_DFU
 # define CONFIG_DFU_RAM
-# define CONFIG_USB_GADGET_VBUS_DRAW	2
 # define CONFIG_G_DNL_VENDOR_NUM	0x03FD
 # define CONFIG_G_DNL_PRODUCT_NUM	0x0300
 # define CONFIG_G_DNL_MANUFACTURER	"Xilinx"
Signature · 1 line
2.8.0.rc3
#2 lore raw

PATCH 1/8 usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

Quoted 4 lines · Semen Protsenko

From: Sam Protsenko <[email protected]>

The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0.

Do they /require/ the value to be 0, or simply currently have it set to 0 because whoever set the value in U-Boot wasn't aware that a value of 0 could cause issues with some hosts?

I'd be tempted to keep the same range as the Linux kernel and bump all boards up to a minimum value of 2. Presumably there's some good reason the kernel chose a minimum of 2, and in practice I expect increasing all boards to 2 isn't going to make any negative difference.

Quoted 5 lines
drivers/usb/gadget/Kconfig +3 -0
 
+config USB_GADGET_VBUS_DRAW
+	int "Maximum VBUS Power usage (2-500 mA)"
+	range 0 500

drivers/usb/gadget/Kconfig menuconfig USB_GADGET · line 51

Quoted 10 lines
drivers/usb/gadget/Kconfig +10 -0
+	default 2
+	help
+	   Some devices need to draw power from USB when they are
+	   configured, perhaps to operate circuitry or to recharge
+	   batteries.  This is in addition to any local power supply,
+	   such as an AC adapter or batteries.
+
+	   Enter the maximum power your device draws through USB, in
+	   milliAmperes.  The permitted range of values is 2 - 500 mA;
+	   0 mA would be legal, but can make some hosts misbehave.

In particular, I'm thinking of that last sentence.

#3 lore raw

PATCH 1/8 usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

Quoted 6 lines · Stephen Warren
Quoted 4 lines · Semen Protsenko

From: Sam Protsenko <[email protected]>

The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0.

Quoted 6 lines

Do they /require/ the value to be 0, or simply currently have it set to 0 because whoever set the value in U-Boot wasn't aware that a value of 0 could cause issues with some hosts?

I'd be tempted to keep the same range as the Linux kernel and bump all boards up to a minimum value of 2.

Right. VBUS draw 0 might confuse some non-Linux systems.

Quoted 21 lines

Presumably there's some good reason
the kernel chose a minimum of 2, and in practice I expect increasing all boards to 2 isn't going to make any negative difference.

Quoted 5 lines
drivers/usb/gadget/Kconfig +3 -0
 
+config USB_GADGET_VBUS_DRAW
+    int "Maximum VBUS Power usage (2-500 mA)"
+    range 0 500

drivers/usb/gadget/Kconfig menuconfig USB_GADGET · line 51

Quoted 10 lines
drivers/usb/gadget/Kconfig +10 -0
+    default 2
+    help
+       Some devices need to draw power from USB when they are
+       configured, perhaps to operate circuitry or to recharge
+       batteries.  This is in addition to any local power supply,
+       such as an AC adapter or batteries.
+
+       Enter the maximum power your device draws through USB, in
+       milliAmperes.  The permitted range of values is 2 - 500 mA;
+       0 mA would be legal, but can make some hosts misbehave.

In particular, I'm thinking of that last sentence.

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

PATCH 1/8 usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

Quoted 10 lines · Marek Vasut
Quoted 9 lines · Stephen Warren
Quoted 4 lines · Semen Protsenko

From: Sam Protsenko <[email protected]>

The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0.

Do they /require/ the value to be 0, or simply currently have it set to 0 because whoever set the value in U-Boot wasn't aware that a value of 0 could cause issues with some hosts?

For TBS2910 I set the value to 0 because the board does not need any power from the host. It is always self-powered and cannot be driven from USB. And yes, I was not aware that a value of 0 could cause problems.

Quoted 26 lines
Quoted 2 lines

I'd be tempted to keep the same range as the Linux kernel and bump all boards up to a minimum value of 2.

Right. VBUS draw 0 might confuse some non-Linux systems.

Quoted 21 lines

Presumably there's some good reason
the kernel chose a minimum of 2, and in practice I expect increasing all boards to 2 isn't going to make any negative difference.

Quoted 5 lines
drivers/usb/gadget/Kconfig +3 -0
 
+config USB_GADGET_VBUS_DRAW
+    int "Maximum VBUS Power usage (2-500 mA)"
+    range 0 500

drivers/usb/gadget/Kconfig menuconfig USB_GADGET · line 51

Quoted 10 lines
drivers/usb/gadget/Kconfig +10 -0
+    default 2
+    help
+       Some devices need to draw power from USB when they are
+       configured, perhaps to operate circuitry or to recharge
+       batteries.  This is in addition to any local power supply,
+       such as an AC adapter or batteries.
+
+       Enter the maximum power your device draws through USB, in
+       milliAmperes.  The permitted range of values is 2 - 500 mA;
+       0 mA would be legal, but can make some hosts misbehave.

In particular, I'm thinking of that last sentence.

Is the problematic value of zero forbidden in some spec, or is actually a bug in the host driver (to be fixed there) causing confusion?

On the other hand, if no bus power is needed a maximum power value of 2mA should not hurt.

Regards,
Soeren

#5 lore raw

PATCH 1/8 usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

In reply to Stephen Warren
Quoted 20 lines · Stephen Warren
Quoted 5 lines · Semen Protsenko

From: Sam Protsenko <[email protected]>

The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0.

Do they /require/ the value to be 0, or simply currently have it set to 0 because whoever set the value in U-Boot wasn't aware that a value of 0 could cause issues with some hosts?

I'd be tempted to keep the same range as the Linux kernel and bump all boards up to a minimum value of 2. Presumably there's some good reason the kernel chose a minimum of 2, and in practice I expect increasing all boards to 2 isn't going to make any negative difference.

Quoted 1 line
drivers/usb/gadget/Kconfig +0 -0
Quoted 16 lines

drivers/usb/gadget/Kconfig menuconfig USB_GADGET · line 51

Quoted 13 lines
drivers/usb/gadget/Kconfig +13 -0
+config USB_GADGET_VBUS_DRAW
+       int "Maximum VBUS Power usage (2-500 mA)"
+       range 0 500
+       default 2
+       help
+          Some devices need to draw power from USB when they are
+          configured, perhaps to operate circuitry or to recharge
+          batteries.  This is in addition to any local power supply,
+          such as an AC adapter or batteries.
+
+          Enter the maximum power your device draws through USB, in
+          milliAmperes.  The permitted range of values is 2 - 500 mA;
+          0 mA would be legal, but can make some hosts misbehave.

In particular, I'm thinking of that last sentence.

I've sent v2 of this patch. Please review.

#6 lore raw

PATCH 2/8 usb: gadget: Add CONFIG_USB_GADGET_DUALSPEED to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

It's hard to migrate all configs to this option in one patch, as this option should be selected by UDC controller options, and some of them are not added to Kconfig yet. So let's first add this option to Kconfig and then select it for all controllers one by one.

---
 drivers/usb/gadget/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
drivers/usb/gadget/Kconfig +4 -0
index 17ca316..fd7ec22 100644
@@ -53,4 +53,8 @@ config USB_GADGET_VBUS_DRAW
 	   This value will be used except for system-specific gadget
 	   drivers that have more specific information.
 
+# Selected by UDC drivers that support high-speed operation.
+config USB_GADGET_DUALSPEED
+	bool
+
 endif # USB_GADGET
Signature · 1 line
2.8.0.rc3
#7 lore raw

PATCH 2/8 usb: gadget: Add CONFIG_USB_GADGET_DUALSPEED to Kconfig

Quoted 6 lines · Semen Protsenko

From: Sam Protsenko <[email protected]>

It's hard to migrate all configs to this option in one patch, as this option should be selected by UDC controller options, and some of them are not added to Kconfig yet. So let's first add this option to Kconfig and then select it for all controllers one by one.

Isn't that going to cause build failures if someone compiles a part part way through this series? I imagine that moving the variable into Kconfig, but still #defining it in a header file, will cause conflicts. That will be annoying to people using "git bisect".

#8 lore raw

PATCH 3/8 usb: dwc3: Move CONFIG_USB_DWC3 to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

Also remove CONFIG_USB_GADGET_DUALSPEED from headers that use DWC3 controller, as this option is selected by CONFIG_USB_DWC3.

---
 configs/am437x_gp_evm_defconfig           | 1 +
 configs/am437x_sk_evm_defconfig           | 1 +
 configs/am43xx_evm_defconfig              | 1 +
 configs/am43xx_evm_ethboot_defconfig      | 1 +
 configs/am43xx_evm_qspiboot_defconfig     | 1 +
 configs/am43xx_evm_usbhost_boot_defconfig | 1 +
 configs/dra72_evm_defconfig               | 1 +
 configs/dra74_evm_defconfig               | 1 +
 configs/dra7xx_evm_defconfig              | 1 +
 configs/dra7xx_evm_qspiboot_defconfig     | 1 +
 configs/dra7xx_evm_uart3_defconfig        | 1 +
 configs/odroid-xu3_defconfig              | 1 +
 configs/omap5_uevm_defconfig              | 1 +
 configs/xilinx_zynqmp_ep_defconfig        | 1 +
 drivers/usb/Kconfig                       | 2 ++
 drivers/usb/dwc3/Kconfig                  | 7 +++++++
 include/configs/am43xx_evm.h              | 5 +++--
 include/configs/dra7xx_evm.h              | 2 --
 include/configs/odroid_xu3.h              | 4 ----
 include/configs/omap5_uevm.h              | 2 --
 include/configs/xilinx_zynqmp.h           | 2 --
 21 files changed, 26 insertions(+), 12 deletions(-)
 create mode 100644 drivers/usb/dwc3/Kconfig
configs/am437x_gp_evm_defconfig +1 -0
index 356f6fd..e628bd4 100644
@@ -21,4 +21,5 @@ CONFIG_TI_QSPI=y
 CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
configs/am437x_sk_evm_defconfig +1 -0
index 2e2827f..d556a7f 100644
@@ -25,4 +25,5 @@ CONFIG_TI_QSPI=y
 CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
configs/am43xx_evm_defconfig +1 -0
index cc83006..9b746bf 100644
@@ -12,5 +12,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +1 -0
index a720c14..30a344c 100644
@@ -11,5 +11,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 6db389b..75c75dc 100644
@@ -10,5 +10,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index cbaf5a5..9c2234f 100644
@@ -11,5 +11,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/dra72_evm_defconfig +1 -0
index da24992..47fb0d7 100644
@@ -24,4 +24,5 @@ CONFIG_TI_QSPI=y
 CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
configs/dra74_evm_defconfig +1 -0
index 9039b15..a15b65b 100644
@@ -23,4 +23,5 @@ CONFIG_TI_QSPI=y
 CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
configs/dra7xx_evm_defconfig +1 -0
index 9be4c2d..2d504a5 100644
@@ -14,5 +14,6 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
index b77c7c3..6af9619 100644
@@ -14,5 +14,6 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_uart3_defconfig +1 -0
index 1a1fb6d..80ae9dd 100644
@@ -15,5 +15,6 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/odroid-xu3_defconfig +1 -0
index a5f25cd..4548cf0 100644
@@ -19,6 +19,7 @@ CONFIG_PMIC_S2MPS11=y
 CONFIG_DM_REGULATOR=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_ERRNO_STR=y
configs/omap5_uevm_defconfig +1 -0
index 50d8372..3fc75df 100644
@@ -8,5 +8,6 @@ CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 CONFIG_OF_LIBFDT=y
configs/xilinx_zynqmp_ep_defconfig +1 -0
index 91ae10a..da7d259 100644
@@ -30,5 +30,6 @@ CONFIG_ZYNQ_SDHCI=y
 CONFIG_NAND_ARASAN=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_USB=y
+CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
 # CONFIG_REGEX is not set
drivers/usb/Kconfig +2 -0
index bccf43e..da3ec2f 100644
@@ -49,6 +49,8 @@ config DM_USB
 
 source "drivers/usb/host/Kconfig"
 
+source "drivers/usb/dwc3/Kconfig"
+
 source "drivers/usb/musb-new/Kconfig"
 
 source "drivers/usb/emul/Kconfig"
drivers/usb/dwc3/Kconfig new file +7 -0
new file mode 100644
index 0000000..debc74b
@@ -0,0 +1,7 @@
+config USB_DWC3
+	bool "DesignWare USB3 DRD Core Support"
+	depends on (USB && USB_GADGET)
+	select USB_GADGET_DUALSPEED
+	help
+	  Say Y here if your system has a Dual Role SuperSpeed
+	  USB controller based on the DesignWare USB3 IP Core.
include/configs/am43xx_evm.h +3 -2
index 0dd9c7a7..8bea4c2 100644
@@ -123,21 +123,22 @@
 
 /* USB GADGET */
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
+#undef CONFIG_USB_DWC3
+
 #undef CONFIG_USB_GADGET_VBUS_DRAW
+#undef CONFIG_USB_GADGET_DUALSPEED
 #endif
 
 #if !defined(CONFIG_SPL_BUILD) || \
 	(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
-#define CONFIG_USB_GADGET_DUALSPEED
 #endif
 
 /*
include/configs/dra7xx_evm.h +0 -2
index e9facae..a230896 100644
@@ -229,14 +229,12 @@
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM 0xd022
-#define CONFIG_USB_GADGET_DUALSPEED
 
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
include/configs/odroid_xu3.h +0 -4
index e4986b0..e704bb4 100644
@@ -48,13 +48,9 @@
 #define CONFIG_USB_EHCI_EXYNOS
 
 /* DWC3 */
-#define CONFIG_USB_DWC3
 #define CONFIG_USB_DWC3_GADGET
 #define CONFIG_USB_DWC3_PHY_SAMSUNG
 
-/* USB gadget */
-#define CONFIG_USB_GADGET_DUALSPEED
-
 /* Downloader */
 #define CONFIG_G_DNL_VENDOR_NUM		0x04E8
 #define CONFIG_G_DNL_PRODUCT_NUM	0x6601
include/configs/omap5_uevm.h +0 -2
index 09beb74..85e46b4 100644
@@ -102,14 +102,12 @@
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
 #define CONFIG_USB_DWC3_OMAP
-#define CONFIG_USB_DWC3
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
-#define CONFIG_USB_GADGET_DUALSPEED
 
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
include/configs/xilinx_zynqmp.h +0 -2
index 3a96483..e0bde12 100644
@@ -125,11 +125,9 @@
 #define CONFIG_USB_STORAGE
 #define CONFIG_USB_XHCI_ZYNQMP
 
-#define CONFIG_USB_DWC3
 #define CONFIG_USB_DWC3_GADGET
 
 #define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	0x1800000
 #define DFU_DEFAULT_POLL_TIMEOUT	300
Signature · 1 line
2.8.0.rc3
#9 lore raw

PATCH 4/8 usb: gadget: Move CONFIG_USB_GADGET_DOWNLOAD to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

While at it, remove obsolete CONFIG_USBDOWNLOAD_GADGET option from some config headers. This is also probably fixes am335x_baltos board.

---
 configs/A13-OLinuXino_defconfig           |  1 +
 configs/CHIP_defconfig                    |  1 +
 configs/Cubietruck_defconfig              |  1 +
 configs/am335x_baltos_defconfig           |  1 +
 configs/am335x_boneblack_defconfig        |  1 +
 configs/am335x_boneblack_vboot_defconfig  |  1 +
 configs/am335x_evm_defconfig              |  1 +
 configs/am335x_evm_nor_defconfig          |  1 +
 configs/am335x_evm_norboot_defconfig      |  1 +
 configs/am335x_evm_spiboot_defconfig      |  1 +
 configs/am335x_evm_usbspl_defconfig       |  1 +
 configs/am335x_gp_evm_defconfig           |  1 +
 configs/am437x_gp_evm_defconfig           |  1 +
 configs/am437x_sk_evm_defconfig           |  1 +
 configs/am43xx_evm_defconfig              |  1 +
 configs/am43xx_evm_ethboot_defconfig      |  1 +
 configs/am43xx_evm_qspiboot_defconfig     |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig |  1 +
 configs/apalis_t30_defconfig              |  1 +
 configs/bcm11130_defconfig                |  1 +
 configs/bcm11130_nand_defconfig           |  1 +
 configs/bcm28155_ap_defconfig             |  1 +
 configs/bcm28155_w1d_defconfig            |  1 +
 configs/beaver_defconfig                  |  1 +
 configs/birdland_bav335a_defconfig        |  1 +
 configs/birdland_bav335b_defconfig        |  1 +
 configs/cgtqmx6eval_defconfig             |  1 +
 configs/colibri_t20_defconfig             |  1 +
 configs/colibri_t30_defconfig             |  1 +
 configs/colibri_vf_defconfig              |  1 +
 configs/corvus_defconfig                  |  1 +
 configs/dalmore_defconfig                 |  1 +
 configs/dra72_evm_defconfig               |  1 +
 configs/dra74_evm_defconfig               |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_evm_qspiboot_defconfig     |  1 +
 configs/dra7xx_evm_uart3_defconfig        |  1 +
 configs/draco_defconfig                   |  1 +
 configs/e2220-1170_defconfig              |  1 +
 configs/gwventana_defconfig               |  1 +
 configs/jetson-tk1_defconfig              |  1 +
 configs/kc1_defconfig                     |  1 +
 configs/mx6dlsabreauto_defconfig          |  1 +
 configs/mx6dlsabresd_defconfig            |  1 +
 configs/mx6qpsabreauto_defconfig          |  1 +
 configs/mx6qsabreauto_defconfig           |  1 +
 configs/mx6qsabrelite_defconfig           |  1 +
 configs/mx6qsabresd_defconfig             |  1 +
 configs/mx6sabresd_spl_defconfig          |  1 +
 configs/mx7dsabresd_defconfig             |  1 +
 configs/nitrogen6dl2g_defconfig           |  1 +
 configs/nitrogen6dl_defconfig             |  1 +
 configs/nitrogen6q2g_defconfig            |  1 +
 configs/nitrogen6q_defconfig              |  1 +
 configs/nitrogen6s1g_defconfig            |  1 +
 configs/nitrogen6s_defconfig              |  1 +
 configs/nyan-big_defconfig                |  1 +
 configs/odroid-xu3_defconfig              |  1 +
 configs/odroid_defconfig                  |  1 +
 configs/omap3_beagle_defconfig            |  1 +
 configs/omap3_logic_defconfig             |  1 +
 configs/omap5_uevm_defconfig              |  1 +
 configs/origen_defconfig                  |  1 +
 configs/p2371-0000_defconfig              |  1 +
 configs/p2371-2180_defconfig              |  1 +
 configs/p2571_defconfig                   |  1 +
 configs/pxm2_defconfig                    |  1 +
 configs/rastaban_defconfig                |  1 +
 configs/rut_defconfig                     |  1 +
 configs/s5p_goni_defconfig                |  1 +
 configs/s5pc210_universal_defconfig       |  1 +
 configs/smartweb_defconfig                |  1 +
 configs/sniper_defconfig                  |  1 +
 configs/socfpga_arria5_defconfig          |  1 +
 configs/socfpga_cyclone5_defconfig        |  1 +
 configs/socfpga_de0_nano_soc_defconfig    |  1 +
 configs/socfpga_mcvevk_defconfig          |  1 +
 configs/socfpga_sockit_defconfig          |  1 +
 configs/socfpga_socrates_defconfig        |  1 +
 configs/taurus_defconfig                  |  1 +
 configs/tbs2910_defconfig                 |  1 +
 configs/thuban_defconfig                  |  1 +
 configs/trats2_defconfig                  |  1 +
 configs/trats_defconfig                   |  1 +
 configs/venice2_defconfig                 |  1 +
 configs/warp_defconfig                    |  1 +
 configs/xilinx_zynqmp_ep_defconfig        |  1 +
 configs/zynq_picozed_defconfig            |  1 +
 configs/zynq_zc702_defconfig              |  1 +
 configs/zynq_zc706_defconfig              |  1 +
 configs/zynq_zed_defconfig                |  1 +
 configs/zynq_zybo_defconfig               |  1 +
 drivers/usb/gadget/Kconfig                |  6 ++++++
 include/configs/am335x_evm.h              |  1 -
 include/configs/am43xx_evm.h              |  2 +-
 include/configs/baltos.h                  |  1 -
 include/configs/bav335x.h                 |  1 -
 include/configs/bcm28155_ap.h             |  1 -
 include/configs/cgtqmx6eval.h             |  1 -
 include/configs/colibri_vf.h              |  1 -
 include/configs/corvus.h                  |  1 -
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/exynos4-common.h          |  3 ---
 include/configs/gw_ventana.h              |  1 -
 include/configs/kc1.h                     |  2 --
 include/configs/mx6sabre_common.h         |  1 -
 include/configs/mx7dsabresd.h             |  1 -
 include/configs/nitrogen6x.h              |  1 -
 include/configs/odroid_xu3.h              |  1 -
 include/configs/omap3_beagle.h            |  1 -
 include/configs/omap3_logic.h             |  1 -
 include/configs/omap5_uevm.h              |  1 -
 include/configs/s5p_goni.h                |  1 -
 include/configs/siemens-am33x-common.h    |  2 --
 include/configs/smartweb.h                |  1 -
 include/configs/sniper.h                  |  2 --
 include/configs/socfpga_common.h          |  2 --
 include/configs/sunxi-common.h            | 11 +++--------
 include/configs/taurus.h                  |  1 -
 include/configs/tbs2910.h                 |  1 -
 include/configs/tegra-common-usb-gadget.h |  1 -
 include/configs/warp.h                    |  1 -
 include/configs/xilinx_zynqmp.h           |  2 --
 include/configs/zynq-common.h             |  1 -
 124 files changed, 102 insertions(+), 45 deletions(-)
configs/A13-OLinuXino_defconfig +1 -0
index f022ba3..6c6a434 100644
@@ -24,3 +24,4 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/CHIP_defconfig +1 -0
index 6c9a25f..1a4460c 100644
@@ -15,3 +15,4 @@ CONFIG_AXP_ALDO4_VOLT=3300
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/Cubietruck_defconfig +1 -0
index 7400d8d..2a01573 100644
@@ -21,3 +21,4 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/am335x_baltos_defconfig +1 -0
index bda8727..8e4bba1 100644
@@ -14,4 +14,5 @@ CONFIG_CMD_GPIO=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_boneblack_defconfig +1 -0
index 8b6fa20..9b9dbe7 100644
@@ -19,4 +19,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_boneblack_vboot_defconfig +1 -0
index 70fc5d7..2617743 100644
@@ -26,3 +26,4 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/am335x_evm_defconfig +1 -0
index 8eaa123..760ee03 100644
@@ -18,4 +18,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_nor_defconfig +1 -0
index 85a0ba9..15bd849 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_norboot_defconfig +1 -0
index f3a26c3..842257c 100644
@@ -11,4 +11,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_spiboot_defconfig +1 -0
index 92eb46c..d8db92a 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_usbspl_defconfig +1 -0
index 453714b..a9389f9 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am335x_gp_evm_defconfig +1 -0
index 0c7eda7..bed8f5e 100644
@@ -20,4 +20,5 @@ CONFIG_TIMER=y
 CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_RSA=y
configs/am437x_gp_evm_defconfig +1 -0
index e628bd4..b02f8ad 100644
@@ -23,3 +23,4 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/am437x_sk_evm_defconfig +1 -0
index d556a7f..1960429 100644
@@ -27,3 +27,4 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/am43xx_evm_defconfig +1 -0
index 9b746bf..942a6a0 100644
@@ -14,4 +14,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +1 -0
index 30a344c..114d10f 100644
@@ -13,4 +13,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 75c75dc..52265c3 100644
@@ -12,4 +12,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index 9c2234f..9166848 100644
@@ -13,4 +13,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/apalis_t30_defconfig +1 -0
index 152d06f..fb501d8 100644
@@ -18,4 +18,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/bcm11130_defconfig +1 -0
index d6e13c0..5e1516a 100644
@@ -11,3 +11,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/bcm11130_nand_defconfig +1 -0
index 8cb654b..ab3edf5 100644
@@ -11,3 +11,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/bcm28155_ap_defconfig +1 -0
index eb6a609..38909ab 100644
@@ -10,3 +10,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/bcm28155_w1d_defconfig +1 -0
index 21d83d4..eeb7545 100644
@@ -11,3 +11,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/beaver_defconfig +1 -0
index 9e01f31..56ed56e 100644
@@ -22,4 +22,5 @@ CONFIG_TEGRA20_SLINK=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/birdland_bav335a_defconfig +1 -0
index 2a81ded..fd5c78c 100644
@@ -13,4 +13,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/birdland_bav335b_defconfig +1 -0
index d2b35cd..19b374b 100644
@@ -13,4 +13,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/cgtqmx6eval_defconfig +1 -0
index 20b1492..90415c8 100644
@@ -10,4 +10,5 @@ CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/colibri_t20_defconfig +1 -0
index 3813e96..1ba3bb8 100644
@@ -19,6 +19,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
 CONFIG_VIDEO_TEGRA20=y
 CONFIG_USB_ULPI=y
configs/colibri_t30_defconfig +1 -0
index 6fd877b..28f2008 100644
@@ -16,4 +16,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/colibri_vf_defconfig +1 -0
index 267a453..c2ce968 100644
@@ -19,3 +19,4 @@ CONFIG_FSL_LPUART=y
 CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/corvus_defconfig +1 -0
index 3a9e4d7..7e9577d 100644
@@ -12,4 +12,5 @@ CONFIG_SYS_PROMPT="U-Boot> "
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dalmore_defconfig +1 -0
index 5e696a1..bb6199a 100644
@@ -20,4 +20,5 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/dra72_evm_defconfig +1 -0
index 47fb0d7..b2276a9 100644
@@ -26,3 +26,4 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra74_evm_defconfig +1 -0
index a15b65b..7aa8233 100644
@@ -25,3 +25,4 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra7xx_evm_defconfig +1 -0
index 2d504a5..160ce93 100644
@@ -16,4 +16,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
index 6af9619..4b4fd27 100644
@@ -16,4 +16,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_uart3_defconfig +1 -0
index 80ae9dd..c86cedc 100644
@@ -17,4 +17,5 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/draco_defconfig +1 -0
index ec33985..8b4daa7 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/e2220-1170_defconfig +1 -0
index 196950d..5a2ccd1 100644
@@ -18,3 +18,4 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/gwventana_defconfig +1 -0
index 788ba9d..3a4edd1 100644
@@ -18,4 +18,5 @@ CONFIG_NETDEVICES=y
 CONFIG_E1000=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/jetson-tk1_defconfig +1 -0
index 5e87624..c6f9945 100644
@@ -22,4 +22,5 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/kc1_defconfig +1 -0
index 73c89b5..7c3f33e 100644
@@ -14,4 +14,5 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6dlsabreauto_defconfig +1 -0
index ba53017..cb55378 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6dlsabresd_defconfig +1 -0
index 7a67bf5..8080190 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6qpsabreauto_defconfig +1 -0
index c27aa38..faa879d 100644
@@ -7,4 +7,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6qsabreauto_defconfig +1 -0
index 7699cbb..03290af 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6qsabrelite_defconfig +1 -0
index 324f46f..c91decf 100644
@@ -11,4 +11,5 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6qsabresd_defconfig +1 -0
index 6c9e27e..e31130e 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx6sabresd_spl_defconfig +1 -0
index 131bd21..636e9de 100644
@@ -10,4 +10,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/mx7dsabresd_defconfig +1 -0
index 08d19f9..780ac83 100644
@@ -14,4 +14,5 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_PING=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6dl2g_defconfig +1 -0
index 54f11e9..6ebb625 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6dl_defconfig +1 -0
index f2ea841..d9607fb 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6q2g_defconfig +1 -0
index cf654d7..caa85b2 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6q_defconfig +1 -0
index de8bb22..e8b9f07 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6s1g_defconfig +1 -0
index 6030afc..3abc971 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nitrogen6s_defconfig +1 -0
index fef827e..4a5c52d 100644
@@ -9,4 +9,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/nyan-big_defconfig +1 -0
index de7e9eb..a7038ee 100644
@@ -35,6 +35,7 @@ CONFIG_TPM_TIS_INFINEON=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_TEGRA124=y
configs/odroid-xu3_defconfig +1 -0
index 4548cf0..da92b2d 100644
@@ -21,5 +21,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_ERRNO_STR=y
configs/odroid_defconfig +1 -0
index 1634ed6..177ffb0 100644
@@ -24,4 +24,5 @@ CONFIG_DM_REGULATOR_MAX77686=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_ERRNO_STR=y
configs/omap3_beagle_defconfig +1 -0
index 1aa89df..45d4c51 100644
@@ -10,4 +10,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/omap3_logic_defconfig +1 -0
index 332d2de..86bf634 100644
@@ -14,4 +14,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/omap5_uevm_defconfig +1 -0
index 3fc75df..024de72 100644
@@ -10,4 +10,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/origen_defconfig +1 -0
index eda2225..b136e47 100644
@@ -14,3 +14,4 @@ CONFIG_OF_CONTROL=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/p2371-0000_defconfig +1 -0
index b6f2954..b1303b0 100644
@@ -19,3 +19,4 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/p2371-2180_defconfig +1 -0
index f7cc8e0..70da914 100644
@@ -21,3 +21,4 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/p2571_defconfig +1 -0
index 4d0986f..df04102 100644
@@ -19,3 +19,4 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/pxm2_defconfig +1 -0
index 88d75b5..250c7d6 100644
@@ -15,4 +15,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/rastaban_defconfig +1 -0
index 8c3c735..90b2962 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/rut_defconfig +1 -0
index 2fb5c4c..63f6640 100644
@@ -15,4 +15,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/s5p_goni_defconfig +1 -0
index eb0604e..282e647 100644
@@ -13,3 +13,4 @@ CONFIG_SYS_PROMPT="Goni # "
 # CONFIG_CMD_MISC is not set
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/s5pc210_universal_defconfig +1 -0
index 7f27b4c..0e0fb34 100644
@@ -13,3 +13,4 @@ CONFIG_OF_CONTROL=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/smartweb_defconfig +1 -0
index 84ba329..6d25479 100644
@@ -10,4 +10,5 @@ CONFIG_AUTOBOOT_PROMPT="Autobooting in %d seconds, press \"<Esc><Esc>\" to stop\
 CONFIG_AUTOBOOT_STOP_STR="\x1b\x1b"
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/sniper_defconfig +1 -0
index 7756b7f..65bb724 100644
@@ -14,4 +14,5 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/socfpga_arria5_defconfig +1 -0
index d93600b..c452d48 100644
@@ -27,3 +27,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/socfpga_cyclone5_defconfig +1 -0
index f77e124..e80efdb 100644
@@ -27,3 +27,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/socfpga_de0_nano_soc_defconfig +1 -0
index 9c341b6..942a3d3 100644
@@ -22,3 +22,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/socfpga_mcvevk_defconfig +1 -0
index 48c7012..bfd13c7 100644
@@ -22,3 +22,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/socfpga_sockit_defconfig +1 -0
index 6a13504..58e8bd2 100644
@@ -27,3 +27,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/socfpga_socrates_defconfig +1 -0
index 0860707..27ebace 100644
@@ -26,3 +26,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/taurus_defconfig +1 -0
index 8a6b337..8cdbb89 100644
@@ -15,5 +15,6 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_OF_LIBFDT=y
configs/tbs2910_defconfig +1 -0
index 3f21e54..666d059 100644
@@ -11,4 +11,5 @@ CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/thuban_defconfig +1 -0
index 39c8595..87eee13 100644
@@ -14,4 +14,5 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/trats2_defconfig +1 -0
index 24656ef..886940b 100644
@@ -16,3 +16,4 @@ CONFIG_OF_CONTROL=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/trats_defconfig +1 -0
index e48fae8..c9bee1c 100644
@@ -15,3 +15,4 @@ CONFIG_OF_CONTROL=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
configs/venice2_defconfig +1 -0
index a7515ab..61d0b27 100644
@@ -20,4 +20,5 @@ CONFIG_TEGRA114_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/warp_defconfig +1 -0
index e37158c..a444094 100644
@@ -10,4 +10,5 @@ CONFIG_CMD_GPIO=y
 # CONFIG_CMD_NFS is not set
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/xilinx_zynqmp_ep_defconfig +1 -0
index da7d259..8f8776d 100644
@@ -32,4 +32,5 @@ CONFIG_ZYNQ_GEM=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_REGEX is not set
configs/zynq_picozed_defconfig +1 -0
index c730f3c..a0e8edb 100644
@@ -14,5 +14,6 @@ CONFIG_ZYNQ_SDHCI=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
configs/zynq_zc702_defconfig +1 -0
index e8d28e4..2747896 100644
@@ -26,5 +26,6 @@ CONFIG_DEBUG_UART_CLOCK=50000000
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
configs/zynq_zc706_defconfig +1 -0
index d19108f..6be5611 100644
@@ -23,5 +23,6 @@ CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
configs/zynq_zed_defconfig +1 -0
index b13de10..ddda909 100644
@@ -23,5 +23,6 @@ CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
configs/zynq_zybo_defconfig +1 -0
index d2f8110..3c9be4c 100644
@@ -25,5 +25,6 @@ CONFIG_DEBUG_UART_CLOCK=50000000
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
drivers/usb/gadget/Kconfig +6 -0
index fd7ec22..1793d18 100644
@@ -57,4 +57,10 @@ config USB_GADGET_VBUS_DRAW
 config USB_GADGET_DUALSPEED
 	bool
 
+config USB_GADGET_DOWNLOAD
+	bool "Enable USB download gadget"
+	help
+	  Composite USB download gadget support (g_dnl) for download functions.
+	  This code works on top of composite gadget.
+
 endif # USB_GADGET
include/configs/am335x_evm.h +0 -1
index 8d68d60..8d59a18 100644
@@ -288,7 +288,6 @@
 #define CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_MUSB_PIO_ONLY
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
include/configs/am43xx_evm.h +1 -1
index 8bea4c2..3643489 100644
@@ -125,6 +125,7 @@
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
 #undef CONFIG_USB_DWC3
 
+#undef CONFIG_USB_GADGET_DOWNLOAD
 #undef CONFIG_USB_GADGET_VBUS_DRAW
 #undef CONFIG_USB_GADGET_DUALSPEED
 #endif
@@ -135,7 +136,6 @@
 #define CONFIG_USB_DWC3_OMAP
 #define CONFIG_USB_DWC3_GADGET
 
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
include/configs/baltos.h +0 -1
index 529cf1c..24f96c1 100644
@@ -274,7 +274,6 @@
 #define CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_MUSB_PIO_ONLY
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
-#define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
include/configs/bav335x.h +0 -1
index 82bf92a..a169ef0 100644
@@ -439,7 +439,6 @@ DEFAULT_LINUX_BOOT_ENV \
 #define CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_MUSB_PIO_ONLY
 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_MUSB_HOST
 #define CONFIG_AM335X_USB0
include/configs/bcm28155_ap.h +0 -1
index 387895b..7a7f2a0 100644
@@ -141,7 +141,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_BCM_UDC_OTG_PHY
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USBID_ADDR		0x34052c46
 #define CONFIG_G_DNL_VENDOR_NUM		0x18d1	/* google */
 #define CONFIG_G_DNL_PRODUCT_NUM	0x0d02	/* nexus one */
include/configs/cgtqmx6eval.h +0 -1
index 3f3b69d..1cde551 100644
@@ -92,7 +92,6 @@
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/colibri_vf.h +0 -1
index 63dbe12..cb86944 100644
@@ -245,7 +245,6 @@
 #define CONFIG_G_DNL_PRODUCT_NUM         CONFIG_TRDX_PID_COLIBRI_VF50
 
 /* USB DFU */
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
include/configs/corvus.h +0 -1
index b8c441e..739f3c1 100644
@@ -124,7 +124,6 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/dra7xx_evm.h +0 -1
index a230896..70c25bf 100644
@@ -231,7 +231,6 @@
 #define CONFIG_USB_DWC3_OMAP
 #define CONFIG_USB_DWC3_GADGET
 
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM 0xd022
include/configs/exynos4-common.h +0 -3
index c8e5397..f6e7b7e 100644
@@ -27,9 +27,6 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_CMD_GPT
 
-/* USB Composite download gadget - g_dnl */
-#define CONFIG_USB_GADGET_DOWNLOAD
-
 /* TIZEN THOR downloader support */
 #define CONFIG_CMD_THOR_DOWNLOAD
 #define CONFIG_USB_FUNCTION_THOR
include/configs/gw_ventana.h +0 -1
index 62f3468..613d888 100644
@@ -195,7 +195,6 @@
 /* USB Mass Storage Gadget */
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 /* Netchip IDs */
 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
include/configs/kc1.h +0 -2
index d8aa182..0b5a8eb 100644
@@ -190,8 +190,6 @@
  * Download
  */
 
-#define CONFIG_USB_GADGET_DOWNLOAD
-
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
 #define CONFIG_G_DNL_MANUFACTURER	"Texas Instruments"
include/configs/mx6sabre_common.h +0 -1
index 299f11b..c7b89cd 100644
@@ -240,7 +240,6 @@
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/mx7dsabresd.h +0 -1
index 506ac32..c34f9c7 100644
@@ -255,7 +255,6 @@
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/nitrogen6x.h +0 -1
index a50829e..0b71f95 100644
@@ -332,7 +332,6 @@
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 /* Netchip IDs */
 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
include/configs/odroid_xu3.h +0 -1
index e704bb4..7e91f61 100644
@@ -55,7 +55,6 @@
 #define CONFIG_G_DNL_VENDOR_NUM		0x04E8
 #define CONFIG_G_DNL_PRODUCT_NUM	0x6601
 #define CONFIG_G_DNL_MANUFACTURER	"Samsung"
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 /* DFU */
 #define CONFIG_USB_FUNCTION_DFU
include/configs/omap3_beagle.h +0 -1
index 17d8a86..69cdb7f 100644
@@ -66,7 +66,6 @@
 #define CONFIG_TWL4030_USB		1
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
 #define CONFIG_G_DNL_MANUFACTURER	"TI"
include/configs/omap3_logic.h +0 -1
index 7e802e9..fb33f50 100644
@@ -85,7 +85,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
 #define CONFIG_G_DNL_MANUFACTURER	"TI"
include/configs/omap5_uevm.h +0 -1
index 85e46b4..8a98934 100644
@@ -104,7 +104,6 @@
 #define CONFIG_USB_DWC3_OMAP
 #define CONFIG_USB_DWC3_GADGET
 
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
include/configs/s5p_goni.h +0 -1
index 919c60e..338c989 100644
@@ -70,7 +70,6 @@
 #define CONFIG_CMD_GPT
 
 /* USB Composite download gadget - g_dnl */
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_MMC
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
include/configs/siemens-am33x-common.h +0 -2
index df4e734..b3145c2 100644
@@ -242,8 +242,6 @@
 #define CONFIG_USBNET_HOST_ADDR	"de:ad:be:af:00:00"
 #endif /* CONFIG_USB_MUSB_GADGET */
 
-#define CONFIG_USB_GADGET_DOWNLOAD
-
 /* USB DRACO ID as default */
 #define CONFIG_USBD_HS
 #define CONFIG_G_DNL_VENDOR_NUM 0x0908
include/configs/smartweb.h +0 -1
index 0586aec..bafa8e3 100644
@@ -175,7 +175,6 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	SZ_1M
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/sniper.h +0 -2
index 12090a3..eb8831d 100644
@@ -207,8 +207,6 @@
  * Download
  */
 
-#define CONFIG_USB_GADGET_DOWNLOAD
-
 #define CONFIG_G_DNL_VENDOR_NUM		0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM	0xd022
 #define CONFIG_G_DNL_MANUFACTURER	"Texas Instruments"
include/configs/socfpga_common.h +0 -2
index a42e6d7..6239dac 100644
@@ -255,8 +255,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_DUALSPEED
 
-/* USB Composite download gadget - g_dnl */
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
 #define CONFIG_USB_FUNCTION_DFU
include/configs/sunxi-common.h +3 -8
index b5d05cd..b043127 100644
@@ -343,17 +343,12 @@ extern int soft_i2c_gpio_scl;
 
 #ifdef CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_GADGET_DUALSPEED
-
-#define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USB_FUNCTION_DFU
-#define CONFIG_USB_FUNCTION_FASTBOOT
-#define CONFIG_USB_FUNCTION_MASS_STORAGE
-#endif
-
-#ifdef CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x1f3a
 #define CONFIG_G_DNL_PRODUCT_NUM	0x1010
 #define CONFIG_G_DNL_MANUFACTURER	"Allwinner Technology"
+#define CONFIG_USB_FUNCTION_DFU
+#define CONFIG_USB_FUNCTION_FASTBOOT
+#define CONFIG_USB_FUNCTION_MASS_STORAGE
 #endif
 
 #ifdef CONFIG_USB_FUNCTION_DFU
include/configs/taurus.h +0 -1
index 0b04b3a..422b7a1 100644
@@ -139,7 +139,6 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_NAND
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
include/configs/tbs2910.h +0 -1
index 715994c..619b7ac 100644
@@ -132,7 +132,6 @@
 #define CONFIG_USBD_HS
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
 #define CONFIG_G_DNL_MANUFACTURER	"TBS"
include/configs/tegra-common-usb-gadget.h +0 -1
index ec034a1..743d97c 100644
@@ -22,7 +22,6 @@
 #ifndef CONFIG_G_DNL_MANUFACTURER
 #define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
 #endif
-#define CONFIG_USB_GADGET_DOWNLOAD
 /* USB mass storage protocol */
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_CMD_USB_MASS_STORAGE
include/configs/warp.h +0 -1
index 80c4e38..5db783d 100644
@@ -80,7 +80,6 @@
 
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-#define CONFIG_USB_GADGET_DOWNLOAD
 
 #define CONFIG_G_DNL_VENDOR_NUM		0x0525
 #define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
include/configs/xilinx_zynqmp.h +0 -2
index e0bde12..b4f41cc 100644
@@ -127,8 +127,6 @@
 
 #define CONFIG_USB_DWC3_GADGET
 
-#define CONFIG_USB_GADGET_DOWNLOAD
-#define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	0x1800000
 #define DFU_DEFAULT_POLL_TIMEOUT	300
 #define CONFIG_USB_FUNCTION_DFU
include/configs/zynq-common.h +0 -1
index 941372d..58034e6 100644
@@ -102,7 +102,6 @@
 
 # define CONFIG_CI_UDC           /* ChipIdea CI13xxx UDC */
 # define CONFIG_USB_GADGET_DUALSPEED
-# define CONFIG_USB_GADGET_DOWNLOAD
 # define CONFIG_SYS_DFU_DATA_BUF_SIZE	0x600000
 # define DFU_DEFAULT_POLL_TIMEOUT	300
 # define CONFIG_USB_FUNCTION_DFU
Signature · 1 line
2.8.0.rc3
#10 lore raw

PATCH 5/8 usb: dwc3: Move CONFIG_USB_DWC3_GADGET/HOST to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

Description was borrowed from kernel dwc3 Kconfig.

---
 configs/am437x_gp_evm_defconfig           |  1 +
 configs/am437x_sk_evm_defconfig           |  1 +
 configs/am43xx_evm_defconfig              |  1 +
 configs/am43xx_evm_ethboot_defconfig      |  1 +
 configs/am43xx_evm_qspiboot_defconfig     |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig |  1 +
 configs/dra72_evm_defconfig               |  1 +
 configs/dra74_evm_defconfig               |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_evm_qspiboot_defconfig     |  1 +
 configs/dra7xx_evm_uart3_defconfig        |  1 +
 configs/odroid-xu3_defconfig              |  1 +
 configs/omap5_uevm_defconfig              |  1 +
 configs/xilinx_zynqmp_ep_defconfig        |  1 +
 drivers/usb/dwc3/Kconfig                  | 23 +++++++++++++++++++++++
 include/configs/am43xx_evm.h              |  2 +-
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/odroid_xu3.h              |  1 -
 include/configs/omap5_uevm.h              |  1 -
 include/configs/xilinx_zynqmp.h           |  2 --
 20 files changed, 38 insertions(+), 6 deletions(-)
configs/am437x_gp_evm_defconfig +1 -0
index b02f8ad..8dc905e 100644
@@ -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
configs/am437x_sk_evm_defconfig +1 -0
index 1960429..33cc903 100644
@@ -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
configs/am43xx_evm_defconfig +1 -0
index 942a6a0..5406beb 100644
@@ -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
configs/am43xx_evm_ethboot_defconfig +1 -0
index 114d10f..fa01c75 100644
@@ -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
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 52265c3..76d2e72 100644
@@ -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
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index 9166848..c437b3a 100644
@@ -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
configs/dra72_evm_defconfig +1 -0
index b2276a9..9fdd842 100644
@@ -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
configs/dra74_evm_defconfig +1 -0
index 7aa8233..810db5b 100644
@@ -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
configs/dra7xx_evm_defconfig +1 -0
index 160ce93..88bf379 100644
@@ -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
configs/dra7xx_evm_qspiboot_defconfig +1 -0
index 4b4fd27..80961f7 100644
@@ -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
configs/dra7xx_evm_uart3_defconfig +1 -0
index c86cedc..f187083 100644
@@ -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
configs/odroid-xu3_defconfig +1 -0
index da92b2d..cb6035b 100644
@@ -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
configs/omap5_uevm_defconfig +1 -0
index 024de72..5ab2b9d 100644
@@ -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
configs/xilinx_zynqmp_ep_defconfig +1 -0
index 8f8776d..34cff0c 100644
@@ -31,6 +31,7 @@ CONFIG_NAND_ARASAN=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
drivers/usb/dwc3/Kconfig +23 -0
index debc74b..c0251b1 100644
@@ -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
include/configs/am43xx_evm.h +1 -1
index 3643489..5e0f65d 100644
@@ -124,6 +124,7 @@
 /* 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
@@ -134,7 +135,6 @@
 	(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
include/configs/dra7xx_evm.h +0 -1
index 70c25bf..3fb97e8 100644
@@ -229,7 +229,6 @@
 /* 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
include/configs/odroid_xu3.h +0 -1
index 7e91f61..57e20e7 100644
@@ -48,7 +48,6 @@
 #define CONFIG_USB_EHCI_EXYNOS
 
 /* DWC3 */
-#define CONFIG_USB_DWC3_GADGET
 #define CONFIG_USB_DWC3_PHY_SAMSUNG
 
 /* Downloader */
include/configs/omap5_uevm.h +0 -1
index 8a98934..6853260 100644
@@ -102,7 +102,6 @@
 /* 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
include/configs/xilinx_zynqmp.h +0 -2
index b4f41cc..d877eeb 100644
@@ -125,8 +125,6 @@
 #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
Signature · 1 line
2.8.0.rc3
#11 lore raw

PATCH 6/8 usb: dwc3: Move CONFIG_USB_DWC3_OMAP to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

---
 configs/am437x_gp_evm_defconfig           |  1 +
 configs/am437x_sk_evm_defconfig           |  1 +
 configs/am43xx_evm_defconfig              |  1 +
 configs/am43xx_evm_ethboot_defconfig      |  1 +
 configs/am43xx_evm_qspiboot_defconfig     |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig |  1 +
 configs/dra72_evm_defconfig               |  1 +
 configs/dra74_evm_defconfig               |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_evm_qspiboot_defconfig     |  1 +
 configs/dra7xx_evm_uart3_defconfig        |  1 +
 configs/omap5_uevm_defconfig              |  1 +
 drivers/usb/dwc3/Kconfig                  | 10 ++++++++++
 include/configs/am43xx_evm.h              |  2 +-
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/omap5_uevm.h              |  1 -
 16 files changed, 23 insertions(+), 3 deletions(-)
configs/am437x_gp_evm_defconfig +1 -0
index 8dc905e..ce16f93 100644
@@ -23,5 +23,6 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/am437x_sk_evm_defconfig +1 -0
index 33cc903..ee956a0 100644
@@ -27,5 +27,6 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/am43xx_evm_defconfig +1 -0
index 5406beb..0940351 100644
@@ -14,6 +14,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +1 -0
index fa01c75..dc25719 100644
@@ -13,6 +13,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 76d2e72..4cd48c3 100644
@@ -12,6 +12,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index c437b3a..6371d54 100644
@@ -13,6 +13,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra72_evm_defconfig +1 -0
index 9fdd842..040412d 100644
@@ -26,5 +26,6 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra74_evm_defconfig +1 -0
index 810db5b..28646b0 100644
@@ -25,5 +25,6 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra7xx_evm_defconfig +1 -0
index 88bf379..a460897 100644
@@ -16,6 +16,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
index 80961f7..56a5965 100644
@@ -16,6 +16,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_uart3_defconfig +1 -0
index f187083..1121289 100644
@@ -17,6 +17,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/omap5_uevm_defconfig +1 -0
index 5ab2b9d..9a5b91b 100644
@@ -10,6 +10,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
drivers/usb/dwc3/Kconfig +10 -0
index c0251b1..0bb862a 100644
@@ -27,4 +27,14 @@ config USB_DWC3_GADGET
 
 endchoice
 
+comment "Platform Glue Driver Support"
+
+config USB_DWC3_OMAP
+	bool "Texas Instruments OMAP5 and similar Platforms"
+	help
+	  Some platforms from Texas Instruments like OMAP5, DRA7xxx and
+	  AM437x use this IP for USB2/3 functionality.
+
+	  Say 'Y' here if you have one such device
+
 endif
include/configs/am43xx_evm.h +1 -1
index 5e0f65d..b330f1b 100644
@@ -123,6 +123,7 @@
 
 /* USB GADGET */
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
+#undef CONFIG_USB_DWC3_OMAP
 #undef CONFIG_USB_DWC3
 #undef CONFIG_USB_DWC3_GADGET
 
@@ -134,7 +135,6 @@
 #if !defined(CONFIG_SPL_BUILD) || \
 	(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
 #define CONFIG_USB_DWC3_PHY_OMAP
-#define CONFIG_USB_DWC3_OMAP
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
include/configs/dra7xx_evm.h +0 -1
index 3fb97e8..118bf91 100644
@@ -228,7 +228,6 @@
 
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
-#define CONFIG_USB_DWC3_OMAP
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
include/configs/omap5_uevm.h +0 -1
index 6853260..533ac7b 100644
@@ -101,7 +101,6 @@
 
 /* USB GADGET */
 #define CONFIG_USB_DWC3_PHY_OMAP
-#define CONFIG_USB_DWC3_OMAP
 
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
Signature · 1 line
2.8.0.rc3
#12 lore raw

PATCH 7/8 usb: dwc3: Move CONFIG_USB_DWC3_PHY_* to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

---
 configs/am437x_gp_evm_defconfig           |  1 +
 configs/am437x_sk_evm_defconfig           |  1 +
 configs/am43xx_evm_defconfig              |  1 +
 configs/am43xx_evm_ethboot_defconfig      |  1 +
 configs/am43xx_evm_qspiboot_defconfig     |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig |  1 +
 configs/dra72_evm_defconfig               |  1 +
 configs/dra74_evm_defconfig               |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_evm_qspiboot_defconfig     |  1 +
 configs/dra7xx_evm_uart3_defconfig        |  1 +
 configs/odroid-xu3_defconfig              |  1 +
 configs/omap5_uevm_defconfig              |  1 +
 drivers/usb/dwc3/Kconfig                  | 17 +++++++++++++++++
 include/configs/am43xx_evm.h              |  3 +--
 include/configs/dra7xx_evm.h              |  2 --
 include/configs/odroid_xu3.h              |  3 ---
 include/configs/omap5_uevm.h              |  2 --
 18 files changed, 31 insertions(+), 9 deletions(-)
configs/am437x_gp_evm_defconfig +1 -0
index ce16f93..c1b26e0 100644
@@ -24,5 +24,6 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/am437x_sk_evm_defconfig +1 -0
index ee956a0..80ff4da 100644
@@ -28,5 +28,6 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/am43xx_evm_defconfig +1 -0
index 0940351..97ea209 100644
@@ -15,6 +15,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +1 -0
index dc25719..5963437 100644
@@ -14,6 +14,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 4cd48c3..02ce1ef 100644
@@ -13,6 +13,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index 6371d54..9ac5c99 100644
@@ -14,6 +14,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra72_evm_defconfig +1 -0
index 040412d..1b8d2b9 100644
@@ -27,5 +27,6 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra74_evm_defconfig +1 -0
index 28646b0..2abf81e 100644
@@ -26,5 +26,6 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/dra7xx_evm_defconfig +1 -0
index a460897..4dc339c 100644
@@ -17,6 +17,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
index 56a5965..828a862 100644
@@ -17,6 +17,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_uart3_defconfig +1 -0
index 1121289..c5ff5a9 100644
@@ -18,6 +18,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
configs/odroid-xu3_defconfig +1 -0
index cb6035b..32f6dec 100644
@@ -21,6 +21,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_PHY_SAMSUNG=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_VIDEO_BRIDGE=y
configs/omap5_uevm_defconfig +1 -0
index 9a5b91b..7fe4fe5 100644
@@ -11,6 +11,7 @@ CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
+CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_OF_LIBFDT=y
drivers/usb/dwc3/Kconfig +17 -0
index 0bb862a..e93398f 100644
@@ -37,4 +37,21 @@ config USB_DWC3_OMAP
 
 	  Say 'Y' here if you have one such device
 
+menu "PHY Subsystem"
+
+config USB_DWC3_PHY_OMAP
+	bool "TI OMAP SoC series USB DRD PHY driver"
+	help
+	  Enable single driver for both USB2 PHY programming and USB3 PHY
+	  programming for TI SoCs.
+
+config USB_DWC3_PHY_SAMSUNG
+	bool "Exynos5 SoC series USB DRD PHY driver"
+	help
+	  Enable USB DRD PHY support for Exynos 5 SoC series.
+	  This driver provides PHY interface for USB 3.0 DRD controller
+	  present on Exynos5 SoC series.
+
+endmenu
+
 endif
include/configs/am43xx_evm.h +1 -2
index b330f1b..7586019 100644
@@ -123,6 +123,7 @@
 
 /* USB GADGET */
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
+#undef CONFIG_USB_DWC3_PHY_OMAP
 #undef CONFIG_USB_DWC3_OMAP
 #undef CONFIG_USB_DWC3
 #undef CONFIG_USB_DWC3_GADGET
@@ -134,8 +135,6 @@
 
 #if !defined(CONFIG_SPL_BUILD) || \
 	(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
-#define CONFIG_USB_DWC3_PHY_OMAP
-
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
include/configs/dra7xx_evm.h +0 -2
index 118bf91..8d820f4 100644
@@ -227,8 +227,6 @@
 #define CONFIG_OMAP_USB2PHY2_HOST
 
 /* USB GADGET */
-#define CONFIG_USB_DWC3_PHY_OMAP
-
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0451
 #define CONFIG_G_DNL_PRODUCT_NUM 0xd022
include/configs/odroid_xu3.h +0 -3
index 57e20e7..76131cd 100644
@@ -47,9 +47,6 @@
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_EXYNOS
 
-/* DWC3 */
-#define CONFIG_USB_DWC3_PHY_SAMSUNG
-
 /* Downloader */
 #define CONFIG_G_DNL_VENDOR_NUM		0x04E8
 #define CONFIG_G_DNL_PRODUCT_NUM	0x6601
include/configs/omap5_uevm.h +0 -2
index 533ac7b..bf92212 100644
@@ -100,8 +100,6 @@
 #define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 79
 
 /* USB GADGET */
-#define CONFIG_USB_DWC3_PHY_OMAP
-
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
Signature · 1 line
2.8.0.rc3
#13 lore raw

PATCH 8/8 usb: gadget Move: CONFIG_G_DNL_* to Kconfig

In reply to Semen Protsenko

From: Sam Protsenko <[email protected]>

And also reformat defconfigs using "make savedefconfig" rule.

---
 configs/A13-OLinuXino_defconfig           |  3 +++
 configs/CHIP_defconfig                    |  3 +++
 configs/Cubietruck_defconfig              |  3 +++
 configs/am335x_baltos_defconfig           |  3 +++
 configs/am335x_boneblack_defconfig        |  3 +++
 configs/am335x_boneblack_vboot_defconfig  |  3 +++
 configs/am335x_evm_defconfig              |  3 +++
 configs/am335x_evm_nor_defconfig          |  3 +++
 configs/am335x_evm_norboot_defconfig      |  3 +++
 configs/am335x_evm_spiboot_defconfig      |  3 +++
 configs/am335x_evm_usbspl_defconfig       |  3 +++
 configs/am335x_gp_evm_defconfig           |  3 +++
 configs/am437x_gp_evm_defconfig           |  3 +++
 configs/am437x_sk_evm_defconfig           |  3 +++
 configs/am43xx_evm_defconfig              |  3 +++
 configs/am43xx_evm_ethboot_defconfig      |  3 +++
 configs/am43xx_evm_qspiboot_defconfig     |  3 +++
 configs/am43xx_evm_usbhost_boot_defconfig |  3 +++
 configs/apalis_t30_defconfig              |  3 +++
 configs/bcm11130_defconfig                |  3 +++
 configs/bcm11130_nand_defconfig           |  3 +++
 configs/bcm28155_ap_defconfig             |  3 +++
 configs/bcm28155_w1d_defconfig            |  3 +++
 configs/beaver_defconfig                  |  3 +++
 configs/birdland_bav335a_defconfig        |  3 +++
 configs/birdland_bav335b_defconfig        |  3 +++
 configs/cgtqmx6eval_defconfig             |  3 +++
 configs/colibri_t20_defconfig             |  7 +++++--
 configs/colibri_t30_defconfig             |  3 +++
 configs/colibri_vf_defconfig              |  3 +++
 configs/corvus_defconfig                  |  3 +++
 configs/dalmore_defconfig                 |  3 +++
 configs/dra72_evm_defconfig               |  3 +++
 configs/dra74_evm_defconfig               |  3 +++
 configs/dra7xx_evm_defconfig              |  3 +++
 configs/dra7xx_evm_qspiboot_defconfig     |  3 +++
 configs/dra7xx_evm_uart3_defconfig        |  3 +++
 configs/draco_defconfig                   |  3 +++
 configs/e2220-1170_defconfig              |  3 +++
 configs/gwventana_defconfig               |  3 +++
 configs/jetson-tk1_defconfig              |  3 +++
 configs/kc1_defconfig                     |  3 +++
 configs/mx6dlsabreauto_defconfig          |  3 +++
 configs/mx6dlsabresd_defconfig            |  3 +++
 configs/mx6qpsabreauto_defconfig          |  3 +++
 configs/mx6qsabreauto_defconfig           |  3 +++
 configs/mx6qsabrelite_defconfig           |  3 +++
 configs/mx6qsabresd_defconfig             |  3 +++
 configs/mx6sabresd_spl_defconfig          |  3 +++
 configs/mx7dsabresd_defconfig             |  3 +++
 configs/nitrogen6dl2g_defconfig           |  3 +++
 configs/nitrogen6dl_defconfig             |  3 +++
 configs/nitrogen6q2g_defconfig            |  3 +++
 configs/nitrogen6q_defconfig              |  3 +++
 configs/nitrogen6s1g_defconfig            |  3 +++
 configs/nitrogen6s_defconfig              |  3 +++
 configs/nyan-big_defconfig                |  3 +++
 configs/odroid-xu3_defconfig              |  3 +++
 configs/odroid_defconfig                  |  3 +++
 configs/omap3_beagle_defconfig            |  3 +++
 configs/omap3_logic_defconfig             |  3 +++
 configs/omap5_uevm_defconfig              |  3 +++
 configs/origen_defconfig                  |  3 +++
 configs/p2371-0000_defconfig              |  3 +++
 configs/p2371-2180_defconfig              |  3 +++
 configs/p2571_defconfig                   |  3 +++
 configs/pxm2_defconfig                    |  3 +++
 configs/rastaban_defconfig                |  3 +++
 configs/rut_defconfig                     |  3 +++
 configs/s5p_goni_defconfig                |  3 +++
 configs/s5pc210_universal_defconfig       |  3 +++
 configs/smartweb_defconfig                |  3 +++
 configs/sniper_defconfig                  |  3 +++
 configs/socfpga_arria5_defconfig          |  3 +++
 configs/socfpga_cyclone5_defconfig        |  3 +++
 configs/socfpga_de0_nano_soc_defconfig    |  3 +++
 configs/socfpga_mcvevk_defconfig          |  3 +++
 configs/socfpga_sockit_defconfig          |  3 +++
 configs/socfpga_socrates_defconfig        |  3 +++
 configs/taurus_defconfig                  |  3 +++
 configs/tbs2910_defconfig                 |  3 +++
 configs/thuban_defconfig                  |  3 +++
 configs/trats2_defconfig                  |  3 +++
 configs/trats_defconfig                   |  3 +++
 configs/venice2_defconfig                 |  3 +++
 configs/warp_defconfig                    |  3 +++
 configs/xilinx_zynqmp_ep_defconfig        |  3 +++
 configs/zynq_picozed_defconfig            |  7 +++++--
 configs/zynq_zc702_defconfig              |  7 +++++--
 configs/zynq_zc706_defconfig              |  7 +++++--
 configs/zynq_zed_defconfig                |  7 +++++--
 configs/zynq_zybo_defconfig               |  7 +++++--
 drivers/usb/gadget/Kconfig                | 13 +++++++++++++
 drivers/usb/gadget/g_dnl.c                |  2 +-
 include/configs/am335x_evm.h              |  5 -----
 include/configs/am43xx_evm.h              | 11 +++--------
 include/configs/baltos.h                  |  5 -----
 include/configs/bav335x.h                 |  5 -----
 include/configs/bcm28155_ap.h             |  3 ---
 include/configs/cgtqmx6eval.h             |  4 ----
 include/configs/colibri_vf.h              |  3 ---
 include/configs/corvus.h                  |  5 -----
 include/configs/dra7xx_evm.h              |  5 -----
 include/configs/exynos4-common.h          |  5 +----
 include/configs/gw_ventana.h              |  5 -----
 include/configs/kc1.h                     |  8 --------
 include/configs/mx6sabre_common.h         |  4 ----
 include/configs/mx7dsabresd.h             |  4 ----
 include/configs/nitrogen6x.h              |  5 -----
 include/configs/odroid_xu3.h              |  5 -----
 include/configs/omap3_beagle.h            |  3 ---
 include/configs/omap3_logic.h             |  3 ---
 include/configs/omap5_uevm.h              |  5 -----
 include/configs/s5p_goni.h                |  6 ++----
 include/configs/siemens-am33x-common.h    |  3 ---
 include/configs/smartweb.h                |  5 -----
 include/configs/sniper.h                  |  8 --------
 include/configs/socfpga_common.h          |  9 ++-------
 include/configs/sunxi-common.h            |  3 ---
 include/configs/taurus.h                  |  5 -----
 include/configs/tbs2910.h                 |  3 ---
 include/configs/tegra-common-usb-gadget.h |  9 ---------
 include/configs/warp.h                    |  4 ----
 include/configs/xilinx_zynqmp.h           |  3 ---
 include/configs/zynq-common.h             |  3 ---
 125 files changed, 310 insertions(+), 159 deletions(-)
configs/A13-OLinuXino_defconfig +3 -0
index 6c6a434..f0f3c1a 100644
@@ -25,3 +25,6 @@ CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Allwinner Technology"
+CONFIG_G_DNL_VENDOR_NUM=0x1f3a
+CONFIG_G_DNL_PRODUCT_NUM=0x1010
configs/CHIP_defconfig +3 -0
index 1a4460c..f80960a 100644
@@ -16,3 +16,6 @@ CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Allwinner Technology"
+CONFIG_G_DNL_VENDOR_NUM=0x1f3a
+CONFIG_G_DNL_PRODUCT_NUM=0x1010
configs/Cubietruck_defconfig +3 -0
index 2a01573..14bc3fd 100644
@@ -22,3 +22,6 @@ CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Allwinner Technology"
+CONFIG_G_DNL_VENDOR_NUM=0x1f3a
+CONFIG_G_DNL_PRODUCT_NUM=0x1010
configs/am335x_baltos_defconfig +3 -0
index 8e4bba1..8a25718 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/am335x_boneblack_defconfig +3 -0
index 9b9dbe7..855cc91 100644
@@ -20,4 +20,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_boneblack_vboot_defconfig +3 -0
index 2617743..f658249 100644
@@ -27,3 +27,6 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
configs/am335x_evm_defconfig +3 -0
index 760ee03..567805d 100644
@@ -19,4 +19,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_nor_defconfig +3 -0
index 15bd849..4f1bf61 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_norboot_defconfig +3 -0
index 842257c..eed093f 100644
@@ -12,4 +12,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_spiboot_defconfig +3 -0
index d8db92a..797811a 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_usbspl_defconfig +3 -0
index a9389f9..83d6137 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/am335x_gp_evm_defconfig +3 -0
index bed8f5e..8f6acd7 100644
@@ -21,4 +21,7 @@ CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_RSA=y
configs/am437x_gp_evm_defconfig +3 -0
index c1b26e0..69f5ac7 100644
@@ -27,3 +27,6 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
configs/am437x_sk_evm_defconfig +3 -0
index 80ff4da..c7a9fbe 100644
@@ -31,3 +31,6 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
configs/am43xx_evm_defconfig +3 -0
index 97ea209..d6a1c3c 100644
@@ -18,4 +18,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +3 -0
index 5963437..67a9d49 100644
@@ -17,4 +17,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +3 -0
index 02ce1ef..2194b16 100644
@@ -16,4 +16,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +3 -0
index 9ac5c99..6840453 100644
@@ -17,4 +17,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/apalis_t30_defconfig +3 -0
index fb501d8..546dcd5 100644
@@ -19,4 +19,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/bcm11130_defconfig +3 -0
index 5e1516a..7d914fb 100644
@@ -12,3 +12,6 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Broadcom Corporation"
+CONFIG_G_DNL_VENDOR_NUM=0x18d1
+CONFIG_G_DNL_PRODUCT_NUM=0x0d02
configs/bcm11130_nand_defconfig +3 -0
index ab3edf5..8d46779 100644
@@ -12,3 +12,6 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Broadcom Corporation"
+CONFIG_G_DNL_VENDOR_NUM=0x18d1
+CONFIG_G_DNL_PRODUCT_NUM=0x0d02
configs/bcm28155_ap_defconfig +3 -0
index 38909ab..287d39a 100644
@@ -11,3 +11,6 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Broadcom Corporation"
+CONFIG_G_DNL_VENDOR_NUM=0x18d1
+CONFIG_G_DNL_PRODUCT_NUM=0x0d02
configs/bcm28155_w1d_defconfig +3 -0
index eeb7545..0b47f50 100644
@@ -12,3 +12,6 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Broadcom Corporation"
+CONFIG_G_DNL_VENDOR_NUM=0x18d1
+CONFIG_G_DNL_PRODUCT_NUM=0x0d02
configs/beaver_defconfig +3 -0
index 56ed56e..c64828e 100644
@@ -23,4 +23,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/birdland_bav335a_defconfig +3 -0
index fd5c78c..9793176 100644
@@ -14,4 +14,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/birdland_bav335b_defconfig +3 -0
index 19b374b..e72afd2 100644
@@ -14,4 +14,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/cgtqmx6eval_defconfig +3 -0
index 90415c8..56b54b9 100644
@@ -11,4 +11,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Congatec"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/colibri_t20_defconfig +5 -2
index 1ba3bb8..7d28590 100644
@@ -18,10 +18,13 @@ CONFIG_PWM_TEGRA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_DM_VIDEO=y
 CONFIG_VIDEO_TEGRA20=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/colibri_t30_defconfig +3 -0
index 28f2008..3b395fb 100644
@@ -17,4 +17,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/colibri_vf_defconfig +3 -0
index c2ce968..bf088aa 100644
@@ -20,3 +20,6 @@ CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Toradex"
+CONFIG_G_DNL_VENDOR_NUM=0x1b67
+CONFIG_G_DNL_PRODUCT_NUM=0x0016
configs/corvus_defconfig +3 -0
index 7e9577d..b3ed19f 100644
@@ -13,4 +13,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/dalmore_defconfig +3 -0
index bb6199a..4f5d438 100644
@@ -21,4 +21,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/dra72_evm_defconfig +3 -0
index 1b8d2b9..0d63986 100644
@@ -30,3 +30,6 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
configs/dra74_evm_defconfig +3 -0
index 2abf81e..8ce544e 100644
@@ -29,3 +29,6 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
configs/dra7xx_evm_defconfig +3 -0
index 4dc339c..1b1c0be 100644
@@ -20,4 +20,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_qspiboot_defconfig +3 -0
index 828a862..0130188 100644
@@ -20,4 +20,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_uart3_defconfig +3 -0
index c5ff5a9..ca80077 100644
@@ -21,4 +21,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/draco_defconfig +3 -0
index 8b4daa7..f3e823a 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/e2220-1170_defconfig +3 -0
index 5a2ccd1..bc83844 100644
@@ -19,3 +19,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
configs/gwventana_defconfig +3 -0
index 3a4edd1..6d07bb5 100644
@@ -19,4 +19,7 @@ CONFIG_E1000=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Gateworks"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/jetson-tk1_defconfig +3 -0
index c6f9945..f13fc81 100644
@@ -23,4 +23,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/kc1_defconfig +3 -0
index 7c3f33e..8a941f8 100644
@@ -15,4 +15,7 @@ CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/mx6dlsabreauto_defconfig +3 -0
index cb55378..c4a0983 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6dlsabresd_defconfig +3 -0
index 8080190..9452aae 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6qpsabreauto_defconfig +3 -0
index faa879d..a0f6953 100644
@@ -8,4 +8,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6qsabreauto_defconfig +3 -0
index 03290af..f5692c7 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6qsabrelite_defconfig +3 -0
index c91decf..eb44397 100644
@@ -12,4 +12,7 @@ CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6qsabresd_defconfig +3 -0
index e31130e..4016bb5 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx6sabresd_spl_defconfig +3 -0
index 636e9de..b675724 100644
@@ -11,4 +11,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/mx7dsabresd_defconfig +3 -0
index 780ac83..ac7f0e8 100644
@@ -15,4 +15,7 @@ CONFIG_CMD_PING=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6dl2g_defconfig +3 -0
index 6ebb625..ecf6d94 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6dl_defconfig +3 -0
index d9607fb..345e6db 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6q2g_defconfig +3 -0
index caa85b2..907cc26 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6q_defconfig +3 -0
index e8b9f07..75db0b0 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6s1g_defconfig +3 -0
index 3abc971..b92a80d 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nitrogen6s_defconfig +3 -0
index 4a5c52d..77d115f 100644
@@ -10,4 +10,7 @@ CONFIG_SPI_FLASH_SST=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Boundary"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/nyan-big_defconfig +3 -0
index a7038ee..842b151 100644
@@ -36,6 +36,9 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_TEGRA124=y
configs/odroid-xu3_defconfig +3 -0
index 32f6dec..bb0576a 100644
@@ -24,5 +24,8 @@ CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_PHY_SAMSUNG=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_ERRNO_STR=y
configs/odroid_defconfig +3 -0
index 177ffb0..1e713cd 100644
@@ -25,4 +25,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
 CONFIG_ERRNO_STR=y
configs/omap3_beagle_defconfig +3 -0
index 45d4c51..81f44d3 100644
@@ -11,4 +11,7 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="TI"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/omap3_logic_defconfig +3 -0
index 86bf634..1c943ae 100644
@@ -15,4 +15,7 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="TI"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/omap5_uevm_defconfig +3 -0
index 7fe4fe5..135c89d 100644
@@ -14,4 +14,7 @@ CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0403
+CONFIG_G_DNL_PRODUCT_NUM=0xbd00
 CONFIG_OF_LIBFDT=y
configs/origen_defconfig +3 -0
index b136e47..950fe62 100644
@@ -15,3 +15,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
configs/p2371-0000_defconfig +3 -0
index b1303b0..c885f55 100644
@@ -20,3 +20,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
configs/p2371-2180_defconfig +3 -0
index 70da914..de8add4 100644
@@ -22,3 +22,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
configs/p2571_defconfig +3 -0
index df04102..c0ceaea 100644
@@ -20,3 +20,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
configs/pxm2_defconfig +3 -0
index 250c7d6..a732b48 100644
@@ -16,4 +16,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/rastaban_defconfig +3 -0
index 90b2962..17876a1 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/rut_defconfig +3 -0
index 63f6640..18a156c 100644
@@ -16,4 +16,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/s5p_goni_defconfig +3 -0
index 282e647..08ba282 100644
@@ -14,3 +14,6 @@ CONFIG_SYS_PROMPT="Goni # "
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
configs/s5pc210_universal_defconfig +3 -0
index 0e0fb34..30f03a4 100644
@@ -14,3 +14,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
configs/smartweb_defconfig +3 -0
index 6d25479..ce514c2 100644
@@ -11,4 +11,7 @@ CONFIG_AUTOBOOT_STOP_STR="\x1b\x1b"
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/sniper_defconfig +3 -0
index 65bb724..5cbafe1 100644
@@ -15,4 +15,7 @@ CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+CONFIG_G_DNL_VENDOR_NUM=0x0451
+CONFIG_G_DNL_PRODUCT_NUM=0xd022
 CONFIG_OF_LIBFDT=y
configs/socfpga_arria5_defconfig +3 -0
index c452d48..9c69d84 100644
@@ -28,3 +28,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="altera"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/socfpga_cyclone5_defconfig +3 -0
index e80efdb..c55fc91 100644
@@ -28,3 +28,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="altera"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/socfpga_de0_nano_soc_defconfig +3 -0
index 942a3d3..e5ed04a 100644
@@ -23,3 +23,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="terasic"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/socfpga_mcvevk_defconfig +3 -0
index bfd13c7..aa4279f 100644
@@ -23,3 +23,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="denx"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/socfpga_sockit_defconfig +3 -0
index 58e8bd2..b29e3f5 100644
@@ -28,3 +28,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="terasic"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/socfpga_socrates_defconfig +3 -0
index 27ebace..6b94cc7 100644
@@ -27,3 +27,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="ebv"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
configs/taurus_defconfig +3 -0
index 8cdbb89..b5ab8b4 100644
@@ -16,5 +16,8 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_OF_LIBFDT=y
configs/tbs2910_defconfig +3 -0
index 666d059..a08449c 100644
@@ -12,4 +12,7 @@ CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_VBUS_DRAW=0
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="TBS"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/thuban_defconfig +3 -0
index 87eee13..ba9de2f 100644
@@ -15,4 +15,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Siemens AG"
+CONFIG_G_DNL_VENDOR_NUM=0x0908
+CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OF_LIBFDT=y
configs/trats2_defconfig +3 -0
index 886940b..ac1d241 100644
@@ -17,3 +17,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
configs/trats_defconfig +3 -0
index c9bee1c..5d20289 100644
@@ -16,3 +16,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Samsung"
+CONFIG_G_DNL_VENDOR_NUM=0x04e8
+CONFIG_G_DNL_PRODUCT_NUM=0x6601
configs/venice2_defconfig +3 -0
index 61d0b27..1f3afed 100644
@@ -21,4 +21,7 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="NVIDIA"
+CONFIG_G_DNL_VENDOR_NUM=0x0955
+CONFIG_G_DNL_PRODUCT_NUM=0x701a
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/warp_defconfig +3 -0
index a444094..007ad00 100644
@@ -11,4 +11,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="FSL"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
configs/xilinx_zynqmp_ep_defconfig +3 -0
index 34cff0c..ae8cc06 100644
@@ -34,4 +34,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
 # CONFIG_REGEX is not set
configs/zynq_picozed_defconfig +5 -2
index a0e8edb..4eb4b6e 100644
@@ -13,7 +13,10 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_ZYNQ_SDHCI=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
configs/zynq_zc702_defconfig +5 -2
index 2747896..a48ccca 100644
@@ -25,7 +25,10 @@ CONFIG_DEBUG_UART_BASE=0xe0001000
 CONFIG_DEBUG_UART_CLOCK=50000000
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
configs/zynq_zc706_defconfig +5 -2
index 6be5611..0c17c42 100644
@@ -22,7 +22,10 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
configs/zynq_zed_defconfig +5 -2
index ddda909..555989a 100644
@@ -22,7 +22,10 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
configs/zynq_zybo_defconfig +5 -2
index 3c9be4c..d19e954 100644
@@ -24,7 +24,10 @@ CONFIG_DEBUG_UART_BASE=0xe0001000
 CONFIG_DEBUG_UART_CLOCK=50000000
 CONFIG_ZYNQ_QSPI=y
 CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_USB_ULPI=y
-CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_G_DNL_MANUFACTURER="Xilinx"
+CONFIG_G_DNL_VENDOR_NUM=0x03fd
+CONFIG_G_DNL_PRODUCT_NUM=0x0300
drivers/usb/gadget/Kconfig +13 -0
index 1793d18..60eeea5 100644
@@ -63,4 +63,17 @@ config USB_GADGET_DOWNLOAD
 	  Composite USB download gadget support (g_dnl) for download functions.
 	  This code works on top of composite gadget.
 
+if USB_GADGET_DOWNLOAD
+
+config G_DNL_MANUFACTURER
+	string "Vendor name of USB device"
+
+config G_DNL_VENDOR_NUM
+	hex "Vendor ID of USB device"
+
+config G_DNL_PRODUCT_NUM
+	hex "Product ID of USB device"
+
+endif # USB_GADGET_DOWNLOAD
+
 endif # USB_GADGET
drivers/usb/gadget/g_dnl.c +1 -1
index 2fa6da4..eb12451 100644
@@ -27,7 +27,7 @@
  * CONFIG_G_DNL_VENDOR_NUM
  * CONFIG_G_DNL_PRODUCT_NUM
  * CONFIG_G_DNL_MANUFACTURER
- * at e.g. ./include/configs/<board>.h
+ * at e.g. ./configs/<board>_defconfig
  */
 
 #define STRING_MANUFACTURER 25
include/configs/am335x_evm.h +0 -5
index 8d59a18..3043be5 100644
@@ -320,11 +320,6 @@
 #define CONFIG_USB_ETH_RNDIS
 #define CONFIG_USBNET_HOST_ADDR	"de:ad:be:af:00:00"
 #endif /* CONFIG_DM_ETH */
-
-/* USB TI's IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM 0xD022
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #endif /* CONFIG_USB_MUSB_GADGET */
 
 /*
include/configs/am43xx_evm.h +3 -8
index 7586019..5d5ae5e 100644
@@ -121,7 +121,6 @@
 #define CONFIG_AM437X_USB2PHY2_HOST
 #endif
 
-/* USB GADGET */
 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_USBETH_SUPPORT)
 #undef CONFIG_USB_DWC3_PHY_OMAP
 #undef CONFIG_USB_DWC3_OMAP
@@ -130,16 +129,12 @@
 
 #undef CONFIG_USB_GADGET_DOWNLOAD
 #undef CONFIG_USB_GADGET_VBUS_DRAW
+#undef CONFIG_G_DNL_MANUFACTURER
+#undef CONFIG_G_DNL_VENDOR_NUM
+#undef CONFIG_G_DNL_PRODUCT_NUM
 #undef CONFIG_USB_GADGET_DUALSPEED
 #endif
 
-#if !defined(CONFIG_SPL_BUILD) || \
-	(defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT))
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
-#define CONFIG_G_DNL_VENDOR_NUM 0x0403
-#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
-#endif
-
 /*
  * Disable MMC DM for SPL build and can be re-enabled after adding
  * DM support in SPL
include/configs/baltos.h +0 -5
index 24f96c1..25688f1 100644
@@ -290,11 +290,6 @@
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETH_RNDIS
 #define CONFIG_USBNET_HOST_ADDR	"de:ad:be:af:00:00"
-
-/* USB TI's IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0403
-#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #endif /* CONFIG_USB_MUSB_GADGET */
 
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT)
include/configs/bav335x.h +0 -5
index a169ef0..64cdf6c 100644
@@ -467,11 +467,6 @@ DEFAULT_LINUX_BOOT_ENV \
 #ifdef CONFIG_USB_MUSB_GADGET
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
-
-/* USB TI's IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM 0xD022
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #endif /* CONFIG_USB_MUSB_GADGET */
 
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT)
include/configs/bcm28155_ap.h +0 -3
index 7a7f2a0..1703e36 100644
@@ -142,8 +142,5 @@
 #define CONFIG_USB_GADGET_DWC2_OTG
 #define CONFIG_USB_GADGET_BCM_UDC_OTG_PHY
 #define CONFIG_USBID_ADDR		0x34052c46
-#define CONFIG_G_DNL_VENDOR_NUM		0x18d1	/* google */
-#define CONFIG_G_DNL_PRODUCT_NUM	0x0d02	/* nexus one */
-#define CONFIG_G_DNL_MANUFACTURER	"Broadcom Corporation"
 
 #endif /* __BCM28155_AP_H */
include/configs/cgtqmx6eval.h +0 -4
index 1cde551..c5dec4d 100644
@@ -93,10 +93,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER	"Congatec"
-
 /* USB Device Firmware Update support */
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
include/configs/colibri_vf.h +0 -3
index cb86944..dce8878 100644
@@ -240,9 +240,6 @@
 #define CONFIG_TRDX_PID_COLIBRI_VF61     0x0017
 #define CONFIG_TRDX_PID_COLIBRI_VF61IT   0x0018
 #define CONFIG_TRDX_PID_COLIBRI_VF50IT   0x0019
-#define CONFIG_G_DNL_MANUFACTURER        "Toradex"
-#define CONFIG_G_DNL_VENDOR_NUM          CONFIG_TRDX_VID
-#define CONFIG_G_DNL_PRODUCT_NUM         CONFIG_TRDX_PID_COLIBRI_VF50
 
 /* USB DFU */
 #define CONFIG_CMD_DFU
include/configs/corvus.h +0 -5
index 739f3c1..4521e91 100644
@@ -127,11 +127,6 @@
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
-/* USB DFU IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0908
-#define CONFIG_G_DNL_PRODUCT_NUM 0x02d2
-#define CONFIG_G_DNL_MANUFACTURER "Siemens AG"
-
 #define CONFIG_SYS_CACHELINE_SIZE	SZ_8K
 #define CONFIG_SYS_LOAD_ADDR	ATMEL_BASE_CS6
 
include/configs/dra7xx_evm.h +0 -5
index 8d820f4..d2d16a6 100644
@@ -226,11 +226,6 @@
 #define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB2PHY2_HOST
 
-/* USB GADGET */
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
-#define CONFIG_G_DNL_VENDOR_NUM 0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM 0xd022
-
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_RAM
include/configs/exynos4-common.h +1 -4
index f6e7b7e..9fbd750 100644
@@ -37,13 +37,10 @@
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
 /* USB Samsung's IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x04E8
-#define CONFIG_G_DNL_PRODUCT_NUM 0x6601
-#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
+#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
-#define CONFIG_G_DNL_MANUFACTURER "Samsung"
 
 #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 2 sectors */
 
include/configs/gw_ventana.h +0 -5
index 613d888..510e8d8 100644
@@ -196,11 +196,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-/* Netchip IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER "Gateworks"
-
 /* Framebuffer and LCD */
 #define CONFIG_VIDEO
 #define CONFIG_VIDEO_IPUV3
include/configs/kc1.h +0 -8
index 0b5a8eb..ab118e2 100644
@@ -187,14 +187,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 
 /*
- * Download
- */
-
-#define CONFIG_G_DNL_VENDOR_NUM		0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM	0xd022
-#define CONFIG_G_DNL_MANUFACTURER	"Texas Instruments"
-
-/*
  * Fastboot
  */
 
include/configs/mx6sabre_common.h +0 -4
index c7b89cd..d4d6553 100644
@@ -241,10 +241,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER	"FSL"
-
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_CMD_FASTBOOT
 #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/mx7dsabresd.h +0 -4
index c34f9c7..a10e804 100644
@@ -256,10 +256,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER	"FSL"
-
 /* USB Device Firmware Update support */
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
include/configs/nitrogen6x.h +0 -5
index 0b71f95..971c440 100644
@@ -333,11 +333,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-/* Netchip IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER "Boundary"
-
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_CMD_FASTBOOT
 #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/odroid_xu3.h +0 -5
index 76131cd..e52d7ba 100644
@@ -47,11 +47,6 @@
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_EXYNOS
 
-/* Downloader */
-#define CONFIG_G_DNL_VENDOR_NUM		0x04E8
-#define CONFIG_G_DNL_PRODUCT_NUM	0x6601
-#define CONFIG_G_DNL_MANUFACTURER	"Samsung"
-
 /* DFU */
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_MMC
include/configs/omap3_beagle.h +0 -3
index 69cdb7f..efae257 100644
@@ -66,9 +66,6 @@
 #define CONFIG_TWL4030_USB		1
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_G_DNL_VENDOR_NUM		0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM	0xd022
-#define CONFIG_G_DNL_MANUFACTURER	"TI"
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_CMD_FASTBOOT
 #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/omap3_logic.h +0 -3
index fb33f50..01a5003 100644
@@ -85,9 +85,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETHER_RNDIS
-#define CONFIG_G_DNL_VENDOR_NUM		0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM	0xd022
-#define CONFIG_G_DNL_MANUFACTURER	"TI"
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_CMD_FASTBOOT
 #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/omap5_uevm.h +0 -5
index bf92212..10b97a0 100644
@@ -99,11 +99,6 @@
 #define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 80
 #define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 79
 
-/* USB GADGET */
-#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
-#define CONFIG_G_DNL_VENDOR_NUM 0x0403
-#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
-
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_RAM
include/configs/s5p_goni.h +2 -4
index 338c989..c786757 100644
@@ -80,13 +80,11 @@
 #define CONFIG_USB_FUNCTION_THOR
 
 /* USB Samsung's IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x04E8
-#define CONFIG_G_DNL_PRODUCT_NUM 0x6601
-#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
+
+#define CONFIG_G_DNL_THOR_VENDOR_NUM 0x04E8
 #define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
 #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525
 #define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5
-#define CONFIG_G_DNL_MANUFACTURER "Samsung"
 
 /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
 #define MTDIDS_DEFAULT		"onenand0=samsung-onenand"
include/configs/siemens-am33x-common.h +0 -3
index b3145c2..a33c1e8 100644
@@ -244,9 +244,6 @@
 
 /* USB DRACO ID as default */
 #define CONFIG_USBD_HS
-#define CONFIG_G_DNL_VENDOR_NUM 0x0908
-#define CONFIG_G_DNL_PRODUCT_NUM 0x02d2
-#define CONFIG_G_DNL_MANUFACTURER "Siemens AG"
 
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
include/configs/smartweb.h +0 -5
index bafa8e3..0352379 100644
@@ -178,11 +178,6 @@
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	SZ_1M
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
-/* USB DFU IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0908
-#define CONFIG_G_DNL_PRODUCT_NUM 0x02d2
-#define CONFIG_G_DNL_MANUFACTURER "Siemens AG"
-
 #define CONFIG_SYS_CACHELINE_SIZE	0x2000
 #endif
 
include/configs/sniper.h +0 -8
index eb8831d..a7f2e21 100644
@@ -204,14 +204,6 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 
 /*
- * Download
- */
-
-#define CONFIG_G_DNL_VENDOR_NUM		0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM	0xd022
-#define CONFIG_G_DNL_MANUFACTURER	"Texas Instruments"
-
-/*
  * Fastboot
  */
 
include/configs/socfpga_common.h +2 -7
index 6239dac..c138c5c 100644
@@ -265,13 +265,8 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define DFU_DEFAULT_POLL_TIMEOUT	300
 
 /* USB IDs */
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525	/* NetChip */
-#define CONFIG_G_DNL_PRODUCT_NUM	0xA4A5	/* Linux-USB File-backed Storage Gadget */
-#define CONFIG_G_DNL_UMS_VENDOR_NUM	CONFIG_G_DNL_VENDOR_NUM
-#define CONFIG_G_DNL_UMS_PRODUCT_NUM	CONFIG_G_DNL_PRODUCT_NUM
-#ifndef CONFIG_G_DNL_MANUFACTURER
-#define CONFIG_G_DNL_MANUFACTURER	CONFIG_SYS_VENDOR
-#endif
+#define CONFIG_G_DNL_UMS_VENDOR_NUM	0x0525
+#define CONFIG_G_DNL_UMS_PRODUCT_NUM	0xA4A5
 #endif
 
 /*
include/configs/sunxi-common.h +0 -3
index b043127..7dba11a 100644
@@ -343,9 +343,6 @@ extern int soft_i2c_gpio_scl;
 
 #ifdef CONFIG_USB_MUSB_GADGET
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_G_DNL_VENDOR_NUM		0x1f3a
-#define CONFIG_G_DNL_PRODUCT_NUM	0x1010
-#define CONFIG_G_DNL_MANUFACTURER	"Allwinner Technology"
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
include/configs/taurus.h +0 -5
index 422b7a1..405ed72 100644
@@ -142,11 +142,6 @@
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE	(SZ_1M)
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
-/* USB DFU IDs */
-#define CONFIG_G_DNL_VENDOR_NUM 0x0908
-#define CONFIG_G_DNL_PRODUCT_NUM 0x02d2
-#define CONFIG_G_DNL_MANUFACTURER "Siemens AG"
-
 #define CONFIG_SYS_CACHELINE_SIZE	SZ_8K
 #endif
 
include/configs/tbs2910.h +0 -3
index 619b7ac..31e596f 100644
@@ -132,9 +132,6 @@
 #define CONFIG_USBD_HS
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_USB_GADGET_DUALSPEED
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER	"TBS"
 #endif /* CONFIG_CMD_USB_MASS_STORAGE */
 #define CONFIG_USB_KEYBOARD
 #ifdef CONFIG_USB_KEYBOARD
include/configs/tegra-common-usb-gadget.h +0 -9
index 743d97c..57625f3 100644
@@ -13,15 +13,6 @@
 #define CONFIG_CI_UDC
 #define CONFIG_CI_UDC_HAS_HOSTPC
 #define CONFIG_USB_GADGET_DUALSPEED
-#ifndef CONFIG_G_DNL_VENDOR_NUM
-#define CONFIG_G_DNL_VENDOR_NUM 0x0955
-#endif
-#ifndef CONFIG_G_DNL_PRODUCT_NUM
-#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
-#endif
-#ifndef CONFIG_G_DNL_MANUFACTURER
-#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
-#endif
 /* USB mass storage protocol */
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 #define CONFIG_CMD_USB_MASS_STORAGE
include/configs/warp.h +0 -4
index 5db783d..473c927 100644
@@ -81,10 +81,6 @@
 #define CONFIG_CMD_USB_MASS_STORAGE
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 
-#define CONFIG_G_DNL_VENDOR_NUM		0x0525
-#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
-#define CONFIG_G_DNL_MANUFACTURER	"FSL"
-
 #define CONFIG_CMD_DFU
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_MMC
include/configs/xilinx_zynqmp.h +0 -3
index d877eeb..2f57fb2 100644
@@ -129,9 +129,6 @@
 #define DFU_DEFAULT_POLL_TIMEOUT	300
 #define CONFIG_USB_FUNCTION_DFU
 #define CONFIG_DFU_RAM
-#define CONFIG_G_DNL_VENDOR_NUM		0x03FD
-#define CONFIG_G_DNL_PRODUCT_NUM	0x0300
-#define CONFIG_G_DNL_MANUFACTURER	"Xilinx"
 #define CONFIG_USB_CABLE_CHECK
 #define CONFIG_CMD_DFU
 #define CONFIG_CMD_THOR_DOWNLOAD
include/configs/zynq-common.h +0 -3
index 58034e6..a73529e 100644
@@ -106,9 +106,6 @@
 # define DFU_DEFAULT_POLL_TIMEOUT	300
 # define CONFIG_USB_FUNCTION_DFU
 # define CONFIG_DFU_RAM
-# define CONFIG_G_DNL_VENDOR_NUM	0x03FD
-# define CONFIG_G_DNL_PRODUCT_NUM	0x0300
-# define CONFIG_G_DNL_MANUFACTURER	"Xilinx"
 # define CONFIG_USB_CABLE_CHECK
 # define CONFIG_CMD_DFU
 # define CONFIG_CMD_THOR_DOWNLOAD
Signature · 1 line
2.8.0.rc3
#14 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

In reply to Semen Protsenko
Quoted 1 line · Semen Protsenko

Hi All,

Hi!

Quoted 7 lines

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

That's great, it'd be helpful if you posted buildman -Ssdvel output here too and maybe -B as well ;-)

Signature · 2 lines
Best regards,
Marek Vasut
#15 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Quoted 12 lines · Marek Vasut
Quoted 1 line · Semen Protsenko

Hi All,

Hi!

Quoted 7 lines

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 7 lines
Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

That's great, it'd be helpful if you posted buildman -Ssdvel output here too and maybe -B as well ;-)

Sorry, already removed the results dir. Also, "-B" option doesn't work for me, showing some errors. But I can assure you, this patch series doesn't break any board.

Quoted 4 lines

--
Best regards,
Marek Vasut

#16 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

In reply to Semen Protsenko

Hi Semen,

Quoted 11 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

However, I do tested this patch series with Odroid XU3 with UMS gadget and it seems to work.

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
#17 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Quoted 16 lines · Lukasz Majewski

Hi Semen,

Quoted 14 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

Quoted 7 lines
Quoted 2 lines

The whole series was tested using buildman tool for all arm boards.

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

test/py?

Thanks,
Michal

#18 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Hi Michal,

Quoted 20 lines · Lukasz Majewski
Quoted 19 lines

Hi Semen,

Quoted 16 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines
Quoted 4 lines

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

test/py?

Yes, indeed.

I've some problems with stdin/stdout operation via u-boot-test-console script with using cu on my Odroid XU3.

I do perform soft reset on my board (by sending "reset") and thereafter it seems like no output from u-boot console is examined by pexpect.

I've asked Stephen for sharing his u-boot-test-console file, so he pointed me towards his github:

https://github.com/swarren/uboot-test-hooks/blob/master/bin/u-boot-test-console

I hope I will solve this problem today :-).

Quoted 4 lines

Thanks,
Michal

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
#19 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Quoted 37 lines · Lukasz Majewski

Hi Michal,

Quoted 20 lines · Lukasz Majewski
Quoted 19 lines

Hi Semen,

Quoted 16 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines
Quoted 4 lines

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

test/py?

Yes, indeed.

I've some problems with stdin/stdout operation via u-boot-test-console script with using cu on my Odroid XU3.

I do perform soft reset on my board (by sending "reset") and thereafter it seems like no output from u-boot console is examined by pexpect.

Quoted 6 lines

I've asked Stephen for sharing his u-boot-test-console file, so he pointed me towards his github:

https://github.com/swarren/uboot-test-hooks/blob/master/bin/u-boot-test-console

I hope I will solve this problem today :-).

I am using kermit. I have seen cu too.
I am also running qemu but this should be done on real hw.

Thanks,
Michal

#20 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Hi Michal,

Quoted 40 lines · Lukasz Majewski
Quoted 39 lines

Hi Michal,

Quoted 21 lines · Lukasz Majewski
Quoted 20 lines

Hi Semen,

Quoted 17 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3
platforms for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines
Quoted 4 lines

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

test/py?

Yes, indeed.

I've some problems with stdin/stdout operation via u-boot-test-console script with using cu on my Odroid XU3.

I do perform soft reset on my board (by sending "reset") and thereafter it seems like no output from u-boot console is examined by pexpect.

Quoted 8 lines
Quoted 6 lines

I've asked Stephen for sharing his u-boot-test-console file, so he pointed me towards his github:

https://github.com/swarren/uboot-test-hooks/blob/master/bin/u-boot-test-console

I hope I will solve this problem today :-).

I am using kermit. I have seen cu too.

With cu I don't see /dev/ttyUSB1 redirected to pexpect.

If I might ask - which USB <-> RS232 converter do you use?

Quoted 7 lines

I am also running qemu but this should be done on real hw.

Thanks,
Michal

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
#21 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Quoted 45 lines · Lukasz Majewski

Hi Michal,

Quoted 43 lines · Lukasz Majewski
Quoted 42 lines

Hi Michal,

Quoted 21 lines · Lukasz Majewski
Quoted 20 lines

Hi Semen,

Quoted 17 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3
platforms for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines
Quoted 4 lines

I've reviewed your work and I don't have any objections.

Now, I'm trying to setup python test environment (DFU, UMS), so I cannot thoroughly test it.

test/py?

Yes, indeed.

I've some problems with stdin/stdout operation via u-boot-test-console script with using cu on my Odroid XU3.

I do perform soft reset on my board (by sending "reset") and thereafter it seems like no output from u-boot console is examined by pexpect.

I've asked Stephen for sharing his u-boot-test-console file, so he pointed me towards his github:

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

https://github.com/swarren/uboot-test-hooks/blob/master/bin/u-boot-test-console

I hope I will solve this problem today :-).

I am using kermit. I have seen cu too.

With cu I don't see /dev/ttyUSB1 redirected to pexpect.

I personally use /dev/serial/by-patch links.

Quoted 2 lines

If I might ask - which USB <-> RS232 converter do you use?

We have converters directly on boards. Some of them are fdti chips and some of them cp210x.

Thanks,
Michal

#22 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

In reply to Semen Protsenko

Hi Semen,

Quoted 11 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Test HW: Odroid XU3 with test/py for UMS, DFU

Applied to u-boot-dfu branch

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
#23 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Quoted 19 lines · Lukasz Majewski

Hi Semen,

Quoted 11 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines

Test HW: Odroid XU3 with test/py for UMS, DFU

Applied to u-boot-dfu branch

Hi Lukasz,

I mentioned in reply for some other patch from this series that I'm gonna send v3 of the whole series. It took so long because I was testing it with buildman and fixing issues. So right now I have the whole series reworked w.r.t. all comments made to patches from this series and gonna resend it. Sorry I haven't mentioned that in this mail. So can you please revert series and apply new one once I sent it?

Quoted 8 lines

--
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

#24 lore raw

cover usb: Move DWC3 and some gadget options to Kconfig

Hi Sam,

Quoted 30 lines
Quoted 19 lines · Lukasz Majewski

Hi Semen,

Quoted 11 lines

Hi All,

This patch series move next options to Kconfigs/defconfigs:
- CONFIG_USB_DWC3*
- CONFIG_USB_GADGET_VBUS_DRAW
- CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms
for now)
- CONFIG_USB_GADGET_DOWNLOAD
- CONFIG_G_DNL_*

Quoted 5 lines

All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of options in defconfigs.

The whole series was tested using buildman tool for all arm boards.

Quoted 6 lines

Test HW: Odroid XU3 with test/py for UMS, DFU

Applied to u-boot-dfu branch

Hi Lukasz,

Quoted 7 lines

I mentioned in reply for some other patch from this series that I'm gonna send v3 of the whole series. It took so long because I was testing it with buildman and fixing issues. So right now I have the whole series reworked w.r.t. all comments made to patches from this series and gonna resend it. Sorry I haven't mentioned that in this mail. So can you please revert series and apply new one once I sent it?

It is not a problem.

Only please add me to v3's CC and I will update the patch on my u-boot-dfu tree.

Quoted 10 lines
Quoted 9 lines

--
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group