[PATCH v1 3/4] imx94_evk: Get ownership of XSPI control registers protected by GMID in SPL
alice.guo at oss.nxp.com
alice.guo at oss.nxp.com
Tue Oct 14 13:17:55 CEST 2025
From: Ye Li <ye.li at nxp.com>
To gain access to certain registers that are protected by GMID, the SPL
must release XSPI ownership to the current core.
Signed-off-by: Ye Li <ye.li at nxp.com>
Signed-off-by: Alice Guo <alice.guo at nxp.com>
Acked-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Jacky Bai <ping.bai at nxp.com>
---
board/freescale/imx94_evk/spl.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/board/freescale/imx94_evk/spl.c b/board/freescale/imx94_evk/spl.c
index 341b165b3c8..f4529fb5fb2 100644
--- a/board/freescale/imx94_evk/spl.c
+++ b/board/freescale/imx94_evk/spl.c
@@ -45,6 +45,16 @@ void spl_board_init(void)
printf("Fail to start RNG: %d\n", ret);
}
+static void xspi_nor_reset(void)
+{
+ int ret;
+ u32 resp = 0;
+
+ ret = ele_set_gmid(&resp);
+ if (ret)
+ printf("Fail to set GMID: %d, resp 0x%x\n", ret, resp);
+}
+
/* SCMI support by default */
void board_init_f(ulong dummy)
{
@@ -77,5 +87,7 @@ void board_init_f(ulong dummy)
get_reset_reason(true, false);
+ xspi_nor_reset();
+
board_init_r(NULL, 0);
}
--
2.43.0
More information about the U-Boot
mailing list