]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mq_evk: Enable the USB3.0 host port
authorYe Li <ye.li@nxp.com>
Sun, 21 Feb 2021 16:26:24 +0000 (08:26 -0800)
committerStefano Babic <sbabic@denx.de>
Sat, 17 Jul 2021 11:12:23 +0000 (13:12 +0200)
Setup USB clock in board codes, and enable the DWC3 XHCI and
PHY drivers to make USB3.0 host port working on i.MX8MQ EVK.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Patrick Wildt <patrick@blueri.se>
board/freescale/imx8mq_evk/imx8mq_evk.c
configs/imx8mq_evk_defconfig

index 93da67d77983d1f71d68a53aea3b21e0cc0abf65..e39480585609de4b0ddc9fa0104665db6e7df1b6 100644 (file)
@@ -86,6 +86,10 @@ int board_init(void)
        setup_fec();
 #endif
 
+#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_DWC3)
+       init_usb_clk();
+#endif
+
        return 0;
 }
 
index 1df4192401e76344786357967620a4f181e16182..f4d53976746cda64cc6351f989ae66a8a53535ad 100644 (file)
@@ -53,3 +53,12 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_DM_RESET=y
 CONFIG_MXC_UART=y
 CONFIG_DM_THERMAL=y
+CONFIG_CMD_USB=y
+CONFIG_USB=y
+CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_DWC3=y
+CONFIG_USB_DWC3=y
+CONFIG_PHY=y
+CONFIG_PHY_IMX8MQ_USB=y