Skip to contentSkip to conversation

ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP

PATCH New Fabio Estevam 2 participants 2 messages Oct 24, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP

From: Ye Li <[email protected]>

The ULP has two USB controllers. These two controllers have similar NC registers layout as i.MX7D. But OTG0 uses UTMI PHY simliar as i.MX6, not the integrated PHY on i.MX7D. The OTG1 needs off-chip HSIC PHY or ULPI PHY to work.

This patch only supports OTG0 with UTMI PHY.

---
Chnages since v1:
- Updated the Kconfig description to include i.MX7ULP (Marek)
- Swapped the MX6 and MX7 to keep the list sorted (Marek)

 drivers/usb/host/Kconfig    |  6 ++---
 drivers/usb/host/ehci-mx6.c | 53 ++++++++++++++++++++++++++++---------
 2 files changed, 43 insertions(+), 16 deletions(-)
drivers/usb/host/Kconfig +3 -3
index 30c6b69be8..df644fd131 100644
@@ -141,8 +141,8 @@ config USB_EHCI_MX5
 	  Enables support for the on-chip EHCI controller on i.MX5 SoCs.
 
 config USB_EHCI_MX6
-	bool "Support for i.MX6 on-chip EHCI USB controller"
-	depends on ARCH_MX6
+	bool "Support for i.MX6/i.MX7ULP on-chip EHCI USB controller"
+	depends on ARCH_MX6 || ARCH_MX7ULP
 	default y
 	---help---
 	  Enables support for the on-chip EHCI controller on i.MX6 SoCs.
@@ -169,7 +169,7 @@ config USB_EHCI_VF
 	help
 	  Enables support for the on-chip EHCI controller on Vybrid SoCs.
 
-if USB_EHCI_MX7
+if USB_EHCI_MX6 || USB_EHCI_MX7
 
 config MXC_USB_OTG_HACTIVE
 	bool "USB Power pin high active"
drivers/usb/host/ehci-mx6.c +40 -13

128 lines not on this page · raw message

Signature · 1 line
2.17.1
Applied
#1 lore raw

PATCH v2 1/1 ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP

Quoted 4 lines · Fabio Estevam

The ULP has two USB controllers. These two controllers have similar NC registers layout as i.MX7D. But OTG0 uses UTMI PHY simliar as i.MX6, not the integrated PHY on i.MX7D. The OTG1 needs off-chip HSIC PHY or ULPI PHY to work.

Applied, thanks