]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_EHCI_DESC_BIG_ENDIAN et al to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 12:24:26 +0000 (08:24 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:03:31 +0000 (17:03 -0400)
This converts the following to Kconfig:
   CONFIG_EHCI_DESC_BIG_ENDIAN
   CONFIG_EHCI_MMIO_BIG_ENDIAN

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/usb/host/Kconfig
include/configs/bmips_bcm6318.h
include/configs/bmips_bcm63268.h
include/configs/bmips_bcm6328.h
include/configs/bmips_bcm6358.h
include/configs/bmips_bcm6362.h
include/configs/bmips_bcm6368.h
include/configs/tplink_wdr4300.h

index 8f77412cc71b8dcaf2b0eed0794d1d644b861831..8e0ecc5e41e0d6d958dfdfee04bffaf56503595c 100644 (file)
@@ -116,11 +116,19 @@ config USB_XHCI_BRCM
 
 endif # USB_XHCI_HCD
 
+config EHCI_DESC_BIG_ENDIAN
+       bool
+
+config EHCI_MMIO_BIG_ENDIAN
+       bool
+
 config USB_EHCI_HCD
        bool "EHCI HCD (USB 2.0) support"
        default y if ARCH_MX5 || ARCH_MX6
        depends on DM && OF_CONTROL
        select USB_HOST
+       select EHCI_DESC_BIG_ENDIAN if SYS_BIG_ENDIAN
+       select EHCI_MMIO_BIG_ENDIAN if SYS_BIG_ENDIAN
        ---help---
          The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
          "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
@@ -166,6 +174,7 @@ config USB_EHCI_MX5
 config USB_EHCI_MX6
        bool "Support for i.MX6/i.MX7ULP on-chip EHCI USB controller"
        depends on ARCH_MX6 || ARCH_MX7ULP || ARCH_IMXRT
+       select EHCI_HCD_INIT_AFTER_RESET
        default y
        ---help---
          Enables support for the on-chip EHCI controller on i.MX6 SoCs.
@@ -173,6 +182,7 @@ config USB_EHCI_MX6
 config USB_EHCI_MX7
        bool "Support for i.MX7 on-chip EHCI USB controller"
        depends on ARCH_MX7 || IMX8M
+       select EHCI_HCD_INIT_AFTER_RESET if ARCH_MX7
        select PHY if IMX8M
        select NOP_PHY if IMX8M
        default y
index 412471a4aaa16368a372076793a3514d0fe1ab2d..ad7781bd3a2713b3de2e7116c6ab4a7577b4bf83 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 8caddf384628955e9a6ecb734298563a268764ae..0901f6e88ac43f2f4c5b850e0be18568fe5e9922 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 892a3e2c41e0d7d020a2b08e5da9de5992b2f158..3f45f1f2550f31afdc4058908fc0eb7238098a10 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 6cb09492aa8968fad7a80256a9a165683d6047fc..c15218fc9cb5de4c2c839a46a2fa9412779031e4 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 92ab0ba7a2f0a47e72f11f5adcf18fd19c283685..0c94b2c5254390c87321bf572f820e1d660551b7 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 8a22dc1a3c32fb28209c6a4dc9fbe652418880e3..6486b7e6110704bbb4fbc23dd720a8eef344d166 100644 (file)
@@ -15,8 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 /* USB */
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
 #define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
 #if defined(CONFIG_USB_OHCI_HCD)
index 3866a4333291cd974492d155c2cfcbcd98fde18d..f5466fd5092daf89101f25b2458c99a19ff24d9e 100644 (file)
  */
 /* Miscellaneous configurable options */
 
-/* USB, USB storage, USB ethernet */
-#define CONFIG_EHCI_MMIO_BIG_ENDIAN
-#define CONFIG_EHCI_DESC_BIG_ENDIAN
-
 /*
  * Diagnostics
  */