From 8443529e9ade148e2aee258a0d1cda6e8eaf1f85 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Fri, 22 Nov 2019 14:24:03 +0800 Subject: imx: initialize register value before writting MU_SR register MU_SR register bit[30] is cold boot flag passed from SCU, w0 is random value and would clear the flag incorrectly, and cause system partition reboot fail if Linux is in suspend. So this patch initializes it to 0x80000000 which is exactly the same with first time board power up before writting to MU_SR register. Signed-off-by: Anson Huang --- bl31/aarch64/bl31_entrypoint.S | 1 + 1 file changed, 1 insertion(+) (limited to 'bl31') diff --git a/bl31/aarch64/bl31_entrypoint.S b/bl31/aarch64/bl31_entrypoint.S index 5ee7a840..22426430 100644 --- a/bl31/aarch64/bl31_entrypoint.S +++ b/bl31/aarch64/bl31_entrypoint.S @@ -25,6 +25,7 @@ func bl31_entrypoint #ifdef PLAT_imx8qm ldr x21, stm + ldr w20, =0x80000000 str w20, [x21] str w20, [x21] str w20, [x21] -- cgit v1.2.3