ARM: shmobile: Add basic RZ/A2 SoC support
authorChris Brandt <chris.brandt@renesas.com>
Wed, 25 Jul 2018 21:22:18 +0000 (16:22 -0500)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 27 Aug 2018 13:06:42 +0000 (15:06 +0200)
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>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/Makefile
arch/arm/mach-shmobile/setup-r7s9210.c [new file with mode: 0644]

index aeb2eed..94e9431 100644 (file)
@@ -55,6 +55,12 @@ config ARCH_R7S72100
        select SYS_SUPPORTS_SH_MTU2
        select RENESAS_OSTM
 
+config ARCH_R7S9210
+       bool "RZ/A2 (R7S9210)"
+       select PM
+       select PM_GENERIC_DOMAINS
+       select RENESAS_OSTM
+
 config ARCH_R8A73A4
        bool "R-Mobile APE6 (R8A73A40)"
        select ARCH_RMOBILE
index b33dc59..5591646 100644 (file)
@@ -14,6 +14,7 @@ obj-$(CONFIG_ARCH_R8A7778)    += setup-r8a7778.o
 obj-$(CONFIG_ARCH_R8A7779)     += setup-r8a7779.o
 obj-$(CONFIG_ARCH_EMEV2)       += setup-emev2.o
 obj-$(CONFIG_ARCH_R7S72100)    += setup-r7s72100.o
+obj-$(CONFIG_ARCH_R7S9210)     += setup-r7s9210.o
 
 # CPU reset vector handling objects
 cpu-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 (file)
index 0000000..573fb99
--- /dev/null
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * r7s9210 processor support
+ *
+ * Copyright (C) 2018  Renesas Electronics Corporation
+ * Copyright (C) 2018  Chris Brandt
+ *
+ */
+
+#include <linux/kernel.h>
+
+#include <asm/mach/arch.h>
+
+#include "common.h"
+
+static const char *const r7s9210_boards_compat_dt[] __initconst = {
+       "renesas,r7s9210",
+       NULL,
+};
+
+DT_MACHINE_START(R7S72100_DT, "Generic R7S9210 (Flattened Device Tree)")
+       .l2c_aux_val    = 0,
+       .l2c_aux_mask   = ~0,
+       .init_early     = shmobile_init_delay,
+       .init_late      = shmobile_init_late,
+       .dt_compat      = r7s9210_boards_compat_dt,
+MACHINE_END