]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: ehci-mx6: Add i.MX93 support
authorMathieu Othacehe <othacehe@gnu.org>
Mon, 19 Feb 2024 17:05:31 +0000 (18:05 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 19 Feb 2024 19:08:51 +0000 (20:08 +0100)
i.MX93 uses the same USB IP as i.MX8MM. It can then reuse the ehci-mx6
driver.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/usb/host/Kconfig
drivers/usb/host/ehci-mx6.c

index 0dd5736433c568ff6de9b9e878ec74987e37bd29..f96027d7bd24cc16fe6f7806e0184970e3be9291 100644 (file)
@@ -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.
index a9ed5e7a0d53cd6ac5f786c973aafc703da5b84b..a35fcca43a23a6abd2e6b806c1b063b4c97aaaf0 100644 (file)
@@ -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);