usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
Subsystems (8)
v2 cover usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
Masahiro Yamada (13):
configs: blackfin: move CONFIG_USB to defconfig
usb: move CONFIG_USB_XHCI to Kconfig with renaming
usb: move CONFIG_USB_XHCI_DWC3 to Kconfig
usb: xhci: add struct devrequest declaration to xhci.h
usb: dwc3: change DWC3 core support code into a driver
usb: dwc3: add UniPhier specific glue layer
ARM: uniphier: switch over to USB DM
ARM: uniphier: enable DWC3 xHCI driver
usb: uniphier: remove UniPhier xHCI driver
ARM: uniphier: delete unnecessary xHCI pin-mux settings
ARM: uniphier: adjust ifdefs for new UniPhier DWC3 CONFIG
ARM: dts: uniphier: add/update xHCI nodes
ARM: uniphier: enable Generic EHCI for PH1-Pro4
arch/arm/Kconfig | 1 + arch/arm/dts/uniphier-ph1-ld20.dtsi | 17 ++++ arch/arm/dts/uniphier-ph1-pro4-ref.dts | 4 + arch/arm/dts/uniphier-ph1-pro4.dtsi | 32 ++++-- arch/arm/dts/uniphier-ph1-pro5.dtsi | 32 ++++-- arch/arm/dts/uniphier-proxstream2.dtsi | 32 ++++-- arch/arm/mach-uniphier/clk/clk-pro4.c | 6 +- arch/arm/mach-uniphier/clk/clk-pro5.c | 6 +- arch/arm/mach-uniphier/clk/clk-pxs2.c | 6 +- arch/arm/mach-uniphier/pinctrl/pinctrl-ld20.c | 12 --- arch/arm/mach-uniphier/pinctrl/pinctrl-ld6b.c | 11 --- arch/arm/mach-uniphier/pinctrl/pinctrl-pro4.c | 7 -- arch/arm/mach-uniphier/pinctrl/pinctrl-pro5.c | 7 -- arch/arm/mach-uniphier/pinctrl/pinctrl-pxs2.c | 11 --- common/usb.c | 2 +- configs/am437x_gp_evm_defconfig | 2 + configs/am437x_sk_evm_defconfig | 2 + configs/am43xx_evm_defconfig | 2 + configs/am43xx_evm_ethboot_defconfig | 2 + configs/am43xx_evm_qspiboot_defconfig | 2 + configs/am43xx_evm_usbhost_boot_defconfig | 2 + configs/am57xx_evm_defconfig | 3 + configs/am57xx_evm_nodt_defconfig | 3 + configs/bf526-ezbrd_defconfig | 1 + configs/bf527-ezkit-v2_defconfig | 1 + configs/bf527-ezkit_defconfig | 1 + configs/bf548-ezkit_defconfig | 1 + configs/cm_t43_defconfig | 3 + configs/dra72_evm_defconfig | 2 + configs/dra74_evm_defconfig | 2 + configs/dra7xx_evm_defconfig | 2 + configs/dra7xx_evm_qspiboot_defconfig | 2 + configs/dra7xx_evm_uart3_defconfig | 2 + configs/k2e_evm_defconfig | 3 + configs/k2g_evm_defconfig | 3 + configs/k2hk_evm_defconfig | 3 + configs/k2l_evm_defconfig | 3 + configs/ls1021aqds_ddr4_nor_defconfig | 3 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 3 + configs/ls1021aqds_nand_defconfig | 3 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 3 + configs/ls1021aqds_nor_defconfig | 3 + configs/ls1021aqds_nor_lpuart_defconfig | 3 + configs/ls1021aqds_qspi_defconfig | 3 + configs/ls1021aqds_sdcard_ifc_defconfig | 3 + configs/ls1021aqds_sdcard_qspi_defconfig | 3 + configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 3 + configs/ls1021atwr_nor_defconfig | 3 + configs/ls1021atwr_nor_lpuart_defconfig | 3 + configs/ls1021atwr_qspi_defconfig | 3 + configs/ls1021atwr_sdcard_ifc_defconfig | 3 + configs/ls1021atwr_sdcard_qspi_defconfig | 3 + configs/ls1043aqds_defconfig | 3 + configs/ls1043aqds_lpuart_defconfig | 3 + configs/ls1043aqds_nand_defconfig | 3 + configs/ls1043aqds_nor_ddr3_defconfig | 3 + configs/ls1043aqds_qspi_defconfig | 3 + configs/ls1043aqds_sdcard_ifc_defconfig | 3 + configs/ls1043aqds_sdcard_qspi_defconfig | 3 + configs/ls1043ardb_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_defconfig | 3 + configs/ls1043ardb_nand_defconfig | 3 + configs/ls1043ardb_sdcard_defconfig | 3 + configs/ls2080aqds_SECURE_BOOT_defconfig | 3 + configs/ls2080aqds_defconfig | 3 + configs/ls2080aqds_nand_defconfig | 3 + configs/ls2080ardb_SECURE_BOOT_defconfig | 3 + configs/ls2080ardb_defconfig | 3 + configs/ls2080ardb_nand_defconfig | 3 + configs/odroid-xu3_defconfig | 2 + configs/peach-pi_defconfig | 2 + configs/peach-pit_defconfig | 2 + configs/smdk5420_defconfig | 2 + configs/uniphier_ld20_defconfig | 2 + configs/uniphier_ld4_sld8_defconfig | 1 - configs/uniphier_pro4_defconfig | 4 + configs/uniphier_pxs2_ld6b_defconfig | 2 + configs/uniphier_sld3_defconfig | 1 - configs/xilinx_zynqmp_ep_defconfig | 2 + configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 2 + configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 2 + configs/xilinx_zynqmp_zcu102_defconfig | 2 + configs/xilinx_zynqmp_zcu102_revB_defconfig | 2 + drivers/usb/host/Kconfig | 24 ++--- drivers/usb/host/Makefile | 4 +- drivers/usb/host/dwc3-uniphier.c | 119 +++++++++++++++++++++++ drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++- drivers/usb/host/xhci-uniphier.c | 85 ---------------- drivers/usb/host/xhci.h | 2 + include/configs/am43xx_evm.h | 2 - include/configs/am57xx_evm.h | 2 - include/configs/bf526-ezbrd.h | 1 - include/configs/bf527-ezkit.h | 1 - include/configs/bf548-ezkit.h | 1 - include/configs/cm_t43.h | 2 - include/configs/dra7xx_evm.h | 2 - include/configs/ds414.h | 3 +- include/configs/exynos5-common.h | 1 - include/configs/exynos5420-common.h | 1 - include/configs/ls1021aqds.h | 2 - include/configs/ls1021atwr.h | 2 - include/configs/ls1043aqds.h | 2 - include/configs/ls1043ardb.h | 2 - include/configs/ls2080aqds.h | 2 - include/configs/ls2080ardb.h | 2 - include/configs/smdk5420.h | 1 - include/configs/ti_armv7_keystone2.h | 2 - include/configs/xilinx_zynqmp.h | 2 - include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 110 files changed, 479 insertions(+), 218 deletions(-) create mode 100644 drivers/usb/host/dwc3-uniphier.c delete mode 100644 drivers/usb/host/xhci-uniphier.c
Signature · 1 line
1.9.1
PATCH v2 1/13 configs: blackfin: move CONFIG_USB to defconfig
These Blackfin boards are the last ones that define CONFIG_USB in their headers.
---
Changes in v2:
- Newly added
configs/bf526-ezbrd_defconfig | 1 + configs/bf527-ezkit-v2_defconfig | 1 + configs/bf527-ezkit_defconfig | 1 + configs/bf548-ezkit_defconfig | 1 + include/configs/bf526-ezbrd.h | 1 - include/configs/bf527-ezkit.h | 1 - include/configs/bf548-ezkit.h | 1 - 7 files changed, 4 insertions(+), 3 deletions(-)
configs/bf526-ezbrd_defconfig +1 -0
@@ -17,3 +17,4 @@ CONFIG_CMD_FAT=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y +CONFIG_USB=y
configs/bf527-ezkit-v2_defconfig +1 -0
@@ -17,4 +17,5 @@ CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_USB=y CONFIG_LIB_RAND=y
configs/bf527-ezkit_defconfig +1 -0
@@ -17,3 +17,4 @@ CONFIG_NET_RANDOM_ETHADDR=y # CONFIG_NET_TFTP_VARS is not set CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_USB=y
configs/bf548-ezkit_defconfig +1 -0
@@ -16,5 +16,6 @@ CONFIG_CMD_EXT2=y CONFIG_CMD_FAT=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_USB=y CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y CONFIG_LIB_RAND=y
include/configs/bf526-ezbrd.h +0 -1
@@ -125,7 +125,6 @@* USB Settings */ #if !defined(__ADSPBF522__) && !defined(__ADSPBF523__) -#define CONFIG_USB #define CONFIG_USB_MUSB_HCD #define CONFIG_USB_BLACKFIN #define CONFIG_USB_STORAGE
include/configs/bf527-ezkit.h +0 -1
@@ -128,7 +128,6 @@* USB Settings */ #if !defined(__ADSPBF522__) && !defined(__ADSPBF523__) -#define CONFIG_USB #define CONFIG_USB_MUSB_HCD #define CONFIG_USB_BLACKFIN #define CONFIG_USB_STORAGE
include/configs/bf548-ezkit.h +0 -1
@@ -151,7 +151,6 @@* USB Settings */ #if !defined(__ADSPBF544__) -#define CONFIG_USB #define CONFIG_USB_MUSB_HCD #define CONFIG_USB_BLACKFIN #define CONFIG_USB_STORAGE
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 1/13 configs: blackfin: move CONFIG_USB to defconfig
Quoted 4 lines · Masahiro Yamada
These Blackfin boards are the last ones that define
CONFIG_USBin their headers.Signed-off-by Masahiro Yamada <[email protected]>
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 2/13 usb: move CONFIG_USB_XHCI to Kconfig with renaming
In reply to Masahiro YamadaMove CONFIG_USB_XHCI to defconfig files for all boards, renaming it into CONFIG_USB_XHCI_HCD.
As commented in the help of "config USB_XHCI" entry, this has been a TODO for a long time; now CONFIG_USB_XHCI_HCD and CONFIG_USB_XHCI have been unified in favor of the former.
Note:
Some boards define CONFIG_USB_XHCI in their headers without CONFIG_USB, which does not meet the "depends on" in Kconfig. I added CONFIG_USB=y for those boards when converting. Otherwise, they would fail to build.
---
Changes in v2:
- Newly added
common/usb.c | 2 +- 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/am57xx_evm_defconfig | 2 ++ configs/am57xx_evm_nodt_defconfig | 2 ++ configs/cm_t43_defconfig | 2 ++ 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/k2e_evm_defconfig | 2 ++ configs/k2g_evm_defconfig | 2 ++ configs/k2hk_evm_defconfig | 2 ++ configs/k2l_evm_defconfig | 2 ++ configs/ls1021aqds_ddr4_nor_defconfig | 2 ++ configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 2 ++ configs/ls1021aqds_nand_defconfig | 2 ++ configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 2 ++ configs/ls1021aqds_nor_defconfig | 2 ++ configs/ls1021aqds_nor_lpuart_defconfig | 2 ++ configs/ls1021aqds_qspi_defconfig | 2 ++ configs/ls1021aqds_sdcard_ifc_defconfig | 2 ++ configs/ls1021aqds_sdcard_qspi_defconfig | 2 ++ configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 2 ++ configs/ls1021atwr_nor_defconfig | 2 ++ configs/ls1021atwr_nor_lpuart_defconfig | 2 ++ configs/ls1021atwr_qspi_defconfig | 2 ++ configs/ls1021atwr_sdcard_ifc_defconfig | 2 ++ configs/ls1021atwr_sdcard_qspi_defconfig | 2 ++ configs/ls1043aqds_defconfig | 2 ++ configs/ls1043aqds_lpuart_defconfig | 2 ++ configs/ls1043aqds_nand_defconfig | 2 ++ configs/ls1043aqds_nor_ddr3_defconfig | 2 ++ configs/ls1043aqds_qspi_defconfig | 2 ++ configs/ls1043aqds_sdcard_ifc_defconfig | 2 ++ configs/ls1043aqds_sdcard_qspi_defconfig | 2 ++ configs/ls1043ardb_SECURE_BOOT_defconfig | 2 ++ configs/ls1043ardb_defconfig | 2 ++ configs/ls1043ardb_nand_defconfig | 2 ++ configs/ls1043ardb_sdcard_defconfig | 2 ++ configs/ls2080aqds_SECURE_BOOT_defconfig | 2 ++ configs/ls2080aqds_defconfig | 2 ++ configs/ls2080aqds_nand_defconfig | 2 ++ configs/ls2080ardb_SECURE_BOOT_defconfig | 2 ++ configs/ls2080ardb_defconfig | 2 ++ configs/ls2080ardb_nand_defconfig | 2 ++ configs/odroid-xu3_defconfig | 1 + configs/peach-pi_defconfig | 1 + configs/peach-pit_defconfig | 1 + configs/smdk5420_defconfig | 1 + configs/xilinx_zynqmp_ep_defconfig | 1 + configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 + configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1 + configs/xilinx_zynqmp_zcu102_defconfig | 1 + configs/xilinx_zynqmp_zcu102_revB_defconfig | 1 + drivers/usb/host/Kconfig | 6 ------ drivers/usb/host/Makefile | 2 +- include/configs/am43xx_evm.h | 1 - include/configs/am57xx_evm.h | 1 - include/configs/cm_t43.h | 1 - include/configs/dra7xx_evm.h | 1 - include/configs/ds414.h | 3 +-- include/configs/exynos5420-common.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atwr.h | 1 - include/configs/ls1043aqds.h | 1 - include/configs/ls1043ardb.h | 1 - include/configs/ls2080aqds.h | 1 - include/configs/ls2080ardb.h | 1 - include/configs/smdk5420.h | 1 - include/configs/ti_armv7_keystone2.h | 1 - include/configs/xilinx_zynqmp.h | 1 - 77 files changed, 101 insertions(+), 24 deletions(-)
common/usb.c +1 -1
@@ -1182,7 +1182,7 @@ int usb_new_device(struct usb_device *dev)* with the device. So a get_descriptor will fail before any * of that is done for XHCI unlike EHCI. */ -#ifdef CONFIG_USB_XHCI +#ifdef CONFIG_USB_XHCI_HCD do_read = false;#endif err =usb_setup_device (dev, do_read, dev->parent);
configs/am437x_gp_evm_defconfig +1 -0
@@ -38,6 +38,7 @@ CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am437x_sk_evm_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_defconfig +1 -0
@@ -29,6 +29,7 @@ CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_ethboot_defconfig +1 -0
@@ -28,6 +28,7 @@ CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
@@ -27,6 +27,7 @@ CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
@@ -28,6 +28,7 @@ CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am57xx_evm_defconfig +2 -0
@@ -32,3 +32,5 @@ CONFIG_DM_MMC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/am57xx_evm_nodt_defconfig +2 -0
@@ -22,4 +22,6 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +2 -0
@@ -37,4 +37,6 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/dra72_evm_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra74_evm_defconfig +1 -0
@@ -41,6 +41,7 @@ CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_defconfig +1 -0
@@ -31,6 +31,7 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
@@ -31,6 +31,7 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_uart3_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/k2e_evm_defconfig +2 -0
@@ -32,3 +32,5 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/k2g_evm_defconfig +2 -0
@@ -32,3 +32,5 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_DM_ETH=y CONFIG_REMOTEPROC_TI_POWER=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/k2hk_evm_defconfig +2 -0
@@ -32,3 +32,5 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/k2l_evm_defconfig +2 -0
@@ -32,3 +32,5 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_ddr4_nor_defconfig +2 -0
@@ -24,3 +24,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_ddr4_nor_lpuart_defconfig +2 -0
@@ -24,3 +24,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_FSL_LPUART=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_nand_defconfig +2 -0
@@ -21,4 +21,6 @@ CONFIG_CMD_FAT=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/ls1021aqds_nor_SECURE_BOOT_defconfig +2 -0
@@ -22,5 +22,7 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_RSA=y CONFIG_OF_LIBFDT=y
configs/ls1021aqds_nor_defconfig +2 -0
@@ -23,3 +23,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_nor_lpuart_defconfig +2 -0
@@ -24,3 +24,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_FSL_LPUART=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_qspi_defconfig +2 -0
@@ -30,3 +30,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_sdcard_ifc_defconfig +2 -0
@@ -22,3 +22,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021aqds_sdcard_qspi_defconfig +2 -0
@@ -29,3 +29,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021atwr_nor_SECURE_BOOT_defconfig +2 -0
@@ -22,5 +22,7 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_RSA=y CONFIG_OF_LIBFDT=y
configs/ls1021atwr_nor_defconfig +2 -0
@@ -23,3 +23,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021atwr_nor_lpuart_defconfig +2 -0
@@ -24,3 +24,5 @@ CONFIG_DM=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_FSL_LPUART=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021atwr_qspi_defconfig +2 -0
@@ -31,3 +31,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1021atwr_sdcard_ifc_defconfig +2 -0
@@ -20,4 +20,6 @@ CONFIG_CMD_FAT=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/ls1021atwr_sdcard_qspi_defconfig +2 -0
@@ -31,3 +31,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_defconfig +2 -0
@@ -25,3 +25,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_lpuart_defconfig +2 -0
@@ -26,3 +26,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_FSL_LPUART=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_nand_defconfig +2 -0
@@ -26,3 +26,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_nor_ddr3_defconfig +2 -0
@@ -24,3 +24,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_qspi_defconfig +2 -0
@@ -26,3 +26,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_sdcard_ifc_defconfig +2 -0
@@ -26,3 +26,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043aqds_sdcard_qspi_defconfig +2 -0
@@ -27,3 +27,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043ardb_SECURE_BOOT_defconfig +2 -0
@@ -21,4 +21,6 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_RSA=y
configs/ls1043ardb_defconfig +2 -0
@@ -21,3 +21,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043ardb_nand_defconfig +2 -0
@@ -22,3 +22,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls1043ardb_sdcard_defconfig +2 -0
@@ -22,3 +22,5 @@ CONFIG_OF_CONTROL=y CONFIG_DM=y CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls2080aqds_SECURE_BOOT_defconfig +2 -0
@@ -29,4 +29,6 @@ CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_RSA=y
configs/ls2080aqds_defconfig +2 -0
@@ -29,3 +29,5 @@ CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls2080aqds_nand_defconfig +2 -0
@@ -22,4 +22,6 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/ls2080ardb_SECURE_BOOT_defconfig +2 -0
@@ -29,4 +29,6 @@ CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_RSA=y
configs/ls2080ardb_defconfig +2 -0
@@ -29,3 +29,5 @@ CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y
configs/ls2080ardb_nand_defconfig +2 -0
@@ -22,4 +22,6 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NETDEVICES=y CONFIG_E1000=y CONFIG_SYS_NS16550=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_OF_LIBFDT=y
configs/odroid-xu3_defconfig +1 -0
@@ -36,6 +36,7 @@ CONFIG_PMIC_S2MPS11=y CONFIG_DM_REGULATOR=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_PHY_SAMSUNG=y
configs/peach-pi_defconfig +1 -0
@@ -55,6 +55,7 @@ CONFIG_EXYNOS_SPI=y CONFIG_TPM_TIS_INFINEON=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_TPM=y
configs/peach-pit_defconfig +1 -0
@@ -55,6 +55,7 @@ CONFIG_EXYNOS_SPI=y CONFIG_TPM_TIS_INFINEON=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_TPM=y
configs/smdk5420_defconfig +1 -0
@@ -36,4 +36,5 @@ CONFIG_DM_REGULATOR=y CONFIG_EXYNOS_SPI=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_VIDEO_BRIDGE=y
configs/xilinx_zynqmp_ep_defconfig +1 -0
@@ -47,6 +47,7 @@ CONFIG_NAND_ARASAN=y CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_GADGET=y
configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig +1 -0
@@ -41,6 +41,7 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig +1 -0
@@ -38,6 +38,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zcu102_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zcu102_revB_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
drivers/usb/host/Kconfig +0 -6
@@ -9,12 +9,6 @@ config USB_XHCI_HCD The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0 "SuperSpeed" host controller hardware. -config USB_XHCI - bool - default USB_XHCI_HCD - ---help--- - TODO: rename after most boards switch to Kconfig - if USB_XHCI_HCD config USB_XHCI_UNIPHIER
drivers/usb/host/Makefile +1 -1
@@ -54,7 +54,7 @@ obj-$(CONFIG_USB_EHCI_RMOBILE) += ehci-rmobile.o obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o # xhci -obj-$(CONFIG_USB_XHCI) += xhci.o xhci-mem.o xhci-ring.o +obj-$(CONFIG_USB_XHCI_HCD) += xhci.o xhci-mem.o xhci-ring.o obj-$(CONFIG_USB_XHCI_DWC3) += xhci-dwc3.o obj-$(CONFIG_USB_XHCI_ZYNQMP) += xhci-zynqmp.o obj-$(CONFIG_USB_XHCI_KEYSTONE) += xhci-keystone.o
include/configs/am43xx_evm.h +0 -1
@@ -108,7 +108,6 @@#if defined(CONFIG_SPL_USB_HOST_SUPPORT ) || !defined(CONFIG_SPL_BUILD )#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1#define CONFIG_USB_HOST -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE
include/configs/am57xx_evm.h +0 -1
@@ -65,7 +65,6 @@/* USB xHCI HOST */ #define CONFIG_USB_HOST #define CONFIG_USB_XHCI_DWC3 -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/cm_t43.h +0 -1
@@ -61,7 +61,6 @@/* USB support */ #define CONFIG_USB_HOST -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_STORAGE
include/configs/dra7xx_evm.h +0 -1
@@ -211,7 +211,6 @@/* USB xHCI HOST */ #define CONFIG_USB_HOST -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE
include/configs/ds414.h +1 -2
@@ -71,12 +71,11 @@* - USB init fails, controller does not respond in time */ #if 0 #undef CONFIG_DM_USB -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_PCI #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#endif -#if !defined(CONFIG_USB_XHCI ) +#if !defined(CONFIG_USB_XHCI_HCD )#define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_MARVELL #define CONFIG_EHCI_IS_TDI
include/configs/exynos5420-common.h +0 -1
@@ -48,7 +48,6 @@*/ #define CONFIG_CORE_COUNT 0x8 -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_EXYNOS #endif /* __CONFIG_EXYNOS5420_H */
include/configs/ls1021aqds.h +0 -1
@@ -451,7 +451,6 @@ unsigned long get_board_ddr_clk(void);#ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 -#define CONFIG_USB_XHCI #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#endif
include/configs/ls1021atwr.h +0 -1
@@ -58,7 +58,6 @@#ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 -#define CONFIG_USB_XHCI #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#endif
include/configs/ls1043aqds.h +0 -1
@@ -388,7 +388,6 @@ unsigned long get_board_ddr_clk(void);/* USB */ #define CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 3
include/configs/ls1043ardb.h +0 -1
@@ -277,7 +277,6 @@/* USB */ #define CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 3
include/configs/ls2080aqds.h +0 -1
@@ -383,7 +383,6 @@ unsigned long get_board_ddr_clk(void);* USB */ #define CONFIG_HAS_FSL_XHCI_USB -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
include/configs/ls2080ardb.h +0 -1
@@ -316,7 +316,6 @@ unsigned long get_board_sys_clk(void);* USB */ #define CONFIG_HAS_FSL_XHCI_USB -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_FSL #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
include/configs/smdk5420.h +0 -1
@@ -31,7 +31,6 @@#define CONFIG_DEFAULT_CONSOLE "console=ttySAC1,115200n8\0"/* USB */ -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_EXYNOS /* DRAM Memory Banks */
include/configs/ti_armv7_keystone2.h +0 -1
@@ -191,7 +191,6 @@ "-(ubifs)"/* USB Configuration */ -#define CONFIG_USB_XHCI #define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_KEYSTONE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/xilinx_zynqmp.h +0 -1
@@ -102,7 +102,6 @@#if defined(CONFIG_ZYNQMP_USB )#define CONFIG_USB_XHCI_DWC3 -#define CONFIG_USB_XHCI #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 2/13 usb: move CONFIG_USB_XHCI to Kconfig with renaming
Quoted 7 lines · Masahiro Yamada
Move
CONFIG_USB_XHCIto defconfig files for all boards, renaming it intoCONFIG_USB_XHCI_HCD.As commented in the help of "config
USB_XHCI" entry, this has been a TODO for a long time; nowCONFIG_USB_XHCI_HCDandCONFIG_USB_XHCIhave been unified in favor of the former.
Quoted 7 lines
Note:
Some boards defineCONFIG_USB_XHCIin their headers withoutCONFIG_USB, which does not meet the "depends on" inKconfig. I addedCONFIG_USB=yfor those boards when converting. Otherwise, they would fail to build.Signed-off-by Masahiro Yamada <[email protected]>
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 3/13 usb: move CONFIG_USB_XHCI_DWC3 to Kconfig
In reply to Masahiro YamadaCreate an entry for "config USB_XHCI_DWC3" in Kconfig and switch over to it for all boards.
---
Changes in v2:
- Newly added
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/am57xx_evm_defconfig | 1 + configs/am57xx_evm_nodt_defconfig | 1 + configs/cm_t43_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/k2e_evm_defconfig | 1 + configs/k2g_evm_defconfig | 1 + configs/k2hk_evm_defconfig | 1 + configs/k2l_evm_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 1 + configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021aqds_nor_defconfig | 1 + configs/ls1021aqds_nor_lpuart_defconfig | 1 + configs/ls1021aqds_qspi_defconfig | 1 + configs/ls1021aqds_sdcard_ifc_defconfig | 1 + configs/ls1021aqds_sdcard_qspi_defconfig | 1 + configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021atwr_nor_defconfig | 1 + configs/ls1021atwr_nor_lpuart_defconfig | 1 + configs/ls1021atwr_qspi_defconfig | 1 + configs/ls1021atwr_sdcard_ifc_defconfig | 1 + configs/ls1021atwr_sdcard_qspi_defconfig | 1 + configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 + configs/ls1043aqds_nand_defconfig | 1 + configs/ls1043aqds_nor_ddr3_defconfig | 1 + configs/ls1043aqds_qspi_defconfig | 1 + configs/ls1043aqds_sdcard_ifc_defconfig | 1 + configs/ls1043aqds_sdcard_qspi_defconfig | 1 + configs/ls1043ardb_SECURE_BOOT_defconfig | 1 + configs/ls1043ardb_defconfig | 1 + configs/ls1043ardb_nand_defconfig | 1 + configs/ls1043ardb_sdcard_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + configs/odroid-xu3_defconfig | 1 + configs/peach-pi_defconfig | 1 + configs/peach-pit_defconfig | 1 + configs/smdk5420_defconfig | 1 + configs/xilinx_zynqmp_ep_defconfig | 1 + configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 + configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1 + configs/xilinx_zynqmp_zcu102_defconfig | 1 + configs/xilinx_zynqmp_zcu102_revB_defconfig | 1 + drivers/usb/host/Kconfig | 6 ++++++ include/configs/am43xx_evm.h | 1 - include/configs/am57xx_evm.h | 1 - include/configs/cm_t43.h | 1 - include/configs/dra7xx_evm.h | 1 - include/configs/exynos5-common.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atwr.h | 1 - include/configs/ls1043aqds.h | 1 - include/configs/ls1043ardb.h | 1 - include/configs/ls2080aqds.h | 1 - include/configs/ls2080ardb.h | 1 - include/configs/ti_armv7_keystone2.h | 1 - include/configs/xilinx_zynqmp.h | 1 - 73 files changed, 65 insertions(+), 13 deletions(-)
configs/am437x_gp_evm_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am437x_sk_evm_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_defconfig +1 -0
@@ -30,6 +30,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_ethboot_defconfig +1 -0
@@ -29,6 +29,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
@@ -28,6 +28,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
@@ -29,6 +29,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/am57xx_evm_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_SPI_FLASH_BAR=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/am57xx_evm_nodt_defconfig +1 -0
@@ -24,4 +24,5 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +1 -0
@@ -39,4 +39,5 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/dra72_evm_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra74_evm_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_TIMER=y CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_qspiboot_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/dra7xx_evm_uart3_defconfig +1 -0
@@ -33,6 +33,7 @@ CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_OMAP=y
configs/k2e_evm_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/k2g_evm_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_REMOTEPROC_TI_POWER=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/k2hk_evm_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/k2l_evm_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_DM_ETH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_ddr4_nor_defconfig +1 -0
@@ -26,3 +26,4 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_ddr4_nor_lpuart_defconfig +1 -0
@@ -26,3 +26,4 @@ CONFIG_E1000=y CONFIG_FSL_LPUART=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_nand_defconfig +1 -0
@@ -23,4 +23,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/ls1021aqds_nor_SECURE_BOOT_defconfig +1 -0
@@ -24,5 +24,6 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y CONFIG_OF_LIBFDT=y
configs/ls1021aqds_nor_defconfig +1 -0
@@ -25,3 +25,4 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_nor_lpuart_defconfig +1 -0
@@ -26,3 +26,4 @@ CONFIG_E1000=y CONFIG_FSL_LPUART=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_qspi_defconfig +1 -0
@@ -32,3 +32,4 @@ CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_sdcard_ifc_defconfig +1 -0
@@ -24,3 +24,4 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021aqds_sdcard_qspi_defconfig +1 -0
@@ -31,3 +31,4 @@ CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021atwr_nor_SECURE_BOOT_defconfig +1 -0
@@ -24,5 +24,6 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y CONFIG_OF_LIBFDT=y
configs/ls1021atwr_nor_defconfig +1 -0
@@ -25,3 +25,4 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021atwr_nor_lpuart_defconfig +1 -0
@@ -26,3 +26,4 @@ CONFIG_E1000=y CONFIG_FSL_LPUART=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021atwr_qspi_defconfig +1 -0
@@ -33,3 +33,4 @@ CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1021atwr_sdcard_ifc_defconfig +1 -0
@@ -22,4 +22,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/ls1021atwr_sdcard_qspi_defconfig +1 -0
@@ -33,3 +33,4 @@ CONFIG_FSL_DSPI=y CONFIG_FSL_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_defconfig +1 -0
@@ -27,3 +27,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_lpuart_defconfig +1 -0
@@ -28,3 +28,4 @@ CONFIG_SPI_FLASH=y CONFIG_FSL_LPUART=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_nand_defconfig +1 -0
@@ -28,3 +28,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_nor_ddr3_defconfig +1 -0
@@ -26,3 +26,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_qspi_defconfig +1 -0
@@ -28,3 +28,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_sdcard_ifc_defconfig +1 -0
@@ -28,3 +28,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043aqds_sdcard_qspi_defconfig +1 -0
@@ -29,3 +29,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043ardb_SECURE_BOOT_defconfig +1 -0
@@ -23,4 +23,5 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y
configs/ls1043ardb_defconfig +1 -0
@@ -23,3 +23,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043ardb_nand_defconfig +1 -0
@@ -24,3 +24,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls1043ardb_sdcard_defconfig +1 -0
@@ -24,3 +24,4 @@ CONFIG_SPI_FLASH=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls2080aqds_SECURE_BOOT_defconfig +1 -0
@@ -31,4 +31,5 @@ CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y
configs/ls2080aqds_defconfig +1 -0
@@ -31,3 +31,4 @@ CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls2080aqds_nand_defconfig +1 -0
@@ -24,4 +24,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/ls2080ardb_SECURE_BOOT_defconfig +1 -0
@@ -31,4 +31,5 @@ CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y
configs/ls2080ardb_defconfig +1 -0
@@ -31,3 +31,4 @@ CONFIG_SYS_NS16550=y CONFIG_FSL_DSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y
configs/ls2080ardb_nand_defconfig +1 -0
@@ -24,4 +24,5 @@ CONFIG_E1000=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y
configs/odroid-xu3_defconfig +1 -0
@@ -37,6 +37,7 @@ CONFIG_DM_REGULATOR=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_DWC3_PHY_SAMSUNG=y
configs/peach-pi_defconfig +1 -0
@@ -56,6 +56,7 @@ CONFIG_TPM_TIS_INFINEON=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_TPM=y
configs/peach-pit_defconfig +1 -0
@@ -56,6 +56,7 @@ CONFIG_TPM_TIS_INFINEON=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_TPM=y
configs/smdk5420_defconfig +1 -0
@@ -37,4 +37,5 @@ CONFIG_EXYNOS_SPI=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_VIDEO_BRIDGE=y
configs/xilinx_zynqmp_ep_defconfig +1 -0
@@ -48,6 +48,7 @@ CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_GADGET=y
configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zcu102_defconfig +1 -0
@@ -40,6 +40,7 @@ CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
configs/xilinx_zynqmp_zcu102_revB_defconfig +1 -0
@@ -40,6 +40,7 @@ CONFIG_DM_ETH=y CONFIG_ZYNQ_GEM=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y CONFIG_USB_ULPI_VIEWPORT=y
drivers/usb/host/Kconfig +6 -0
@@ -18,6 +18,12 @@ config USB_XHCI_UNIPHIER ---help--- Enables support for the on-chip xHCI controller on UniPhier SoCs. +config USB_XHCI_DWC3 + bool "DesignWare USB3 DRD Core Support" + help + Say Y or if your system has a Dual Role SuperSpeed + USB controller based on the DesignWare USB3 IP Core. + endif config USB_OHCI_GENERIC
include/configs/am43xx_evm.h +0 -1
@@ -108,7 +108,6 @@#if defined(CONFIG_SPL_USB_HOST_SUPPORT ) || !defined(CONFIG_SPL_BUILD )#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1#define CONFIG_USB_HOST -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/am57xx_evm.h +0 -1
@@ -64,7 +64,6 @@/* USB xHCI HOST */ #define CONFIG_USB_HOST -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/cm_t43.h +0 -1
@@ -62,7 +62,6 @@/* USB support */ #define CONFIG_USB_HOST #define CONFIG_USB_XHCI_OMAP -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_STORAGE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_OMAP_USB_PHY
include/configs/dra7xx_evm.h +0 -1
@@ -211,7 +211,6 @@/* USB xHCI HOST */ #define CONFIG_USB_HOST -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_OMAP #define CONFIG_USB_STORAGE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/exynos5-common.h +0 -1
@@ -157,7 +157,6 @@/* USB */ #define CONFIG_USB_STORAGE -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
include/configs/ls1021aqds.h +0 -1
@@ -450,7 +450,6 @@ unsigned long get_board_ddr_clk(void);#ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#endif
include/configs/ls1021atwr.h +0 -1
@@ -57,7 +57,6 @@#ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#endif
include/configs/ls1043aqds.h +0 -1
@@ -389,7 +389,6 @@ unsigned long get_board_ddr_clk(void);#define CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 3#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
include/configs/ls1043ardb.h +0 -1
@@ -278,7 +278,6 @@#define CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 3#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
include/configs/ls2080aqds.h +0 -1
@@ -384,7 +384,6 @@ unsigned long get_board_ddr_clk(void);*/ #define CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
include/configs/ls2080ardb.h +0 -1
@@ -317,7 +317,6 @@ unsigned long get_board_sys_clk(void);*/ #define CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_FSL -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
include/configs/ti_armv7_keystone2.h +0 -1
@@ -191,7 +191,6 @@ "-(ubifs)"/* USB Configuration */ -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_XHCI_KEYSTONE #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
include/configs/xilinx_zynqmp.h +0 -1
@@ -101,7 +101,6 @@#define CONFIG_SYS_LOAD_ADDR 0x8000000#if defined(CONFIG_ZYNQMP_USB ) -#define CONFIG_USB_XHCI_DWC3 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 3/13 usb: move CONFIG_USB_XHCI_DWC3 to Kconfig
Quoted 4 lines · Masahiro Yamada
Create an entry for "config
USB_XHCI_DWC3" inKconfigand switch over to it for all boards.Signed-off-by Masahiro Yamada <[email protected]>
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 4/13 usb: xhci: add struct devrequest declaration to xhci.h
In reply to Masahiro YamadaIf xhci.h is included without include/usb.h, the compiler complains like follows:
warning: 'struct devrequest' declared inside parameter list
We have two options to teach the compiler that devrequest is a structure:
[1] Declare "struct devrequest;" in xhci.h
[2] Include <include/usb.h> from xhci.h
This commit takes [1] because nothing else in xhci.h depends on include/usb.h. [2] would require the compiler additional header parsing.
---
Changes in v2:
- Rephrase git-log
drivers/usb/host/xhci.h | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/host/xhci.h +2 -0
@@ -1252,6 +1252,8 @@ void xhci_acknowledge_event(struct xhci_ctrl *ctrl);union xhci_trb *xhci_wait_for_event (struct xhci_ctrl *ctrl,trb_type expected);int xhci_bulk_tx (struct usb_device *udev,unsigned long pipe,int length,void *buffer); + +struct devrequest ;int xhci_ctrl_tx (struct usb_device *udev,unsigned long pipe,struct devrequest *req,int length,void *buffer);int xhci_check_maxpacket (struct usb_device *udev);
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 4/13 usb: xhci: add struct devrequest declaration to xhci.h
Quoted 9 lines · Masahiro Yamada
If
xhci.his included withoutinclude/usb.h, the compiler complains like follows:
warning: 'struct devrequest' declared inside parameter listWe have two options to teach the compiler that devrequest is a structure:
[1] Declare "struct devrequest;" in
xhci.h
Quoted 7 lines
[2] Include <
include/usb.h> fromxhci.hThis commit takes [1] because nothing else in
xhci.hdepends oninclude/usb.h. [2] would require the compiler additional header parsing.Signed-off-by Masahiro Yamada <[email protected]>
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 5/13 usb: dwc3: change DWC3 core support code into a driver
In reply to Masahiro YamadaSynopsys DWC3 IP generally works with an SoC-specific glue layer. DT binding for that is like this:
usb3_glue {
compatible = "foo,dwc3";
... usb3 {
compatible = "snps,dwc3";
...
};};
The glue layer initializes some SoC-specific parts, then populates the child DWC3 core. To see how it works, refer to
drivers/usb/dwc3/dwc3-exynos.c
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-st.c
of Linux Kernel.
This commit implements a driver compatible with "snps,dwc3", allowing to use the same binding in U-Boot. The glue layer can be simply implemented based on Simple Bus Uclass.
---
Changes in v2: None
drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-dwc3.c +70 -1
@@ -9,8 +9,13 @@*/ #include <common.h> -#include <asm/io.h> +#include <dm/device.h> +#include <mapmem.h> +#include <linux/io.h> #include <linux/usb/dwc3.h> +#include <linux/sizes.h> + +#include "xhci.h" void dwc3_set_mode (struct dwc3 *dwc3_reg,u32 mode) {
@@ -97,3 +102,67 @@ void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)setbits_le32 (&dwc3_reg->g_fladj,GFLADJ_30MHZ_REG_SEL |GFLADJ_30MHZ (val)); } + +struct dwc3_priv { +struct xhci_ctrl ctrl;/* should be the first member */ +void __iomem *regs; +}; + +static int dwc3_probe (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); +struct xhci_hccr *hccr; +struct xhci_hcor *hcor; +fdt_addr_t base; +int ret; + + base =dev_get_addr (dev); +if (base ==FDT_ADDR_T_NONE ) +return -EINVAL ; + + priv->regs =map_sysmem (base,SZ_32K ); +if (!priv->regs) +return -ENOMEM ; + + hccr = priv->regs; + + hcor = priv->regs +HC_LENGTH (xhci_readl (&hccr->cr_capbase)); + + ret =dwc3_core_init (priv->regs +DWC3_REG_OFFSET ); +if (ret) { +puts ("XHCI: failed to initialize controller\n" ); +return ret; + } + +/* We are hard-coding DWC3 core to Host Mode */ +dwc3_set_mode (priv->regs +DWC3_REG_OFFSET ,DWC3_GCTL_PRTCAP_HOST ); + +return xhci_register (dev, hccr, hcor); +} + +static int dwc3_remove (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); + +xhci_deregister (dev); +unmap_sysmem (priv->regs); + +return 0 ; +} + +static const struct udevice_id of_dwc3_match[] = { + { .compatible ="snps,dwc3" }, + { .compatible ="synopsys,dwc3" }, + {/* sentinel */ } +}; + +U_BOOT_DRIVER (dwc3) = { + .name ="dwc3" , + .id =UCLASS_USB , + .of_match = of_dwc3_match, + .probe = dwc3_probe, + .remove = dwc3_remove, + .ops = &xhci_usb_ops, + .priv_auto_alloc_size =sizeof (struct dwc3_priv ), + .flags =DM_FLAG_ALLOC_PRIV_DMA , +};
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 5/13 usb: dwc3: change DWC3 core support code into a driver
Quoted 23 lines · Masahiro Yamada
Synopsys DWC3 IP generally works with an SoC-specific glue layer. DT binding for that is like this:
usb3_glue { compatible = "foo,dwc3"; ...usb3 { compatible = "snps,dwc3"; ... };};
The glue layer initializes some SoC-specific parts, then populates the child DWC3 core. To see how it works, refer to
drivers/usb/dwc3/dwc3-exynos.c
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-st.cof Linux Kernel.
Quoted 7 lines
This commit implements a driver compatible with "snps,dwc3", allowing to use the same binding in U-Boot. The glue layer can be simply implemented based on Simple Bus Uclass.
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Marek Vasut <[email protected]>---
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 5/13 usb: dwc3: change DWC3 core support code into a driver
In reply to Masahiro YamadaHi Masahiro,
Quoted 27 lines · Masahiro Yamada
Synopsys DWC3 IP generally works with an SoC-specific glue layer. DT binding for that is like this:
usb3_glue { compatible = "foo,dwc3"; ...usb3 { compatible = "snps,dwc3"; ... };};
The glue layer initializes some SoC-specific parts, then populates the child DWC3 core. To see how it works, refer to
drivers/usb/dwc3/dwc3-exynos.c
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-st.cof Linux Kernel.
This commit implements a driver compatible with "snps,dwc3", allowing to use the same binding in U-Boot. The glue layer can be simply implemented based on Simple Bus Uclass.
Quoted 7 lines
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Marek Vasut <[email protected]>---
Changes in v2: None
drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++++++++++++++++++++++++++++++++-
"snps,dwc3" compatible is for the dual-role controller that implements both device and host controllers. So calling the driver xhci-dwc3.c is a bit misleading.
Quoted 49 lines
1 file changed, 70 insertions(+), 1 deletion(-)drivers/usb/host/xhci-dwc3.c +30
-1@@ -9,8 +9,13 @@*/ #include <common.h> -#include <asm/io.h> +#include <dm/device.h> +#include <mapmem.h> +#include <linux/io.h> #include <linux/usb/dwc3.h> +#include <linux/sizes.h> + +#include "xhci.h" void dwc3_set_mode (struct dwc3 *dwc3_reg,u32 mode) {@@ -97,3 +102,67 @@ void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)setbits_le32 (&dwc3_reg->g_fladj,GFLADJ_30MHZ_REG_SEL |GFLADJ_30MHZ (val)); } + +struct dwc3_priv { +struct xhci_ctrl ctrl;/* should be the first member */ +void __iomem *regs; +}; + +static int dwc3_probe (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); +struct xhci_hccr *hccr; +struct xhci_hcor *hcor; +fdt_addr_t base; +int ret; + + base =dev_get_addr (dev); +if (base ==FDT_ADDR_T_NONE ) +return -EINVAL ; + + priv->regs =map_sysmem (base,SZ_32K ); +if (!priv->regs) +return -ENOMEM ; + + hccr = priv->regs; +
drivers/usb/host/xhci-dwc3.c void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val) · line 138
Quoted 10 lines
drivers/usb/host/xhci-dwc3.c +10
-0+ hcor = priv->regs +HC_LENGTH (xhci_readl (&hccr->cr_capbase)); + + ret =dwc3_core_init (priv->regs +DWC3_REG_OFFSET ); +if (ret) { +puts ("XHCI: failed to initialize controller\n" ); +return ret; + } + +/* We are hard-coding DWC3 core to Host Mode */ +dwc3_set_mode (priv->regs +DWC3_REG_OFFSET ,DWC3_GCTL_PRTCAP_HOST );
Why are we hard-coding it to host mode? We need to take into account the dr_mode DT property and the Kconfig options to decide which mode we can operate in.
Quoted 21 lines
drivers/usb/host/xhci-dwc3.c +20
-0+ +return xhci_register (dev, hccr, hcor); +} + +static int dwc3_remove (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); + +xhci_deregister (dev); +unmap_sysmem (priv->regs); + +return 0 ; +} + +static const struct udevice_id of_dwc3_match[] = { + { .compatible ="snps,dwc3" }, + { .compatible ="synopsys,dwc3" }, + {/* sentinel */ } +}; +
drivers/usb/host/xhci-dwc3.c void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val) · line 168
Quoted 10 lines
drivers/usb/host/xhci-dwc3.c +10
-0+U_BOOT_DRIVER (dwc3) = { + .name ="dwc3" , + .id =UCLASS_USB , + .of_match = of_dwc3_match, + .probe = dwc3_probe, + .remove = dwc3_remove, + .ops = &xhci_usb_ops, + .priv_auto_alloc_size =sizeof (struct dwc3_priv ), + .flags =DM_FLAG_ALLOC_PRIV_DMA , +};
cheers,
-roger
PATCH v2 5/13 usb: dwc3: change DWC3 core support code into a driver
Hi Roger,
2016-05-17 17:20 GMT+09:00 Roger Quadros <[email protected]>:
Quoted 34 lines
Hi Masahiro,
Quoted 31 lines · Masahiro Yamada
Synopsys DWC3 IP generally works with an SoC-specific glue layer. DT binding for that is like this:
usb3_glue { compatible = "foo,dwc3"; ...usb3 { compatible = "snps,dwc3"; ... };};
The glue layer initializes some SoC-specific parts, then populates the child DWC3 core. To see how it works, refer to
drivers/usb/dwc3/dwc3-exynos.c
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-st.cof Linux Kernel.
This commit implements a driver compatible with "snps,dwc3", allowing to use the same binding in U-Boot. The glue layer can be simply implemented based on Simple Bus Uclass.
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Marek Vasut <[email protected]>---
Quoted 6 lines
Quoted 3 lines
Changes in v2: None
drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++++++++++++++++++++++++++++++++-"snps,dwc3" compatible is for the dual-role controller that implements both device and host controllers.
I know this fact.
The "snps,dwc3" on my SoC only works in host mode, though.
Quoted 1 line
So calling the driver
xhci-dwc3.cis a bit misleading.
I think we have separate work for
- drivers/usb/host/xhci-dwc3.c (only for host mode)
- drivers/usb/dwc3/* (currently, for gadget ??)
This is unfortunate, though.
Quoted 53 lines
Quoted 53 lines
1 file changed, 70 insertions(+), 1 deletion(-)drivers/usb/host/xhci-dwc3.c +34
-1@@ -9,8 +9,13 @@*/ #include <common.h> -#include <asm/io.h> +#include <dm/device.h> +#include <mapmem.h> +#include <linux/io.h> #include <linux/usb/dwc3.h> +#include <linux/sizes.h> + +#include "xhci.h" void dwc3_set_mode (struct dwc3 *dwc3_reg,u32 mode) {@@ -97,3 +102,67 @@ void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)setbits_le32 (&dwc3_reg->g_fladj,GFLADJ_30MHZ_REG_SEL |GFLADJ_30MHZ (val)); } + +struct dwc3_priv { +struct xhci_ctrl ctrl;/* should be the first member */ +void __iomem *regs; +}; + +static int dwc3_probe (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); +struct xhci_hccr *hccr; +struct xhci_hcor *hcor; +fdt_addr_t base; +int ret; + + base =dev_get_addr (dev); +if (base ==FDT_ADDR_T_NONE ) +return -EINVAL ; + + priv->regs =map_sysmem (base,SZ_32K ); +if (!priv->regs) +return -ENOMEM ; + + hccr = priv->regs; + + hcor = priv->regs +HC_LENGTH (xhci_readl (&hccr->cr_capbase)); + + ret =dwc3_core_init (priv->regs +DWC3_REG_OFFSET ); +if (ret) {
Quoted 8 lines
drivers/usb/host/xhci-dwc3.c void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val) · line 138
Quoted 6 lines
drivers/usb/host/xhci-dwc3.c +6
-0+puts ("XHCI: failed to initialize controller\n" ); +return ret; + } + +/* We are hard-coding DWC3 core to Host Mode */ +dwc3_set_mode (priv->regs +DWC3_REG_OFFSET ,DWC3_GCTL_PRTCAP_HOST );Why are we hard-coding it to host mode?
Because this file is used for host mode.
It is enabled by CONFIG_USB_XHCI_DWC3, like follows.
obj-$(CONFIG_USB_XHCI_DWC3) += xhci-dwc3.o
Boards defining CONFIG_USB_XHCI_DWC3 expect
this driver works in the host mode, I guess.
Quoted 3 lines
We need to take into account
thedr_modeDT property and theKconfigoptions to decide which mode we can operate in.
I thought drivers/usb/dwc3/* was working only for GADGET, because currently USB_DWC3 depends on (USB && USB_GADGET).
As far as I understand, it will work for host mode with your series applied. Correct?
If so, cool!
I am happy to move to drivers/usb/dwc3/*.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH v2 5/13 usb: dwc3: change DWC3 core support code into a driver
Quoted 53 lines · Masahiro Yamada
Hi Roger,
2016-05-17 17:20 GMT+09:00 Roger Quadros <[email protected]>:
Quoted 34 lines
Hi Masahiro,
Quoted 31 lines · Masahiro Yamada
Synopsys DWC3 IP generally works with an SoC-specific glue layer. DT binding for that is like this:
usb3_glue { compatible = "foo,dwc3"; ...usb3 { compatible = "snps,dwc3"; ... };};
The glue layer initializes some SoC-specific parts, then populates the child DWC3 core. To see how it works, refer to
drivers/usb/dwc3/dwc3-exynos.c
drivers/usb/dwc3/dwc3-keystone.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-st.cof Linux Kernel.
This commit implements a driver compatible with "snps,dwc3", allowing to use the same binding in U-Boot. The glue layer can be simply implemented based on Simple Bus Uclass.
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Marek Vasut <[email protected]>---
Quoted 6 lines
Quoted 3 lines
Changes in v2: None
drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++++++++++++++++++++++++++++++++-"snps,dwc3" compatible is for the dual-role controller that implements both device and host controllers.
I know this fact.
The "snps,dwc3" on my SoC only works in host mode, though.Quoted 1 line
So calling the driver
xhci-dwc3.cis a bit misleading.
Quoted 5 lines
I think we have separate work for
-drivers/usb/host/xhci-dwc3.c(only for host mode)
-drivers/usb/dwc3/*(currently, for gadget ??)This is unfortunate, though.
If we use the same compatible for both host and gadget, how do we specify in the device tree which driver to probe?
Quoted 64 lines
Quoted 55 lines
Quoted 55 lines
1 file changed, 70 insertions(+), 1 deletion(-)drivers/usb/host/xhci-dwc3.c +34
-1@@ -9,8 +9,13 @@*/ #include <common.h> -#include <asm/io.h> +#include <dm/device.h> +#include <mapmem.h> +#include <linux/io.h> #include <linux/usb/dwc3.h> +#include <linux/sizes.h> + +#include "xhci.h" void dwc3_set_mode (struct dwc3 *dwc3_reg,u32 mode) {@@ -97,3 +102,67 @@ void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val)setbits_le32 (&dwc3_reg->g_fladj,GFLADJ_30MHZ_REG_SEL |GFLADJ_30MHZ (val)); } + +struct dwc3_priv { +struct xhci_ctrl ctrl;/* should be the first member */ +void __iomem *regs; +}; + +static int dwc3_probe (struct udevice *dev) +{ +struct dwc3_priv *priv =dev_get_priv (dev); +struct xhci_hccr *hccr; +struct xhci_hcor *hcor; +fdt_addr_t base; +int ret; + + base =dev_get_addr (dev); +if (base ==FDT_ADDR_T_NONE ) +return -EINVAL ; + + priv->regs =map_sysmem (base,SZ_32K ); +if (!priv->regs) +return -ENOMEM ; + + hccr = priv->regs; + + hcor = priv->regs +HC_LENGTH (xhci_readl (&hccr->cr_capbase)); + + ret =dwc3_core_init (priv->regs +DWC3_REG_OFFSET ); +if (ret) {Quoted 8 lines
drivers/usb/host/xhci-dwc3.c void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val) · line 138
Quoted 6 lines
drivers/usb/host/xhci-dwc3.c +6
-0+puts ("XHCI: failed to initialize controller\n" ); +return ret; + } + +/* We are hard-coding DWC3 core to Host Mode */ +dwc3_set_mode (priv->regs +DWC3_REG_OFFSET ,DWC3_GCTL_PRTCAP_HOST );Why are we hard-coding it to host mode?
Quoted 7 lines
Because this file is used for host mode.
It is enabled byCONFIG_USB_XHCI_DWC3, like follows.obj-$(CONFIG_USB_XHCI_DWC3) += xhci-dwc3.o
Boards defining
CONFIG_USB_XHCI_DWC3expect
this driver works in the host mode, I guess.
OK as part of code will only be called for host mode.
Quoted 7 lines
Quoted 5 lines
We need to take into account
thedr_modeDT property and theKconfigoptions to decide which mode we can operate in.
Quoted 5 lines
I thought
drivers/usb/dwc3/*was working only for GADGET, because currentlyUSB_DWC3depends on (USB &&USB_GADGET).As far as I understand, it will work for host mode with your series applied. Correct?
I'm still unsure as to how all this fits in.
Quoted 4 lines
If so, cool!
I am happy to move todrivers/usb/dwc3/*.
Maybe Marek can share his view.
cheers,
-roger
PATCH v2 6/13 usb: dwc3: add UniPhier specific glue layer
In reply to Masahiro YamadaAdd UniPhier platform specific glue layer to support USB3 Host mode on Synopsys DWC3 IP.
---
Changes in v2:
- Fix build error
- Add missing PHY reset deassert
drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 + drivers/usb/host/dwc3-uniphier.c | 119 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 drivers/usb/host/dwc3-uniphier.c
drivers/usb/host/Kconfig +7 -0
@@ -24,6 +24,13 @@ config USB_XHCI_DWC3 Say Y or if your system has a Dual Role SuperSpeed USB controller based on the DesignWare USB3 IP Core. +config USB_DWC3_UNIPHIER + bool "DesignWare USB3 Host Support on UniPhier Platforms" + depends on ARCH_UNIPHIER && USB_XHCI_DWC3 + help + Support of USB2/3 functionality in Socionext UniPhier platforms. + Say 'Y' here if you have one such device. + endif config USB_OHCI_GENERIC
drivers/usb/host/Makefile +1 -0
@@ -56,6 +56,7 @@ obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o # xhci obj-$(CONFIG_USB_XHCI_HCD) += xhci.o xhci-mem.o xhci-ring.o obj-$(CONFIG_USB_XHCI_DWC3) += xhci-dwc3.o +obj-$(CONFIG_USB_DWC3_UNIPHIER) += dwc3-uniphier.o obj-$(CONFIG_USB_XHCI_ZYNQMP) += xhci-zynqmp.o obj-$(CONFIG_USB_XHCI_KEYSTONE) += xhci-keystone.o obj-$(CONFIG_USB_XHCI_EXYNOS) += xhci-exynos5.o
drivers/usb/host/dwc3-uniphier.c new file +119 -0
119 lines not on this page · raw message
Signature · 1 line
1.9.1
Marek Vasut
AppliedPATCH v2 6/13 usb: dwc3: add UniPhier specific glue layer
Quoted 10 lines · Masahiro Yamada
Add UniPhier platform specific glue layer to support USB3 Host mode on Synopsys DWC3 IP.
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Marek Vasut <[email protected]>---
Changes in v2:
- Fix build error
- Add missing PHY reset deassert
Applied, thanks!
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 7/13 ARM: uniphier: switch over to USB DM
In reply to Masahiro YamadaNow UniPhier platform can completely switch over to Driver Model USB, which allows ARCH_UNIPHIER select DM_USB. Drop CONFIG_DM_USB=y of two of UniPhier defconfig files.
---
Changes in v2: None
arch/arm/Kconfig | 1 + configs/uniphier_ld4_sld8_defconfig | 1 - configs/uniphier_sld3_defconfig | 1 - 3 files changed, 1 insertion(+), 2 deletions(-)
arch/arm/Kconfig +1 -0
@@ -723,6 +723,7 @@ config ARCH_UNIPHIER select DM_SERIAL select DM_I2C select DM_MMC + select DM_USB help Support for UniPhier SoC family developed by Socionext Inc. (formerly, System LSI Business Division of Panasonic Corporation)
configs/uniphier_ld4_sld8_defconfig +0 -1
@@ -31,7 +31,6 @@ CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_UNIPHIER_SERIAL=y CONFIG_USB=y -CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y
configs/uniphier_sld3_defconfig +0 -1
@@ -28,7 +28,6 @@ CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8 CONFIG_SPL_NAND_DENALI=y CONFIG_UNIPHIER_SERIAL=y CONFIG_USB=y -CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y
Signature · 1 line
1.9.1
PATCH v2 8/13 ARM: uniphier: enable DWC3 xHCI driver
In reply to Masahiro YamadaEnable CONFIGs for the DWC3 core and UniPhier specific glue layer.
---
Changes in v2: None
configs/uniphier_ld20_defconfig | 2 ++ configs/uniphier_pro4_defconfig | 2 ++ configs/uniphier_pxs2_ld6b_defconfig | 2 ++ 3 files changed, 6 insertions(+)
configs/uniphier_ld20_defconfig +2 -0
@@ -27,4 +27,6 @@ CONFIG_SPL_PINCTRL=y CONFIG_UNIPHIER_SERIAL=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_DWC3_UNIPHIER=y CONFIG_USB_STORAGE=y
configs/uniphier_pro4_defconfig +2 -0
@@ -31,4 +31,6 @@ CONFIG_SPL_PINCTRL=y CONFIG_UNIPHIER_SERIAL=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_DWC3_UNIPHIER=y CONFIG_USB_STORAGE=y
configs/uniphier_pxs2_ld6b_defconfig +2 -0
@@ -32,4 +32,6 @@ CONFIG_SPL_PINCTRL=y CONFIG_UNIPHIER_SERIAL=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_DWC3_UNIPHIER=y CONFIG_USB_STORAGE=y
Signature · 1 line
1.9.1
PATCH v2 9/13 usb: uniphier: remove UniPhier xHCI driver
In reply to Masahiro YamadaUniPhier platform switched to DWC3 core with UniPhier specific glue layer to support USB3. This pre-DM driver is no longer needed.
---
Changes in v2: None
drivers/usb/host/Kconfig | 7 ---- drivers/usb/host/Makefile | 1 - drivers/usb/host/xhci-uniphier.c | 85 ---------------------------------------- include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 5 files changed, 95 deletions(-) delete mode 100644 drivers/usb/host/xhci-uniphier.c
drivers/usb/host/Kconfig +0 -7
@@ -11,13 +11,6 @@ config USB_XHCI_HCD if USB_XHCI_HCD -config USB_XHCI_UNIPHIER - bool "Support for UniPhier on-chip xHCI USB controller" - depends on ARCH_UNIPHIER - default y - ---help--- - Enables support for the on-chip xHCI controller on UniPhier SoCs. - config USB_XHCI_DWC3 bool "DesignWare USB3 DRD Core Support" help
drivers/usb/host/Makefile +0 -1
@@ -63,7 +63,6 @@ obj-$(CONFIG_USB_XHCI_EXYNOS) += xhci-exynos5.o obj-$(CONFIG_USB_XHCI_FSL) += xhci-fsl.o obj-$(CONFIG_USB_XHCI_OMAP) += xhci-omap.o obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o -obj-$(CONFIG_USB_XHCI_UNIPHIER) += xhci-uniphier.o # designware obj-$(CONFIG_USB_DWC2) += dwc2.o
drivers/usb/host/xhci-uniphier.c deleted +0 -85
85 lines not on this page · raw message
include/fdtdec.h +0 -1
@@ -158,7 +158,6 @@ enum fdt_compat_id {COMPAT_AMS_AS3722 ,/* AMS AS3722 PMIC */ COMPAT_INTEL_ICH_SPI ,/* Intel ICH7/9 SPI controller */ COMPAT_INTEL_QRK_MRC ,/* Intel Quark MRC */ -COMPAT_SOCIONEXT_XHCI ,/* Socionext UniPhier xHCI */ COMPAT_INTEL_PCH ,/* Intel PCH */ COMPAT_ALTERA_SOCFPGA_DWMAC ,/* SoCFPGA Ethernet controller */ COMPAT_ALTERA_SOCFPGA_DWMMC, /* SoCFPGA DWMMC controller */
lib/fdtdec.c +0 -1
@@ -63,7 +63,6 @@ static const char * const compat_names[COMPAT_COUNT] = {COMPAT (AMS_AS3722 ,"ams,as3722" ),COMPAT (INTEL_ICH_SPI ,"intel,ich-spi" ),COMPAT (INTEL_QRK_MRC ,"intel,quark-mrc" ), -COMPAT (SOCIONEXT_XHCI ,"socionext,uniphier-xhci" ),COMPAT (COMPAT_INTEL_PCH ,"intel,bd82x6x" ),COMPAT (ALTERA_SOCFPGA_DWMAC ,"altr,socfpga-stmmac" ), COMPAT(ALTERA_SOCFPGA_DWMMC, "altr,socfpga-dw-mshc"),
Signature · 1 line
1.9.1
PATCH v2 10/13 ARM: uniphier: delete unnecessary xHCI pin-mux settings
In reply to Masahiro YamadaNow UniPhier platform switched over to the DM-based xHCI driver. The pin-muxing for that is automatically cared by the pinctrl driver. These ad-hoc pin-muxing code is no longer needed.
---
Changes in v2: None
arch/arm/mach-uniphier/pinctrl/pinctrl-ld20.c | 12 ------------ arch/arm/mach-uniphier/pinctrl/pinctrl-ld6b.c | 11 ----------- arch/arm/mach-uniphier/pinctrl/pinctrl-pro4.c | 7 ------- arch/arm/mach-uniphier/pinctrl/pinctrl-pro5.c | 7 ------- arch/arm/mach-uniphier/pinctrl/pinctrl-pxs2.c | 11 ----------- 5 files changed, 48 deletions(-)
arch/arm/mach-uniphier/pinctrl/pinctrl-ld20.c +0 -12
@@ -31,16 +31,4 @@ void uniphier_ld20_pin_init(void)sg_set_pinsel (17 ,0 ,8 ,4 );/* NFD7 -> NFD7 */ sg_set_iectrl_range (3 ,17 );#endif - -#ifdef CONFIG_USB_XHCI_UNIPHIER -sg_set_pinsel (46 ,0 ,8 ,4 );/* USB0VBUS -> USB0VBUS */ -sg_set_pinsel (47 ,0 ,8 ,4 );/* USB0OD -> USB0OD */ -sg_set_pinsel (48 ,0 ,8 ,4 );/* USB1VBUS -> USB1VBUS */ -sg_set_pinsel (49 ,0 ,8 ,4 );/* USB1OD -> USB1OD */ -sg_set_pinsel (50 ,0 ,8 ,4 );/* USB2VBUS -> USB2VBUS */ -sg_set_pinsel (51 ,0 ,8 ,4 );/* USB2OD -> USB2OD */ -sg_set_pinsel (52 ,0 ,8 ,4 );/* USB3VBUS -> USB3VBUS */ -sg_set_pinsel (53 ,0 ,8 ,4 );/* USB3OD -> USB3OD */ -sg_set_iectrl_range (46 ,53 ); -#endif }
arch/arm/mach-uniphier/pinctrl/pinctrl-ld6b.c +0 -11
@@ -32,15 +32,4 @@ void uniphier_ld6b_pin_init(void)sg_set_pinsel (45 ,0 ,8 ,4 );/* NFD6 -> NFD6 */ sg_set_pinsel (46 ,0 ,8 ,4 );/* NFD7 -> NFD7 */ #endif - -#ifdef CONFIG_USB_XHCI_UNIPHIER -sg_set_pinsel (56 ,0 ,8 ,4 );/* USB0VBUS -> USB0VBUS */ -sg_set_pinsel (57 ,0 ,8 ,4 );/* USB0OD -> USB0OD */ -sg_set_pinsel (58 ,0 ,8 ,4 );/* USB1VBUS -> USB1VBUS */ -sg_set_pinsel (59 ,0 ,8 ,4 );/* USB1OD -> USB1OD */ -sg_set_pinsel (60 ,0 ,8 ,4 );/* USB2VBUS -> USB2VBUS */ -sg_set_pinsel (61 ,0 ,8 ,4 );/* USB2OD -> USB2OD */ -sg_set_pinsel (62 ,0 ,8 ,4 );/* USB3VBUS -> USB3VBUS */ -sg_set_pinsel (63 ,0 ,8 ,4 );/* USB3OD -> USB3OD */ -#endif }
arch/arm/mach-uniphier/pinctrl/pinctrl-pro4.c +0 -7
@@ -33,12 +33,5 @@ void uniphier_pro4_pin_init(void)/* sg_set_pinsel(132, 1, 4, 8); */ /* TXD2 -> XNFCE1 */ #endif -#ifdef CONFIG_USB_XHCI_UNIPHIER -sg_set_pinsel (180 ,0 ,4 ,8 );/* USB0VBUS -> USB0VBUS */ -sg_set_pinsel (181 ,0 ,4 ,8 );/* USB0OD -> USB0OD */ -sg_set_pinsel (182 ,0 ,4 ,8 );/* USB1VBUS -> USB1VBUS */ -sg_set_pinsel (183 ,0 ,4 ,8 );/* USB1OD -> USB1OD */ -#endif -writel (1 ,SG_LOADPINCTRL ); }
arch/arm/mach-uniphier/pinctrl/pinctrl-pro5.c +0 -7
@@ -33,12 +33,5 @@ void uniphier_pro5_pin_init(void)sg_set_pinsel (35 ,0 ,4 ,8 );/* NFD7 -> NFD7 */ #endif -#ifdef CONFIG_USB_XHCI_UNIPHIER -sg_set_pinsel (124 ,0 ,4 ,8 );/* USB0VBUS -> USB0VBUS */ -sg_set_pinsel (125 ,0 ,4 ,8 );/* USB0OD -> USB0OD */ -sg_set_pinsel (126 ,0 ,4 ,8 );/* USB1VBUS -> USB1VBUS */ -sg_set_pinsel (127 ,0 ,4 ,8 );/* USB1OD -> USB1OD */ -#endif -writel (1 ,SG_LOADPINCTRL ); }
arch/arm/mach-uniphier/pinctrl/pinctrl-pxs2.c +0 -11
@@ -32,15 +32,4 @@ void uniphier_pxs2_pin_init(void)sg_set_pinsel (45 ,8 ,8 ,4 );/* NFD6 -> NFD6 */ sg_set_pinsel (46 ,8 ,8 ,4 );/* NFD7 -> NFD7 */ #endif - -#ifdef CONFIG_USB_XHCI_UNIPHIER -sg_set_pinsel (56 ,8 ,8 ,4 );/* USB0VBUS -> USB0VBUS */ -sg_set_pinsel (57 ,8 ,8 ,4 );/* USB0OD -> USB0OD */ -sg_set_pinsel (58 ,8 ,8 ,4 );/* USB1VBUS -> USB1VBUS */ -sg_set_pinsel (59 ,8 ,8 ,4 );/* USB1OD -> USB1OD */ -sg_set_pinsel (60 ,8 ,8 ,4 );/* USB2VBUS -> USB2VBUS */ -sg_set_pinsel (61 ,8 ,8 ,4 );/* USB2OD -> USB2OD */ -sg_set_pinsel (62 ,8 ,8 ,4 );/* USB3VBUS -> USB3VBUS */ -sg_set_pinsel (63 ,8 ,8 ,4 );/* USB3OD -> USB3OD */ -#endif }
Signature · 1 line
1.9.1
PATCH v2 11/13 ARM: uniphier: adjust ifdefs for new UniPhier DWC3 CONFIG
In reply to Masahiro YamadaNow USB 3.0 feature is enabled/disabled by CONFIG_USB_DWC3_UNIPHIER.
---
Changes in v2: None
arch/arm/mach-uniphier/clk/clk-pro4.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pro5.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pxs2.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/mach-uniphier/clk/clk-pro4.c +3 -3
@@ -15,7 +15,7 @@ void uniphier_pro4_clk_init(void)/* deassert reset */ tmp =readl (SC_RSTCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_RSTCTRL_NRST_USB3B0 |SC_RSTCTRL_NRST_USB3C0 |SC_RSTCTRL_NRST_GIO ;#endif
@@ -31,7 +31,7 @@ void uniphier_pro4_clk_init(void)writel (tmp,SC_RSTCTRL );readl (SC_RSTCTRL );/* dummy read */ -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp =readl (SC_RSTCTRL2 ); tmp |=SC_RSTCTRL2_NRST_USB3B1 |SC_RSTCTRL2_NRST_USB3C1 ;writel (tmp,SC_RSTCTRL2 );
@@ -40,7 +40,7 @@ void uniphier_pro4_clk_init(void)/* provide clocks */ tmp =readl (SC_CLKCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_CLKCTRL_CEN_USB31 |SC_CLKCTRL_CEN_USB30 |SC_CLKCTRL_CEN_GIO ;#endif
arch/arm/mach-uniphier/clk/clk-pro5.c +3 -3
@@ -15,7 +15,7 @@ void uniphier_pro5_clk_init(void)/* deassert reset */ tmp =readl (SC_RSTCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_RSTCTRL_NRST_USB3B0 |SC_RSTCTRL_NRST_GIO ;#endif #ifdef CONFIG_NAND_DENALI
@@ -24,7 +24,7 @@ void uniphier_pro5_clk_init(void)writel (tmp,SC_RSTCTRL );readl (SC_RSTCTRL );/* dummy read */ -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp =readl (SC_RSTCTRL2 ); tmp |=SC_RSTCTRL2_NRST_USB3B1 ;writel (tmp,SC_RSTCTRL2 );
@@ -33,7 +33,7 @@ void uniphier_pro5_clk_init(void)/* provide clocks */ tmp =readl (SC_CLKCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_CLKCTRL_CEN_USB31 |SC_CLKCTRL_CEN_USB30 |SC_CLKCTRL_CEN_GIO ;#endif
arch/arm/mach-uniphier/clk/clk-pxs2.c +3 -3
@@ -15,7 +15,7 @@ void uniphier_pxs2_clk_init(void)/* deassert reset */ tmp =readl (SC_RSTCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_RSTCTRL_NRST_USB3B0 |SC_RSTCTRL_NRST_GIO ;#endif #ifdef CONFIG_UNIPHIER_ETH
@@ -27,7 +27,7 @@ void uniphier_pxs2_clk_init(void)writel (tmp,SC_RSTCTRL );readl (SC_RSTCTRL );/* dummy read */ -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp =readl (SC_RSTCTRL2 ); tmp |=SC_RSTCTRL2_NRST_USB3B1 ;writel (tmp,SC_RSTCTRL2 );
@@ -36,7 +36,7 @@ void uniphier_pxs2_clk_init(void)/* provide clocks */ tmp =readl (SC_CLKCTRL ); -#ifdef CONFIG_USB_XHCI_UNIPHIER +#ifdef CONFIG_USB_DWC3_UNIPHIER tmp |=SC_CLKCTRL_CEN_USB31 |SC_CLKCTRL_CEN_USB30 |SC_CLKCTRL_CEN_GIO ;#endif
Signature · 1 line
1.9.1
PATCH v2 12/13 ARM: dts: uniphier: add/update xHCI nodes
In reply to Masahiro YamadaAdjust xHCI nodes to use the DWC3 core and the SoC-specific glue layer for former SoCs.
---
Changes in v2: None
arch/arm/dts/uniphier-ph1-ld20.dtsi | 17 +++++++++++++++++ arch/arm/dts/uniphier-ph1-pro4-ref.dts | 4 ++++ arch/arm/dts/uniphier-ph1-pro4.dtsi | 32 ++++++++++++++++++++++++-------- arch/arm/dts/uniphier-ph1-pro5.dtsi | 32 ++++++++++++++++++++++++-------- arch/arm/dts/uniphier-proxstream2.dtsi | 32 ++++++++++++++++++++++++-------- 5 files changed, 93 insertions(+), 24 deletions(-)
arch/arm/dts/uniphier-ph1-ld20.dtsi +17 -0
@@ -256,6 +256,23 @@ #interrupt-cells = <3>; interrupts = <1 9 4>; }; + + usb: usb at 65b00000 { + compatible = "socionext,uniphier-ld20-dwc3"; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>, + <&pinctrl_usb2>, <&pinctrl_usb3>; + dwc3 at 65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0x10000>; + interrupts = <0 134 4>; + tx-fifo-resize; + }; + }; }; };
arch/arm/dts/uniphier-ph1-pro4-ref.dts +4 -0
@@ -71,6 +71,10 @@ status = "okay"; }; +&usb1 { + status = "okay"; +}; + &usb2 { status = "okay"; };
arch/arm/dts/uniphier-ph1-pro4.dtsi +24 -8
@@ -400,22 +400,38 @@ clocks = <&mio 4>, <&mio 6>; }; - usb0: usb at 65a00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb0: usb at 65b00000 { + compatible = "socionext,uniphier-pro4-dwc3"; status = "disabled"; - reg = <0x65a00000 0x100>; - interrupts = <0 134 4>; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb0>; + dwc3 at 65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0x10000>; + interrupts = <0 134 4>; + tx-fifo-resize; + }; }; - usb1: usb at 65c00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb1: usb at 65d00000 { + compatible = "socionext,uniphier-pro4-dwc3"; status = "disabled"; - reg = <0x65c00000 0x100>; - interrupts = <0 137 4>; + reg = <0x65d00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb1>; + dwc3 at 65c00000 { + compatible = "snps,dwc3"; + reg = <0x65c00000 0x10000>; + interrupts = <0 137 4>; + tx-fifo-resize; + }; }; };
arch/arm/dts/uniphier-ph1-pro5.dtsi +24 -8
@@ -379,22 +379,38 @@ bus-width = <4>; }; - usb0: usb at 65a00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb0: usb at 65b00000 { + compatible = "socionext,uniphier-pro5-dwc3"; status = "disabled"; - reg = <0x65a00000 0x100>; - interrupts = <0 134 4>; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb0>; + dwc3 at 65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0x10000>; + interrupts = <0 134 4>; + tx-fifo-resize; + }; }; - usb1: usb at 65c00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb1: usb at 65d00000 { + compatible = "socionext,uniphier-pro5-dwc3"; status = "disabled"; - reg = <0x65c00000 0x100>; - interrupts = <0 137 4>; + reg = <0x65d00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb2>; + dwc3 at 65c00000 { + compatible = "snps,dwc3"; + reg = <0x65c00000 0x10000>; + interrupts = <0 137 4>; + tx-fifo-resize; + }; }; };
arch/arm/dts/uniphier-proxstream2.dtsi +24 -8
@@ -383,22 +383,38 @@ bus-width = <4>; }; - usb0: usb at 65a00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb0: usb at 65b00000 { + compatible = "socionext,uniphier-pxs2-dwc3"; status = "disabled"; - reg = <0x65a00000 0x100>; - interrupts = <0 134 4>; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>; + dwc3 at 65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0x10000>; + interrupts = <0 134 4>; + tx-fifo-resize; + }; }; - usb1: usb at 65c00000 { - compatible = "socionext,uniphier-xhci", "generic-xhci"; + usb1: usb at 65d00000 { + compatible = "socionext,uniphier-pxs2-dwc3"; status = "disabled"; - reg = <0x65c00000 0x100>; - interrupts = <0 137 4>; + reg = <0x65d00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>; + dwc3 at 65c00000 { + compatible = "snps,dwc3"; + reg = <0x65c00000 0x10000>; + interrupts = <0 137 4>; + tx-fifo-resize; + }; }; };
Signature · 1 line
1.9.1
PATCH v2 13/13 ARM: uniphier: enable Generic EHCI for PH1-Pro4
In reply to Masahiro YamadaOn Driver Model USB, EHCI and xHCI can be enabled at the same time. PH1-Pro4 SoC has two EHCI cores and two xHCI cores, so enable the Generic EHCI driver.
---
Changes in v2: None
configs/uniphier_pro4_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/uniphier_pro4_defconfig +2 -0
@@ -33,4 +33,6 @@ CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3_UNIPHIER=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y
Signature · 1 line
1.9.1
v2 cover usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
In reply to Masahiro YamadaQuoted 120 lines · Masahiro Yamada
Masahiro Yamada (13):
configs: blackfin: moveCONFIG_USBto defconfig
usb: moveCONFIG_USB_XHCItoKconfigwith renaming
usb: moveCONFIG_USB_XHCI_DWC3toKconfig
usb: xhci: add struct devrequest declaration toxhci.h
usb: dwc3: change DWC3 core support code into a driver
usb: dwc3: add UniPhier specific glue layer
ARM: uniphier: switch over to USB DM
ARM: uniphier: enable DWC3 xHCI driver
usb: uniphier: remove UniPhier xHCI driver
ARM: uniphier: delete unnecessary xHCI pin-mux settings
ARM: uniphier: adjust ifdefs for new UniPhier DWC3 CONFIG
ARM: dts: uniphier: add/update xHCI nodes
ARM: uniphier: enable Generic EHCI for PH1-Pro4arch/arm/Kconfig | 1 + arch/arm/dts/uniphier-ph1-ld20.dtsi | 17 ++++ arch/arm/dts/uniphier-ph1-pro4-ref.dts | 4 + arch/arm/dts/uniphier-ph1-pro4.dtsi | 32 ++++-- arch/arm/dts/uniphier-ph1-pro5.dtsi | 32 ++++-- arch/arm/dts/uniphier-proxstream2.dtsi | 32 ++++-- arch/arm/mach-uniphier/clk/clk-pro4.c | 6 +- arch/arm/mach-uniphier/clk/clk-pro5.c | 6 +- arch/arm/mach-uniphier/clk/clk-pxs2.c | 6 +- arch/arm/mach-uniphier/pinctrl/pinctrl-ld20.c | 12 --- arch/arm/mach-uniphier/pinctrl/pinctrl-ld6b.c | 11 --- arch/arm/mach-uniphier/pinctrl/pinctrl-pro4.c | 7 -- arch/arm/mach-uniphier/pinctrl/pinctrl-pro5.c | 7 -- arch/arm/mach-uniphier/pinctrl/pinctrl-pxs2.c | 11 --- common/usb.c | 2 +- configs/am437x_gp_evm_defconfig | 2 + configs/am437x_sk_evm_defconfig | 2 + configs/am43xx_evm_defconfig | 2 + configs/am43xx_evm_ethboot_defconfig | 2 + configs/am43xx_evm_qspiboot_defconfig | 2 + configs/am43xx_evm_usbhost_boot_defconfig | 2 + configs/am57xx_evm_defconfig | 3 + configs/am57xx_evm_nodt_defconfig | 3 + configs/bf526-ezbrd_defconfig | 1 + configs/bf527-ezkit-v2_defconfig | 1 + configs/bf527-ezkit_defconfig | 1 + configs/bf548-ezkit_defconfig | 1 + configs/cm_t43_defconfig | 3 + configs/dra72_evm_defconfig | 2 + configs/dra74_evm_defconfig | 2 + configs/dra7xx_evm_defconfig | 2 + configs/dra7xx_evm_qspiboot_defconfig | 2 + configs/dra7xx_evm_uart3_defconfig | 2 + configs/k2e_evm_defconfig | 3 + configs/k2g_evm_defconfig | 3 + configs/k2hk_evm_defconfig | 3 + configs/k2l_evm_defconfig | 3 + configs/ls1021aqds_ddr4_nor_defconfig | 3 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 3 + configs/ls1021aqds_nand_defconfig | 3 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 3 + configs/ls1021aqds_nor_defconfig | 3 + configs/ls1021aqds_nor_lpuart_defconfig | 3 + configs/ls1021aqds_qspi_defconfig | 3 + configs/ls1021aqds_sdcard_ifc_defconfig | 3 + configs/ls1021aqds_sdcard_qspi_defconfig | 3 + configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 3 + configs/ls1021atwr_nor_defconfig | 3 + configs/ls1021atwr_nor_lpuart_defconfig | 3 + configs/ls1021atwr_qspi_defconfig | 3 + configs/ls1021atwr_sdcard_ifc_defconfig | 3 + configs/ls1021atwr_sdcard_qspi_defconfig | 3 + configs/ls1043aqds_defconfig | 3 + configs/ls1043aqds_lpuart_defconfig | 3 + configs/ls1043aqds_nand_defconfig | 3 + configs/ls1043aqds_nor_ddr3_defconfig | 3 + configs/ls1043aqds_qspi_defconfig | 3 + configs/ls1043aqds_sdcard_ifc_defconfig | 3 + configs/ls1043aqds_sdcard_qspi_defconfig | 3 + configs/ls1043ardb_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_defconfig | 3 + configs/ls1043ardb_nand_defconfig | 3 + configs/ls1043ardb_sdcard_defconfig | 3 + configs/ls2080aqds_SECURE_BOOT_defconfig | 3 + configs/ls2080aqds_defconfig | 3 + configs/ls2080aqds_nand_defconfig | 3 + configs/ls2080ardb_SECURE_BOOT_defconfig | 3 + configs/ls2080ardb_defconfig | 3 + configs/ls2080ardb_nand_defconfig | 3 + configs/odroid-xu3_defconfig | 2 + configs/peach-pi_defconfig | 2 + configs/peach-pit_defconfig | 2 + configs/smdk5420_defconfig | 2 + configs/uniphier_ld20_defconfig | 2 + configs/uniphier_ld4_sld8_defconfig | 1 - configs/uniphier_pro4_defconfig | 4 + configs/uniphier_pxs2_ld6b_defconfig | 2 + configs/uniphier_sld3_defconfig | 1 - configs/xilinx_zynqmp_ep_defconfig | 2 + configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 2 + configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 2 + configs/xilinx_zynqmp_zcu102_defconfig | 2 + configs/xilinx_zynqmp_zcu102_revB_defconfig | 2 + drivers/usb/host/Kconfig | 24 ++--- drivers/usb/host/Makefile | 4 +- drivers/usb/host/dwc3-uniphier.c | 119 +++++++++++++++++++++++ drivers/usb/host/xhci-dwc3.c | 71 +++++++++++++- drivers/usb/host/xhci-uniphier.c | 85 ---------------- drivers/usb/host/xhci.h | 2 + include/configs/am43xx_evm.h | 2 - include/configs/am57xx_evm.h | 2 - include/configs/bf526-ezbrd.h | 1 - include/configs/bf527-ezkit.h | 1 - include/configs/bf548-ezkit.h | 1 - include/configs/cm_t43.h | 2 - include/configs/dra7xx_evm.h | 2 - include/configs/ds414.h | 3 +- include/configs/exynos5-common.h | 1 - include/configs/exynos5420-common.h | 1 - include/configs/ls1021aqds.h | 2 - include/configs/ls1021atwr.h | 2 - include/configs/ls1043aqds.h | 2 - include/configs/ls1043ardb.h | 2 - include/configs/ls2080aqds.h | 2 - include/configs/ls2080ardb.h | 2 -
Quoted 9 lines
include/configs/smdk5420.h | 1 - include/configs/ti_armv7_keystone2.h | 2 - include/configs/xilinx_zynqmp.h | 2 - include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 110 files changed, 479 insertions(+), 218 deletions(-) create mode 100644 drivers/usb/host/dwc3-uniphier.c delete mode 100644 drivers/usb/host/xhci-uniphier.c
CCing Roger, so he can check this series. I will review it later today or tomorrow.
Signature · 2 lines
Best regards, Marek Vasut
v2 cover usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
Hi Marek,
2016-05-16 23:46 GMT+09:00 Marek Vasut <[email protected]>:
Quoted 5 lines
Quoted 2 lines
delete mode 100644 drivers/usb/host/xhci-uniphier.cCCing Roger, so he can check this series. I will review it later today or tomorrow.
01-03 are probably OK, but 04- might have conflicts with Roger's work.
Maybe we should take our time to figure out how we should arrange this.
Signature · 2 lines
Best Regards Masahiro Yamada
v2 cover usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
Hi Marek,
2016-05-17 20:01 GMT+09:00 Masahiro Yamada <[email protected]>:
Quoted 7 lines
Hi Marek,
2016-05-16 23:46 GMT+09:00 Marek Vasut <[email protected]>:
Quoted 2 lines
Quoted 2 lines
delete mode 100644 drivers/usb/host/xhci-uniphier.c
Quoted 8 lines
Quoted 3 lines
CCing Roger, so he can check this series. I will review it later today or tomorrow.
01-03 are probably OK, but 04- might have conflicts with Roger's work.
Maybe we should take our time to figure out how we should arrange this.
Could you drop 04- from your repository, for now?
Perhaps, we should discuss this DWC3 topic more carefully?
Signature · 2 lines
Best Regards Masahiro Yamada
v2 cover usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM
Quoted 17 lines · Masahiro Yamada
Hi Marek,
2016-05-17 20:01 GMT+09:00 Masahiro Yamada <[email protected]>:
Quoted 14 lines
Hi Marek,
2016-05-16 23:46 GMT+09:00 Marek Vasut <[email protected]>:
Quoted 5 lines
Quoted 2 lines
delete mode 100644 drivers/usb/host/xhci-uniphier.cCCing Roger, so he can check this series. I will review it later today or tomorrow.
01-03 are probably OK, but 04- might have conflicts with Roger's work.
Quoted 8 lines
Quoted 1 line
Maybe we should take our time to figure out how we should arrange this.
Could you drop 04- from your repository, for now?
Perhaps, we should discuss this DWC3 topic more carefully?
Dropped
Signature · 2 lines
Best regards, Marek Vasut