summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <[email protected]>2026-03-12 08:57:24 +0800
committerFabio Estevam <[email protected]>2026-03-16 18:44:58 -0300
commite1690715eba533e850f389b50051e6c88d84cdc3 (patch)
tree66697c86ab1c8868451694f2a0220492509b6772
parent1c6e3a75502062ceb33f06cb4db5e7c5927deac5 (diff)
imx94_evk: Get ownership of XSPI control registers protected by GMID in SPL
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 <[email protected]> Signed-off-by: Alice Guo <[email protected]> Reviewed-by: Peng Fan <[email protected]>
-rw-r--r--board/nxp/imx94_evk/spl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/nxp/imx94_evk/spl.c b/board/nxp/imx94_evk/spl.c
index cc5b7f9ef0f..6eb0fff99f4 100644
--- a/board/nxp/imx94_evk/spl.c
+++ b/board/nxp/imx94_evk/spl.c
@@ -46,6 +46,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)
{
@@ -76,5 +86,7 @@ void board_init_f(ulong dummy)
get_reset_reason(true, false);
+ xspi_nor_reset();
+
board_init_r(NULL, 0);
}