diff options
author | Ye Li <ye.li@nxp.com> | 2022-08-03 16:37:11 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-08-03 17:45:22 +0800 |
commit | 410f43c45205fe6aedccb22e546b1c374b575c0c (patch) | |
tree | 3bf91034df135dea2300d4233ff36e5817392899 /arch/arm | |
parent | 1e6053ae1d91436b40eadc1c913d633d2738dc91 (diff) |
LFU-378 imx8ulp: Hang the u-boot when M33 is not loaded
When M33 handshake is necessary, current u-boot will panic to reset itself.
Change to not panic but hang the u-boot, so that M33 tests can use JTAG
to load M33 image.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/imx8ulp/soc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 38e279a7f6..6e20b11801 100644 --- a/arch/arm/mach-imx/imx8ulp/soc.c +++ b/arch/arm/mach-imx/imx8ulp/soc.c @@ -844,10 +844,12 @@ int arch_cpu_init(void) int checkcpu(void) { if (is_m33_handshake_necessary()) { - if (!gd->arch.m33_handshake_done) - panic("M33 Sync: Timeout, Boot Stop!\n"); - else + if (!gd->arch.m33_handshake_done) { + puts("M33 Sync: Timeout, Boot Stop!\n"); + hang(); + } else { puts("M33 Sync: OK\n"); + } } return 0; } |