From 79a482c0c5c0dbd59a393fc252ffc85a33c980bb Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Fri, 22 Nov 2019 14:17:46 +0800 Subject: imx8qm: turn off A53 cluster for cpu hotplug The issue of A53 cluster runtime power ON/OFF has been identified as fifo reset issue, and there is software workaround to avoid such issue and A53 cluster now can be turned OFF. Signed-off-by: Nitin Garg Signed-off-by: Anson Huang --- bl31/aarch64/bl31_entrypoint.S | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'bl31') diff --git a/bl31/aarch64/bl31_entrypoint.S b/bl31/aarch64/bl31_entrypoint.S index 1ad26e4f..5ee7a840 100644 --- a/bl31/aarch64/bl31_entrypoint.S +++ b/bl31/aarch64/bl31_entrypoint.S @@ -23,6 +23,41 @@ */ func bl31_entrypoint +#ifdef PLAT_imx8qm + ldr x21, stm + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] /* 16 */ + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] + str w20, [x21] /* 32 */ +#endif /* --------------------------------------------------------------- * Stash the previous bootloader arguments x0 - x3 for later use. * --------------------------------------------------------------- @@ -132,6 +167,10 @@ func bl31_entrypoint b el3_exit endfunc bl31_entrypoint +.ltorg +stm: + .quad 0x5D1B0020 + /* -------------------------------------------------------------------- * This CPU has been physically powered up. It is either resuming from * suspend or has simply been turned on. In both cases, call the BL31 -- cgit v1.2.3