summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2020-05-25 14:40:27 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2020-05-26 09:27:40 +0200
commitf6b6437462eca3f2d615a3fbb2a3c1b723d8175b (patch)
tree73ee5c39ad76c89171067b28b7c000837dbdb395
parent9393e0c9bd023a642d2044ab9f3f85e3e2ee2c1e (diff)
apalis-imx8: reset the hsic pins to their reset defaults
Related-to: ELB-2702 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-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;
}