summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2016-04-13 14:20:30 +0300
committerMarek Vasut <marex@denx.de>2016-04-20 11:43:28 +0200
commite6c0bc0643e5a4387fecbcf83080d0b796eb067c (patch)
tree3a1dddb14ad30fad04478e54fbaadfc366aa837b /drivers
parentb142729d03d7295076f2c276da5694b46e511e89 (diff)
downloadu-boot-imx-e6c0bc0643e5a4387fecbcf83080d0b796eb067c.zip
u-boot-imx-e6c0bc0643e5a4387fecbcf83080d0b796eb067c.tar.gz
u-boot-imx-e6c0bc0643e5a4387fecbcf83080d0b796eb067c.tar.bz2
usb: gadget Move: CONFIG_G_DNL_* to Kconfig
And also reformat defconfigs using "make savedefconfig" rule. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/Kconfig13
-rw-r--r--drivers/usb/gadget/g_dnl.c2
2 files changed, 14 insertions, 1 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 969873c..a35a1c7 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -86,4 +86,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
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c
index bd3aad9..45a484c 100644
--- a/drivers/usb/gadget/g_dnl.c
+++ b/drivers/usb/gadget/g_dnl.c
@@ -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