summaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-11-22 14:24:03 +0800
committerAnson Huang <Anson.Huang@nxp.com>2019-12-13 10:45:48 +0800
commit8443529e9ade148e2aee258a0d1cda6e8eaf1f85 (patch)
tree36b3ae31f3d190df24ad423fdf8f9a5f901c4e77 /bl31
parente0ab18940626c53eb24b46eb26bbf7aefc1ce97f (diff)
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 <Anson.Huang@nxp.com>
Diffstat (limited to 'bl31')
-rw-r--r--bl31/aarch64/bl31_entrypoint.S1
1 files changed, 1 insertions, 0 deletions
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]