diff options
author | Hisashi Nakamura <hisashi.nakamura.ak@renesas.com> | 2014-10-24 17:33:08 +0900 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-11-04 09:31:23 +0900 |
commit | a8d2ff39c7c4a5ce50df2a47d5f8523810dd4c29 (patch) | |
tree | b2c270f882f383662889efc0d6bfc9d70a4d70b6 /arch/arm/mach-shmobile/smp-r8a7791.c | |
parent | 3794705aeb318c431c07072f04380c78cc5a84ac (diff) | |
download | op-kernel-dev-a8d2ff39c7c4a5ce50df2a47d5f8523810dd4c29.zip op-kernel-dev-a8d2ff39c7c4a5ce50df2a47d5f8523810dd4c29.tar.gz |
ARM: shmobile: Separate APMU resource data into CPU dependant part
APMU resources are not common to all R-Car SoCs so don't share this data.
A subsequent patch will correct the CPU cores for the r8a7791.
Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/smp-r8a7791.c')
-rw-r--r-- | arch/arm/mach-shmobile/smp-r8a7791.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/smp-r8a7791.c b/arch/arm/mach-shmobile/smp-r8a7791.c index f743386..96e392c 100644 --- a/arch/arm/mach-shmobile/smp-r8a7791.c +++ b/arch/arm/mach-shmobile/smp-r8a7791.c @@ -21,13 +21,27 @@ #include <asm/smp_plat.h> #include "common.h" +#include "platsmp-apmu.h" #include "r8a7791.h" #include "rcar-gen2.h" +static struct rcar_apmu_config r8a7791_apmu_config[] = { + { + .iomem = DEFINE_RES_MEM(0xe6152000, 0x88), + .cpus = { 0, 1, 2, 3 }, + }, + { + .iomem = DEFINE_RES_MEM(0xe6151000, 0x88), + .cpus = { 0x100, 0x0101, 0x102, 0x103 }, + } +}; + static void __init r8a7791_smp_prepare_cpus(unsigned int max_cpus) { /* let APMU code install data related to shmobile_boot_vector */ - shmobile_smp_apmu_prepare_cpus(max_cpus); + shmobile_smp_apmu_prepare_cpus(max_cpus, + r8a7791_apmu_config, + ARRAY_SIZE(r8a7791_apmu_config)); r8a7791_pm_init(); } |