aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeita Kobayashi <keita.kobayashi.ym@renesas.com>2014-01-15 07:26:13 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-02-23 18:55:47 -0500
commitc2c97ec513b503b9e0d28ffd98d54c9e9bf3ea3e (patch)
tree14d1feb06f461524e7a982fcda5fab5f84929307
parent0445ded61aac0c1a6f43b4be1a2ca2ca47b77eb8 (diff)
ARM: shmobile: r8a7790 CA15-SCU enablement
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>
-rw-r--r--arch/arm/mach-shmobile/smp-r8a7790.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c
index beb47ae9d05a..591052799e8f 100644
--- a/arch/arm/mach-shmobile/smp-r8a7790.c
+++ b/arch/arm/mach-shmobile/smp-r8a7790.c
@@ -29,6 +29,11 @@
29#define CA7RESCNT 0x0044 29#define CA7RESCNT 0x0044
30#define MERAM 0xe8080000 30#define MERAM 0xe8080000
31 31
32static struct rcar_sysc_ch r8a7790_ca15_scu = {
33 .chan_offs = 0x180, /* PWRSR5 .. PWRER5 */
34 .isr_bit = 12, /* CA15-SCU */
35};
36
32static struct rcar_sysc_ch r8a7790_ca7_scu = { 37static struct rcar_sysc_ch r8a7790_ca7_scu = {
33 .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ 38 .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */
34 .isr_bit = 21, /* CA7-SCU */ 39 .isr_bit = 21, /* CA7-SCU */
@@ -64,6 +69,7 @@ static void __init r8a7790_smp_prepare_cpus(unsigned int max_cpus)
64 69
65 /* turn on power to SCU */ 70 /* turn on power to SCU */
66 r8a7790_pm_init(); 71 r8a7790_pm_init();
72 rcar_sysc_power_up(&r8a7790_ca15_scu);
67 rcar_sysc_power_up(&r8a7790_ca7_scu); 73 rcar_sysc_power_up(&r8a7790_ca7_scu);
68} 74}
69 75