From: Ye Li Date: Thu, 12 Mar 2026 00:57:24 +0000 (+0800) Subject: imx94_evk: Get ownership of XSPI control registers protected by GMID in SPL X-Git-Tag: v2026.07-rc1~53^2~4^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1690715eba533e850f389b50051e6c88d84cdc3;p=thirdparty%2Fu-boot.git 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 Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- 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); }