aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>2014-09-04 10:02:28 -0400
committerSimon Horman <horms+renesas@verge.net.au>2014-09-05 04:23:49 -0400
commit5923abb205e05773e0bb16c7ca4c0b41dbeec40e (patch)
treec3cb80c143b3319565538b0a9cdb23304b1784e0 /arch/arm/mach-shmobile
parent0dc50fd3dc4a70d0d317103188c129d378125643 (diff)
ARM: shmobile: Initial r8a7794 SoC support
Initial support for the r8a7794 SoC, based on work by Hisashi Nakamura. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/Kconfig4
-rw-r--r--arch/arm/mach-shmobile/Makefile1
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7794.c35
3 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index e15dff790dbb..05f4cc07dffb 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -41,6 +41,10 @@ config ARCH_R8A7791
41 select RENESAS_IRQC 41 select RENESAS_IRQC
42 select SYS_SUPPORTS_SH_CMT 42 select SYS_SUPPORTS_SH_CMT
43 43
44config ARCH_R8A7794
45 bool "R-Car E2 (R8A77940)"
46 select ARCH_RCAR_GEN2
47
44comment "Renesas ARM SoCs Board Type" 48comment "Renesas ARM SoCs Board Type"
45 49
46config MACH_GENMAI 50config MACH_GENMAI
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index a6a1dc0335ae..6b61d69bdd79 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -15,6 +15,7 @@ obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o
15obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o 15obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o
16obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o 16obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o setup-rcar-gen2.o
17obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o 17obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o setup-rcar-gen2.o
18obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o
18obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o 19obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
19obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o 20obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
20 21
diff --git a/arch/arm/mach-shmobile/setup-r8a7794.c b/arch/arm/mach-shmobile/setup-r8a7794.c
new file mode 100644
index 000000000000..05e970c96efe
--- /dev/null
+++ b/arch/arm/mach-shmobile/setup-r8a7794.c
@@ -0,0 +1,35 @@
1/*
2 * r8a7794 processor support
3 *
4 * Copyright (C) 2014 Renesas Electronics Corporation
5 * Copyright (C) 2014 Ulrich Hecht
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <linux/of_platform.h>
18#include "common.h"
19#include "rcar-gen2.h"
20#include <asm/mach/arch.h>
21
22#ifdef CONFIG_USE_OF
23
24static const char * const r8a7794_boards_compat_dt[] __initconst = {
25 "renesas,r8a7794",
26 NULL,
27};
28
29DT_MACHINE_START(R8A7794_DT, "Generic R8A7794 (Flattened Device Tree)")
30 .init_early = shmobile_init_delay,
31 .init_late = shmobile_init_late,
32 .init_time = rcar_gen2_timer_init,
33 .dt_compat = r8a7794_boards_compat_dt,
34MACHINE_END
35#endif /* CONFIG_USE_OF */