ARM: shmobile: sh73a0 SMP with SCU boot fn and args
authorMagnus Damm <damm@opensource.se>
Mon, 10 Jun 2013 09:20:06 +0000 (18:20 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 17 Jun 2013 07:07:28 +0000 (16:07 +0900)
Let sh73a0 make use of shmobile_boot_fn and shmobile_boot_arg
together with shmobile_boot_scu and the SCU base address.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/smp-sh73a0.c

index 496592b6c763979484b58e43212cb55c4dbfdbcc..d613113a04bda27f12042803a92fe239be567a9b 100644 (file)
@@ -64,9 +64,11 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus)
 {
        scu_enable(shmobile_scu_base);
 
-       /* Map the reset vector (in headsmp-scu.S) */
+       /* Map the reset vector (in headsmp-scu.S, headsmp.S) */
        __raw_writel(0, APARMBAREA);      /* 4k */
-       __raw_writel(__pa(shmobile_secondary_vector_scu), SBAR);
+       __raw_writel(__pa(shmobile_boot_vector), SBAR);
+       shmobile_boot_fn = virt_to_phys(shmobile_boot_scu);
+       shmobile_boot_arg = (unsigned long)shmobile_scu_base;
 
        /* enable cache coherency on booting CPU */
        scu_power_mode(shmobile_scu_base, SCU_PM_NORMAL);