aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Brandt <chris.brandt@renesas.com>2018-07-25 17:22:18 -0400
committerSimon Horman <horms+renesas@verge.net.au>2018-08-27 09:06:42 -0400
commit332df9828e94d4288825584638b7df6ad4c1ff38 (patch)
tree40b6ac86a3271435f45285c5c1c5bcade2a80272
parent2a4056a759e26745f3a19431f5428c581fd8f347 (diff)
ARM: shmobile: Add basic RZ/A2 SoC support
Add the RZ/A2 SoC to the Renesas SoC collection. Signed-off-by: Chris Brandt <chris.brandt@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/Kconfig6
-rw-r--r--arch/arm/mach-shmobile/Makefile1
-rw-r--r--arch/arm/mach-shmobile/setup-r7s9210.c27
3 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index aeb2eed08598..94e9431d92b8 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -55,6 +55,12 @@ config ARCH_R7S72100
55 select SYS_SUPPORTS_SH_MTU2 55 select SYS_SUPPORTS_SH_MTU2
56 select RENESAS_OSTM 56 select RENESAS_OSTM
57 57
58config ARCH_R7S9210
59 bool "RZ/A2 (R7S9210)"
60 select PM
61 select PM_GENERIC_DOMAINS
62 select RENESAS_OSTM
63
58config ARCH_R8A73A4 64config ARCH_R8A73A4
59 bool "R-Mobile APE6 (R8A73A40)" 65 bool "R-Mobile APE6 (R8A73A40)"
60 select ARCH_RMOBILE 66 select ARCH_RMOBILE
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index b33dc59d8698..5591646cb9bb 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -14,6 +14,7 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
14obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o 14obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o
15obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o 15obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
16obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o 16obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
17obj-$(CONFIG_ARCH_R7S9210) += setup-r7s9210.o
17 18
18# CPU reset vector handling objects 19# CPU reset vector handling objects
19cpu-y := platsmp.o headsmp.o 20cpu-y := platsmp.o headsmp.o
diff --git a/arch/arm/mach-shmobile/setup-r7s9210.c b/arch/arm/mach-shmobile/setup-r7s9210.c
new file mode 100644
index 000000000000..573fb9955e7e
--- /dev/null
+++ b/arch/arm/mach-shmobile/setup-r7s9210.c
@@ -0,0 +1,27 @@
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * r7s9210 processor support
4 *
5 * Copyright (C) 2018 Renesas Electronics Corporation
6 * Copyright (C) 2018 Chris Brandt
7 *
8 */
9
10#include <linux/kernel.h>
11
12#include <asm/mach/arch.h>
13
14#include "common.h"
15
16static const char *const r7s9210_boards_compat_dt[] __initconst = {
17 "renesas,r7s9210",
18 NULL,
19};
20
21DT_MACHINE_START(R7S72100_DT, "Generic R7S9210 (Flattened Device Tree)")
22 .l2c_aux_val = 0,
23 .l2c_aux_mask = ~0,
24 .init_early = shmobile_init_delay,
25 .init_late = shmobile_init_late,
26 .dt_compat = r7s9210_boards_compat_dt,
27MACHINE_END