summaryrefslogtreecommitdiff
path: root/board/toradex/apalis-imx8/apalis-imx8.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/toradex/apalis-imx8/apalis-imx8.c')
-rw-r--r--board/toradex/apalis-imx8/apalis-imx8.c14
1 files changed, 14 insertions, 0 deletions
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;
}