Skip to contentSkip to conversation

Convert CONFIG_TWL4030_USB et al to Kconfig

PATCH New Adam Ford 3 participants 3 messages Dec 29, 2017 USB

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 Convert CONFIG_TWL4030_USB et al to Kconfig

This converts the following to Kconfig:
CONFIG_TWL4030_USB
CONFIG_OMAP_USB_PHY
CONFIG_ROCKCHIP_USB2_PHY

---
 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/am43xx_hs_evm_defconfig           |  1 +
 configs/am57xx_evm_defconfig              |  1 +
 configs/am57xx_hs_evm_defconfig           |  1 +
 configs/cl-som-am57x_defconfig            |  1 +
 configs/cm_t35_defconfig                  |  1 +
 configs/cm_t43_defconfig                  |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_hs_evm_defconfig           |  1 +
 configs/igep0032_defconfig                |  1 +
 configs/igep00x0_defconfig                |  1 +
 configs/nokia_rx51_defconfig              |  1 +
 configs/omap3_beagle_defconfig            |  1 +
 configs/omap3_logic_defconfig             |  1 +
 configs/omap3_zoom1_defconfig             |  1 +
 configs/sniper_defconfig                  |  1 +
 drivers/usb/Kconfig                       |  2 ++
 drivers/usb/phy/Kconfig                   | 17 +++++++++++++++++
 include/configs/am43xx_evm.h              |  1 -
 include/configs/am57xx_evm.h              |  1 -
 include/configs/cl-som-am57x.h            |  1 -
 include/configs/cm_t35.h                  |  1 -
 include/configs/cm_t43.h                  |  1 -
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/nokia_rx51.h              |  1 -
 include/configs/omap3_beagle.h            |  1 -
 include/configs/omap3_igep00x0.h          |  1 -
 include/configs/omap3_logic.h             |  1 -
 include/configs/omap3_zoom1.h             |  1 -
 include/configs/rk3188_common.h           |  1 -
 include/configs/rk3288_common.h           |  1 -
 include/configs/sniper.h                  |  2 --
 scripts/config_whitelist.txt              |  3 ---
 36 files changed, 38 insertions(+), 18 deletions(-)
configs/am43xx_evm_defconfig +1 -0
index c180214..c75eab3 100644
@@ -49,6 +49,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_ethboot_defconfig +1 -0
index 60f0552..7f2acd9 100644
@@ -60,6 +60,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_qspiboot_defconfig +1 -0
index d6a5263..a56abc9 100644
@@ -49,6 +49,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index 28cf04a..e9c3a05 100644
@@ -72,6 +72,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_hs_evm_defconfig +1 -0
index bed0583..e8a641e 100644
@@ -60,6 +60,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am57xx_evm_defconfig +1 -0
index fc96401..470a7ad 100644
@@ -67,6 +67,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am57xx_hs_evm_defconfig +1 -0
index 681e2a5..0800d5f 100644
@@ -70,6 +70,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/cl-som-am57x_defconfig +1 -0
index 9c3031b..e9b6fe0 100644
@@ -57,6 +57,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
configs/cm_t35_defconfig +1 -0
index cfb68b1..0cb6e72 100644
@@ -52,6 +52,7 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
 CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +1 -0
index a621ff2..e234bc6 100644
@@ -72,6 +72,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_defconfig +1 -0
index 716a57b..b13a27e 100644
@@ -80,6 +80,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/dra7xx_hs_evm_defconfig +1 -0
index f7418c7..7ccb4f0 100644
@@ -82,6 +82,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/igep0032_defconfig +1 -0
index 60cce77..b0daee1 100644
@@ -42,6 +42,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_BCH=y
 CONFIG_OF_LIBFDT=y
configs/igep00x0_defconfig +1 -0
index d8ece6b..22dbc70 100644
@@ -43,6 +43,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_BCH=y
 CONFIG_OF_LIBFDT=y
configs/nokia_rx51_defconfig +1 -0
index 570bb3f..e93042e 100644
@@ -30,6 +30,7 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
 # CONFIG_VGA_AS_SINGLE_DEVICE is not set
configs/omap3_beagle_defconfig +1 -0
index 1fea12a..40b99c4 100644
@@ -49,6 +49,7 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="TI"
configs/omap3_logic_defconfig +1 -0
index a34401f..d282efa 100644
@@ -51,6 +51,7 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_OMAP3=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="TI"
configs/omap3_zoom1_defconfig +1 -0
index db867b1..1a915c5 100644
@@ -44,5 +44,6 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/sniper_defconfig +1 -0
index c75b1ba..a3bae56 100644
@@ -40,6 +40,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0451
drivers/usb/Kconfig +2 -0
index 13e9e49..7de4105 100644
@@ -57,6 +57,8 @@ source "drivers/usb/musb-new/Kconfig"
 
 source "drivers/usb/emul/Kconfig"
 
+source "drivers/usb/phy/Kconfig"
+
 source "drivers/usb/ulpi/Kconfig"
 
 comment "USB peripherals"
drivers/usb/phy/Kconfig new file +17 -0
new file mode 100644
index 0000000..bcc67a0
@@ -0,0 +1,17 @@
+#
+# (C) Copyright 2017
+# Adam Ford, Logic PD, aford173 at gmail.com
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+comment "USB Phy"
+
+config TWL4030_USB
+	bool "TWL4030 PHY"
+
+config OMAP_USB_PHY
+	bool "OMAP PHY"
+
+config ROCKCHIP_USB2_PHY
+	bool "Rockchip USB2 PHY"
include/configs/am43xx_evm.h +0 -1
index 302181b..77f8e76 100644
@@ -77,7 +77,6 @@
 #define CONFIG_SYS_USB_FAT_BOOT_PARTITION		1
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_AM437X_USB2PHY2_HOST
 #endif
 
include/configs/am57xx_evm.h +0 -1
index 28618a5..7546b3f 100644
@@ -92,7 +92,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB3PHY1_HOST
 
 /* SATA */
include/configs/cl-som-am57x.h +0 -1
index 6935b06..4f64672 100644
@@ -77,7 +77,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB3PHY1_HOST
 
 /* USB Networking options */
include/configs/cm_t35.h +0 -1
index 8abe870..cec99ea 100644
@@ -72,7 +72,6 @@
 					115200}
 
 /* USB */
-#define CONFIG_TWL4030_USB
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE
include/configs/cm_t43.h +0 -1
index a222491..a564b86 100644
@@ -55,7 +55,6 @@
 
 /* USB support */
 #define CONFIG_USB_XHCI_OMAP
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_AM437X_USB2PHY2_HOST
 
 /* SPI Flash support */
include/configs/dra7xx_evm.h +0 -1
index f777d57..ff90b6d 100644
@@ -144,7 +144,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB2PHY2_HOST
 
 /* SATA */
include/configs/nokia_rx51.h +0 -1
index 1c02a8c..c52c6ff 100644
@@ -83,7 +83,6 @@
 #define CONFIG_SYS_BAUDRATE_TABLE { 4800, 9600, 19200, 38400, 57600, 115200 }
 
 /* USB */
-#define CONFIG_TWL4030_USB
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE
include/configs/omap3_beagle.h +0 -1
index f21a843..2fc81db 100644
@@ -43,7 +43,6 @@
 #define CONFIG_SYS_I2C_NOPROBES		{{0x0, 0x0}}
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB EHCI */
 
include/configs/omap3_igep00x0.h +0 -1
index 9b815e0..4888176 100644
@@ -42,7 +42,6 @@
 #define GPIO_IGEP00X0_REVISION_DETECTION	129
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE		1
include/configs/omap3_logic.h +0 -1
index a4b29f1..5445186 100644
@@ -55,7 +55,6 @@
 /* USB */
 
 /* TWL4030 */
-#define CONFIG_TWL4030_USB
 
 /* Board NAND Info. */
 #ifdef CONFIG_NAND
include/configs/omap3_zoom1.h +0 -1
index e5e4bc4..653790e 100644
@@ -35,7 +35,6 @@
  */
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE		1
include/configs/rk3188_common.h +0 -1
index 0cb0762..9ab5502 100644
@@ -58,7 +58,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* usb otg */
-#define CONFIG_ROCKCHIP_USB2_PHY
 
 /* usb host support */
 #define ENV_MEM_LAYOUT_SETTINGS \
include/configs/rk3288_common.h +0 -1
index e2f070f..c2bd378 100644
@@ -58,7 +58,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* usb otg */
-#define CONFIG_ROCKCHIP_USB2_PHY
 
 /* usb mass storage */
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
include/configs/sniper.h +0 -2
index 09b5a73..99bee4c 100644
@@ -113,8 +113,6 @@
  * USB gadget
  */
 
-#define CONFIG_TWL4030_USB
-
 /*
  * Environment
  */
scripts/config_whitelist.txt +0 -3
index fdf9e55..d12d0eb 100644
@@ -1561,7 +1561,6 @@ CONFIG_OMAP_EHCI_PHY2_RESET_GPIO
 CONFIG_OMAP_EHCI_PHY3_RESET_GPIO
 CONFIG_OMAP_USB2PHY2_HOST
 CONFIG_OMAP_USB3PHY1_HOST
-CONFIG_OMAP_USB_PHY
 CONFIG_ORIGEN
 CONFIG_OS1_ENV_ADDR
 CONFIG_OS2_ENV_ADDR
@@ -1830,7 +1829,6 @@ CONFIG_RMSTP9_ENA
 CONFIG_ROCKCHIP_CHIP_TAG
 CONFIG_ROCKCHIP_MAX_INIT_SIZE
 CONFIG_ROCKCHIP_SDHCI_MAX_FREQ
-CONFIG_ROCKCHIP_USB2_PHY
 CONFIG_ROM_STUBS
 CONFIG_ROOTFS_OFFSET
 CONFIG_ROOTPATH
@@ -4814,7 +4812,6 @@ CONFIG_TUXX1
 CONFIG_TWL4030_INPUT
 CONFIG_TWL4030_KEYPAD
 CONFIG_TWL4030_LED
-CONFIG_TWL4030_USB
 CONFIG_TWL6030_INPUT
 CONFIG_TWL6030_POWER
 CONFIG_TWR
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 Convert CONFIG_TWL4030_USB et al to Kconfig

Hi,

Quoted 4 lines · Adam Ford

This converts the following to Kconfig:

   CONFIG_TWL4030_USB
   CONFIG_OMAP_USB_PHY
   CONFIG_ROCKCHIP_USB2_PHY

Thanks for the effort!

See one comment below. Otherwise, looks good to me.

Quoted 490 lines
---
 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/am43xx_hs_evm_defconfig           |  1 +
 configs/am57xx_evm_defconfig              |  1 +
 configs/am57xx_hs_evm_defconfig           |  1 +
 configs/cl-som-am57x_defconfig            |  1 +
 configs/cm_t35_defconfig                  |  1 +
 configs/cm_t43_defconfig                  |  1 +
 configs/dra7xx_evm_defconfig              |  1 +
 configs/dra7xx_hs_evm_defconfig           |  1 +
 configs/igep0032_defconfig                |  1 +
 configs/igep00x0_defconfig                |  1 +
 configs/nokia_rx51_defconfig              |  1 +
 configs/omap3_beagle_defconfig            |  1 +
 configs/omap3_logic_defconfig             |  1 +
 configs/omap3_zoom1_defconfig             |  1 +
 configs/sniper_defconfig                  |  1 +
 drivers/usb/Kconfig                       |  2 ++
 drivers/usb/phy/Kconfig                   | 17 +++++++++++++++++
 include/configs/am43xx_evm.h              |  1 -
 include/configs/am57xx_evm.h              |  1 -
 include/configs/cl-som-am57x.h            |  1 -
 include/configs/cm_t35.h                  |  1 -
 include/configs/cm_t43.h                  |  1 -
 include/configs/dra7xx_evm.h              |  1 -
 include/configs/nokia_rx51.h              |  1 -
 include/configs/omap3_beagle.h            |  1 -
 include/configs/omap3_igep00x0.h          |  1 -
 include/configs/omap3_logic.h             |  1 -
 include/configs/omap3_zoom1.h             |  1 -
 include/configs/rk3188_common.h           |  1 -
 include/configs/rk3288_common.h           |  1 -
 include/configs/sniper.h                  |  2 --
 scripts/config_whitelist.txt              |  3 ---
 36 files changed, 38 insertions(+), 18 deletions(-)
configs/am43xx_evm_defconfig +1 -0
index c180214..c75eab3 100644
@@ -49,6 +49,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_ethboot_defconfig +1 -0
index 60f0552..7f2acd9 100644
@@ -60,6 +60,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_qspiboot_defconfig +1 -0
index d6a5263..a56abc9 100644
@@ -49,6 +49,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index 28cf04a..e9c3a05 100644
@@ -72,6 +72,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am43xx_hs_evm_defconfig +1 -0
index bed0583..e8a641e 100644
@@ -60,6 +60,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am57xx_evm_defconfig +1 -0
index fc96401..470a7ad 100644
@@ -67,6 +67,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/am57xx_hs_evm_defconfig +1 -0
index 681e2a5..0800d5f 100644
@@ -70,6 +70,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/cl-som- renamed from configs/cl-som-am57x_defconfig +0 -0

am57x_defconfig
index 9c3031b..e9b6fe0 100644

configs/cl-som-am57x_defconfig +1 -0
@@ -57,6 +57,7 @@ CONFIG_TI_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
configs/cm_t35_defconfig +1 -0
index cfb68b1..0cb6e72 100644
@@ -52,6 +52,7 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
 CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +1 -0
index a621ff2..e234bc6 100644
@@ -72,6 +72,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/dra7xx_evm_defconfig +1 -0
index 716a57b..b13a27e 100644
@@ -80,6 +80,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/dra7xx_hs_evm_defconfig +1 -0
index f7418c7..7ccb4f0 100644
@@ -82,6 +82,7 @@ CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
 CONFIG_USB_DWC3_OMAP=y
 CONFIG_USB_DWC3_PHY_OMAP=y
+CONFIG_OMAP_USB_PHY=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
configs/igep0032_defconfig +1 -0
index 60cce77..b0daee1 100644
@@ -42,6 +42,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_BCH=y
 CONFIG_OF_LIBFDT=y
configs/igep00x0_defconfig +1 -0
index d8ece6b..22dbc70 100644
@@ -43,6 +43,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_BCH=y
 CONFIG_OF_LIBFDT=y
configs/nokia_rx51_defconfig +1 -0
index 570bb3f..e93042e 100644
@@ -30,6 +30,7 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
 # CONFIG_VGA_AS_SINGLE_DEVICE is not set
configs/omap3_beagle_defconfig +1 -0
index 1fea12a..40b99c4 100644
@@ -49,6 +49,7 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="TI"
configs/omap3_logic_defconfig +1 -0
index a34401f..d282efa 100644
@@ -51,6 +51,7 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_OMAP3=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="TI"
configs/omap3_zoom1_defconfig +1 -0
index db867b1..1a915c5 100644
@@ -44,5 +44,6 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_TWL4030_USB=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/sniper_defconfig +1 -0
index c75b1ba..a3bae56 100644
@@ -40,6 +40,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_OMAP2PLUS=y
+CONFIG_TWL4030_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0451
drivers/usb/Kconfig +2 -0
index 13e9e49..7de4105 100644
@@ -57,6 +57,8 @@ source "drivers/usb/musb-new/Kconfig"
 
 source "drivers/usb/emul/Kconfig"
 
+source "drivers/usb/phy/Kconfig"
+
 source "drivers/usb/ulpi/Kconfig"
 
 comment "USB peripherals"
drivers/usb/phy/Kconfig new file +17 -0
new file mode 100644
index 0000000..bcc67a0
@@ -0,0 +1,17 @@
+#
+# (C) Copyright 2017
+# Adam Ford, Logic PD, aford173 at gmail.com
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+comment "USB Phy"
+
+config TWL4030_USB
+	bool "TWL4030 PHY"
+
+config OMAP_USB_PHY
+	bool "OMAP PHY"
+
+config ROCKCHIP_USB2_PHY
+	bool "Rockchip USB2 PHY"
include/configs/am43xx_evm.h +0 -1
index 302181b..77f8e76 100644
@@ -77,7 +77,6 @@
 #define CONFIG_SYS_USB_FAT_BOOT_PARTITION		1
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_AM437X_USB2PHY2_HOST
 #endif
 
include/configs/am57xx_evm.h +0 -1
index 28618a5..7546b3f 100644
@@ -92,7 +92,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB3PHY1_HOST
 
 /* SATA */
include/configs/cl-som- renamed from include/configs/cl-som-am57x.h +0 -0

am57x.h
index 6935b06..4f64672 100644

include/configs/cl-som-am57x.h +0 -1
@@ -77,7 +77,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB3PHY1_HOST
 
 /* USB Networking options */
include/configs/cm_t35.h +0 -1
index 8abe870..cec99ea 100644
@@ -72,7 +72,6 @@
 					115200}
 
 /* USB */
-#define CONFIG_TWL4030_USB
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE
include/configs/cm_t43.h +0 -1
index a222491..a564b86 100644
@@ -55,7 +55,6 @@
 
 /* USB support */
 #define CONFIG_USB_XHCI_OMAP
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_AM437X_USB2PHY2_HOST
 
 /* SPI Flash support */
include/configs/dra7xx_evm.h +0 -1
index f777d57..ff90b6d 100644
@@ -144,7 +144,6 @@
 /* USB xHCI HOST */
 #define CONFIG_USB_XHCI_OMAP
 
-#define CONFIG_OMAP_USB_PHY
 #define CONFIG_OMAP_USB2PHY2_HOST
 
 /* SATA */
include/configs/nokia_rx51.h +0 -1
index 1c02a8c..c52c6ff 100644
@@ -83,7 +83,6 @@
 #define CONFIG_SYS_BAUDRATE_TABLE { 4800, 9600, 19200, 38400, 57600,
 115200 }
 
 /* USB */
-#define CONFIG_TWL4030_USB
 
 /* USB device configuration */

#define CONFIG_USB_DEVICE

include/configs/omap3_beagle.h +0 -1
index f21a843..2fc81db 100644
@@ -43,7 +43,6 @@
 #define CONFIG_SYS_I2C_NOPROBES		{{0x0, 0x0}}
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB EHCI */
 
include/configs/omap3_igep00x0.h +0 -1
index 9b815e0..4888176 100644
@@ -42,7 +42,6 @@
 #define GPIO_IGEP00X0_REVISION_DETECTION	129
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE		1
include/configs/omap3_logic.h +0 -1
index a4b29f1..5445186 100644
@@ -55,7 +55,6 @@
 /* USB */
 
 /* TWL4030 */
-#define CONFIG_TWL4030_USB
 
 /* Board NAND Info. */
 #ifdef CONFIG_NAND
include/configs/omap3_zoom1.h +0 -1
index e5e4bc4..653790e 100644
@@ -35,7 +35,6 @@
  */
 
 /* USB */
-#define CONFIG_TWL4030_USB		1
 
 /* USB device configuration */
 #define CONFIG_USB_DEVICE		1
include/configs/rk3188_common.h +0 -1
index 0cb0762..9ab5502 100644
@@ -58,7 +58,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* usb otg */
-#define CONFIG_ROCKCHIP_USB2_PHY
 
 /* usb host support */
 #define ENV_MEM_LAYOUT_SETTINGS \
include/configs/rk3288_common.h +0 -1
index e2f070f..c2bd378 100644
@@ -58,7 +58,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* usb otg */
-#define CONFIG_ROCKCHIP_USB2_PHY
 
 /* usb mass storage */
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
include/configs/sniper.h +0 -0
index 09b5a73..99bee4c 100644

include/configs/sniper.h line 117

Quoted 5 lines
include/configs/sniper.h +0 -2
@@ -113,8 +113,6 @@
  * USB gadget
  */
 
-#define CONFIG_TWL4030_USB
-

Please remove the heading "USB gadget" as this change effectively leaves the section empty.

Quoted 32 lines
include/configs/sniper.h +0 -0
 /*
  * Environment
  */
scripts/config_whitelist.txt +0 -3
index fdf9e55..d12d0eb 100644
@@ -1561,7 +1561,6 @@ CONFIG_OMAP_EHCI_PHY2_RESET_GPIO
 CONFIG_OMAP_EHCI_PHY3_RESET_GPIO
 CONFIG_OMAP_USB2PHY2_HOST
 CONFIG_OMAP_USB3PHY1_HOST
-CONFIG_OMAP_USB_PHY
 CONFIG_ORIGEN
 CONFIG_OS1_ENV_ADDR
 CONFIG_OS2_ENV_ADDR
@@ -1830,7 +1829,6 @@ CONFIG_RMSTP9_ENA
 CONFIG_ROCKCHIP_CHIP_TAG
 CONFIG_ROCKCHIP_MAX_INIT_SIZE
 CONFIG_ROCKCHIP_SDHCI_MAX_FREQ
-CONFIG_ROCKCHIP_USB2_PHY
 CONFIG_ROM_STUBS
 CONFIG_ROOTFS_OFFSET
 CONFIG_ROOTPATH
@@ -4814,7 +4812,6 @@ CONFIG_TUXX1
 CONFIG_TWL4030_INPUT
 CONFIG_TWL4030_KEYPAD
 CONFIG_TWL4030_LED
-CONFIG_TWL4030_USB
 CONFIG_TWL6030_INPUT
 CONFIG_TWL6030_POWER
 CONFIG_TWR
Signature · 14 lines
Paul Kocialkowski,

developer of free digital technology and hardware support.

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171229/d6728194/attachment.sig>
#2 lore raw

PATCH 1/1 Convert CONFIG_TWL4030_USB et al to Kconfig

In reply to Adam Ford
Quoted 7 lines · Adam Ford

This converts the following to Kconfig:
CONFIG_TWL4030_USB
CONFIG_OMAP_USB_PHY
CONFIG_ROCKCHIP_USB2_PHY

Please split this into three distinct commits, converting each of these PHY changes in a separate patch. This will make life much easier in case that anyone ever hits this commit (or rather: one of these commits) during a bisect.

Quoted 1 line
[For the Kconfig-change and the changes affecting the Rockchip sub-arch:]