usb: ehci-mx6: Add i.MX93 support
Subsystems (2)
PATCH v2 1/1 usb: ehci-mx6: Add i.MX93 support
i.MX93 uses the same USB IP as i.MX8MM. It can then reuse the ehci-mx6 driver.
Reviewed-by Marek Vasut <[email protected]>
Signed-off-by Mathieu Othacehe <[email protected]>
--- drivers/usb/host/Kconfig | 6 +++--- drivers/usb/host/ehci-mx6.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/usb/host/Kconfig +3 -3
@@ -210,10 +210,10 @@ config USB_EHCI_MX6 config USB_EHCI_MX7 bool "Support for i.MX7 on-chip EHCI USB controller" - depends on ARCH_MX7 || IMX8M + depends on ARCH_MX7 || IMX8M || IMX93 select EHCI_HCD_INIT_AFTER_RESET if ARCH_MX7 - select PHY if IMX8M - select NOP_PHY if IMX8M + select PHY if IMX8M || IMX93 + select NOP_PHY if IMX8M || IMX93 default y ---help--- Enables support for the on-chip EHCI controller on i.MX7 SoCs.
drivers/usb/host/ehci-mx6.c +1 -1
@@ -538,7 +538,7 @@ static int ehci_usb_phy_mode(struct udevice *dev) plat->init_type =USB_INIT_DEVICE ; else plat->init_type = USB_INIT_HOST; - }else if (is_mx7 () ||is_imx8mm () ||is_imx8mn ()) { + }else if (is_mx7 () ||is_imx8mm () ||is_imx8mn () ||is_imx93 ()) { phy_status = (void __iomem *)(addr +USBNC_PHY_STATUS_OFFSET ); val =readl (phy_status);
Signature · 1 line
2.41.0
Quoted 6 lines · Mathieu Othacehe
i.MX93 uses the same USB IP as i.MX8MM. It can then reuse the ehci-mx6 driver.
Reviewed-by Marek Vasut <[email protected]>Signed-off-by Mathieu Othacehe <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>
I assume you will add USB support to some i.MX93 boards later.
Hello Fabio,
Thanks for having a look.
Quoted 1 line
I assume you will add USB support to some i.MX93 boards later.
Yes that's the plan for the boards that I own: imx93_var_som and imx93-phyboard-segin :)
Mathieu
Marek Vasut
AppliedQuoted 33 lines · Mathieu Othacehe
i.MX93 uses the same USB IP as i.MX8MM. It can then reuse the ehci-mx6 driver.
Reviewed-by Marek Vasut <[email protected]>Signed-off-by Mathieu Othacehe <[email protected]>--- drivers/usb/host/Kconfig | 6 +++--- drivers/usb/host/ehci-mx6.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)drivers/usb/host/Kconfig +3
-3@@ -210,10 +210,10 @@ config USB_EHCI_MX6 config USB_EHCI_MX7 bool "Support for i.MX7 on-chip EHCI USB controller" - depends on ARCH_MX7 || IMX8M + depends on ARCH_MX7 || IMX8M || IMX93 select EHCI_HCD_INIT_AFTER_RESET if ARCH_MX7 - select PHY if IMX8M - select NOP_PHY if IMX8M + select PHY if IMX8M || IMX93 + select NOP_PHY if IMX8M || IMX93 default y ---help--- Enables support for the on-chip EHCI controller on i.MX7 SoCs.drivers/usb/host/ehci-mx6.c +0
-0
drivers/usb/host/ehci-mx6.c static int ehci_usb_phy_mode(struct udevice *dev) · line 544
Quoted 8 lines
drivers/usb/host/ehci-mx6.c +1
-1@@ -538,7 +538,7 @@ static int ehci_usb_phy_mode(struct udevice *dev) plat->init_type =USB_INIT_DEVICE ; else plat->init_type = USB_INIT_HOST; - }else if (is_mx7 () ||is_imx8mm () ||is_imx8mn ()) { + }else if (is_mx7 () ||is_imx8mm () ||is_imx8mn () ||is_imx93 ()) { phy_status = (void __iomem *)(addr +USBNC_PHY_STATUS_OFFSET ); val =readl (phy_status);
Applied, thanks