]> git.sur5r.net Git - u-boot/commitdiff
usb: Kconfig: migrate USB_DWC2 to Kconfig
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 3 Jul 2017 16:30:06 +0000 (18:30 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 10:13:49 +0000 (12:13 +0200)
This change migrates the USB_DWC2 configuration item to Kconfig
and runs moveconfig to adjust header files and defconfig.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Split off into a separate patch:
Ran moveconfig to migrate other boards:
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29 files changed:
configs/fennec-rk3288_defconfig
configs/firefly-rk3288_defconfig
configs/hikey_defconfig
configs/kylin-rk3036_defconfig
configs/miqi-rk3288_defconfig
configs/popmetal-rk3288_defconfig
configs/rpi_2_defconfig
configs/rpi_3_32b_defconfig
configs/rpi_3_defconfig
configs/rpi_defconfig
configs/socfpga_arria5_defconfig
configs/socfpga_cyclone5_defconfig
configs/socfpga_de0_nano_soc_defconfig
configs/socfpga_de10_nano_defconfig
configs/socfpga_de1_soc_defconfig
configs/socfpga_mcvevk_defconfig
configs/socfpga_sockit_defconfig
configs/socfpga_socrates_defconfig
configs/socfpga_vining_fpga_defconfig
configs/tinker-rk3288_defconfig
drivers/usb/host/Kconfig
include/configs/hikey.h
include/configs/rk3036_common.h
include/configs/rk3188_common.h
include/configs/rk322x_common.h
include/configs/rk3288_common.h
include/configs/rpi.h
include/configs/socfpga_common.h
scripts/config_whitelist.txt

index aacf8082661277503940d763b4515aab89afd9b8..3a51da82745c6e1eae0a22bdcb8941b698b2de7d 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index 619002422d219a2e2b2d0b2e5ed72e7e64bb63fe..6f093f48cfe983624df640b197693711f088abfa 100644 (file)
@@ -65,6 +65,7 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
index 20e3e98018f651483c3a05bd2c7921f1b647e814..88d5853d117e301b1f290ae8d09dbb3a79e2c6a2 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_CMD_CACHE=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_K3=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT_OVERLAY=y
index edf9d0829724e3904e07a8ff8c0e79ab252b4842..715e4b235895fb075460fe7f48df65a2aecf1daf 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_PINCTRL_ROCKCHIP_RK3036=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_ERRNO_STR=y
index ffb68f73aca9ed66bd6934343cdf993fad0e27c0..c6bfa1e9f1ef33c249c4f6f551af398a75ae6de8 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
index 64d38b0112af3c2c83b9a4187949096d153739f6..6d026756dacc5e8ff641dba290ce7deadff524c3 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index 862203f01679014320f15b73b6d047f54e1465ba..a6f3cd79658c94f47b5ee0bdd75c3b6cb3630fa0 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_MMC_SDHCI_BCM2835=y
 CONFIG_DM_ETH=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
index 95b167728870660ec48687d200b03277ed4714fc..1cbbb2c357562d2b7c2ddf0de568bc62529f809c 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_DM_ETH=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
index f91b53d4bf7a058989a6e69e21d2e2f25e6fb3f0..80e6681332f73832ff107388310b8847778d832c 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_DM_ETH=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
index e2d81ab5a873803f4c1e8eb28b10dd5dd4c375ea..5d344fdc8702e5c3980ecd7236d22a20b27acbb5 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_MMC_SDHCI_BCM2835=y
 CONFIG_DM_ETH=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
index a565384ea12410133979eca13dd20e23b2b8df24..a3f9ef01ba34fb1953022249eee38290610b418c 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 06fc82c2617572de756ca89b935a88d59f65f214..9e9f781da118484d721a105354bd6f01994ac9fc 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 0697e2ec37355a0ac3de6f55fe49b62e9cc01eef..f11570298cbab1d1967a7f8352f2861b2d4cc210 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index cd64fb90c34bc34121e4f579e436cad135be3526..8f7e45961ec646b59cc3d350a2a18409dfd9449d 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index bba90bef28af32268034f734e607673f3570605b..7b7909cb62b30ecc43d35094d4f877ce8c85eeff 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_ETH_DESIGNWARE=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USE_TINY_PRINTF=y
 # CONFIG_EFI_LOADER is not set
index 627b90f7718e92617ce21baed94aaf249e80fc7b..88618f8559e709c367eaa3a3cfc1b4903651775e 100644 (file)
@@ -50,6 +50,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index bf5d63db3cd6f03779a017dce3157638d822aa2d..864ec5916ffb914d5f15b9244214d3d857f0579f 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 5915fafbbb9344eb086345778bd41cf3c9a188c0..706ca72f93d05f05d77ee20e17e4e3b3185ef50f 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 18186e83db611398b064db5ab486e5d34b27f903..21754b4c5dad070117678543c3d722483629480e 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 35046a924bb83535e552ab43ea5ad6a062c7afff..c46bacccf33c9dd7797d44355661e088f4eb1dfb 100644 (file)
@@ -65,6 +65,7 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_USB_STORAGE=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index 5e07a10e7527a38ec5bcac76320654da8a2f189b..bc2c1f17e588e762e3dadf4774108bdbe5b0af02 100644 (file)
@@ -201,3 +201,13 @@ config USB_UHCI_HCD
 if USB_UHCI_HCD
 
 endif # USB_UHCI_HCD
+
+config USB_DWC2
+       bool "DesignWare USB2 Core support"
+       select USB_HOST
+       ---help---
+         The DesignWare USB 2.0 controller is compliant with the
+         USB-Implementers Forum (USB-IF) USB 2.0 specifications.
+         Hi-Speed (480 Mbps), Full-Speed (12 Mbps), and Low-Speed (1.5 Mbps)
+         operation is compliant to the controller Supplement. If you want to
+         enable this controller in host mode, say Y.
index 2b4fec4bd4239a4d12e7497d06fa93c8b50bfb30..c7fb8a5f8e9e3efc6f261700ce29cf98ee9aafd1 100644 (file)
@@ -54,7 +54,6 @@
 #define CONFIG_PL01X_SERIAL
 
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_DWC2_REG_ADDR 0xF72C0000
 /*#define CONFIG_DWC2_DFLT_SPEED_FULL*/
 #define CONFIG_DWC2_ENABLE_DYNAMIC_FIFO
index 1f6b5a1669a20536912804cc2d43ffba0f27e8eb..18b7dce94e657343f7cbf329c27de7635c16faba 100644 (file)
@@ -72,7 +72,6 @@
 
 /* usb host */
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_USB_ETHER_ASIX
index 7f57dd3141a18343bdbea25520907d605c4cfceb..3ee9abd38d5034ede1fed0f0c527251ddae3d265 100644 (file)
@@ -85,7 +85,6 @@
 
 /* usb host support */
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_USB_ETHER_ASIX
index 56565b6ddb5fbb2b62c91f3354fd4e284a30efdb..a145b7434a2574886644ed4d3a0025cba70b0389 100644 (file)
@@ -65,7 +65,6 @@
 
 /* usb host */
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_USB_ETHER_ASIX
index 7d6ef413689c743de93f46e44eee6b75b2d906e7..488d67924a0afe6c123967afa429bc1dbcd38150 100644 (file)
@@ -81,7 +81,6 @@
 
 /* usb host support */
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_USB_ETHER_ASIX
index d715eaad14f4d3c25f0fecc853c838cf0a367b28..b31e2acce6aaa8f12ecd44f1e08cd1a5a50f0bb1 100644 (file)
@@ -71,7 +71,6 @@
 #define CONFIG_VIDEO_BCM2835
 
 #ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_TFTP_TSIZE
index c17814bf01b30e8da62c02a7c79062ae5bec251d..1bed85e78b0801f5a50a4ec85565c01661af29ad 100644 (file)
@@ -224,9 +224,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 /*
  * USB
  */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2
-#endif
 
 /*
  * USB Gadget (DFU, UMS)
index 54eee53572ef522e26a9b2a786314726ba981c66..1ab6101ab7547e26754487338c0175dc2861fcb9 100644 (file)
@@ -5115,7 +5115,6 @@ CONFIG_USB_CABLE_CHECK
 CONFIG_USB_DEVICE
 CONFIG_USB_DEV_BASE
 CONFIG_USB_DEV_PULLUP_GPIO
-CONFIG_USB_DWC2
 CONFIG_USB_DWC2_REG_ADDR
 CONFIG_USB_EHCI_ARMADA100
 CONFIG_USB_EHCI_BASE