From f6b6437462eca3f2d615a3fbb2a3c1b723d8175b Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 25 May 2020 14:40:27 +0200 Subject: apalis-imx8: reset the hsic pins to their reset defaults Related-to: ELB-2702 Signed-off-by: Max Krummenacher --- board/toradex/apalis-imx8/apalis-imx8.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c index eef9b2e6ed..ee315861fd 100644 --- a/board/toradex/apalis-imx8/apalis-imx8.c +++ b/board/toradex/apalis-imx8/apalis-imx8.c @@ -368,6 +368,8 @@ U_BOOT_CMD( int board_late_init(void) { + sc_ipc_t ipcHndl = 0; + #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG /* TODO move to common */ env_set("board_name", "Apalis iMX8QM"); @@ -404,6 +406,18 @@ int board_late_init(void) select_dt_from_module_version(); + ipcHndl = gd->arch.ipc_channel_handle; + /* + * reset the USB HSIC signals to their powerup state. + * If imx-atf is configured to just reset the AP partition, then USB1 + * HSIC is in a state which prevents the bring up of the HSIC PHY. + * Prevent this by resetting the pad muxing and config. + */ + (void) sc_pad_set_all(ipcHndl, SC_P_USB_HSIC0_DATA, 0, + SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x85, 0); + (void) sc_pad_set_all(ipcHndl, SC_P_USB_HSIC0_STROBE, 0, + SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x85, 0); + return 0; } -- cgit v1.2.3