ARM: shmobile: r8a7790 CA15-SCU enablement
authorKeita Kobayashi <keita.kobayashi.ym@renesas.com>
Wed, 15 Jan 2014 12:26:13 +0000 (21:26 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Sun, 23 Feb 2014 23:55:47 +0000 (08:55 +0900)
Power on CA15 SCU in case of booting from a CA7 core.

Signed-off-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
[damm@opensource.se: Converted to use broken out SYSC code]
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/smp-r8a7790.c

index beb47ae9d05aa1f841681af276e3a9fe70802924..591052799e8f31fa3dcd7c73360a874a9db2b791 100644 (file)
 #define CA7RESCNT      0x0044
 #define MERAM          0xe8080000
 
+static struct rcar_sysc_ch r8a7790_ca15_scu = {
+       .chan_offs = 0x180, /* PWRSR5 .. PWRER5 */
+       .isr_bit = 12, /* CA15-SCU */
+};
+
 static struct rcar_sysc_ch r8a7790_ca7_scu = {
        .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */
        .isr_bit = 21, /* CA7-SCU */
@@ -64,6 +69,7 @@ static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus)
 
        /* turn on power to SCU */
        r8a7790_pm_init();
+       rcar_sysc_power_up(&r8a7790_ca15_scu);
        rcar_sysc_power_up(&r8a7790_ca7_scu);
 }
 
This page took 0.027049 seconds and 5 git commands to generate.