]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
armv7/ls102xa: Fix non-boot cpus cannot correctly fall in spin table
authorWang Dongsheng <dongsheng.wang@freescale.com>
Thu, 18 Jun 2015 10:32:58 +0000 (18:32 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 05:55:17 +0000 (07:55 +0200)
Bootrom will put cpus into WFE state when boot cpu release cpus, so
target cpu cannot correctly go to spin state.

Add 'sev' to wakeup non-boot cpu that hold on bootrom space, let target
cpu can fall into u-boot spin table.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv7/ls102xa/cpu.c

index 75f0d8c7f794a1a6c6ad9e1d6a10fc9675581c54..8dd95d98791d763789f530d393a12563aa358282 100644 (file)
@@ -344,5 +344,13 @@ void smp_kick_all_cpus(void)
        struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
 
        out_be32(&gur->brrl, 0x2);
+
+       /*
+        * LS1 STANDBYWFE is not captured outside the ARM module in the soc.
+        * So add a delay to wait bootrom execute WFE.
+        */
+       udelay(1);
+
+       asm volatile("sev");
 }
 #endif