diff options
-rw-r--r-- | arch/arm/mach-shmobile/Kconfig | 11 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/Makefile.boot | 3 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-genmai-reference.c | 44 |
4 files changed, 58 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 17a4f409f96d..8bc730890384 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -207,6 +207,17 @@ config MACH_GENMAI | |||
207 | depends on ARCH_R7S72100 | 207 | depends on ARCH_R7S72100 |
208 | select USE_OF | 208 | select USE_OF |
209 | 209 | ||
210 | config MACH_GENMAI_REFERENCE | ||
211 | bool "Genmai board - Reference Device Tree Implementation" | ||
212 | depends on ARCH_R7S72100 | ||
213 | select USE_OF | ||
214 | ---help--- | ||
215 | Use reference implementation of Genmai board support | ||
216 | which makes use of device tree at the expense | ||
217 | of not supporting a number of devices. | ||
218 | |||
219 | This is intended to aid developers | ||
220 | |||
210 | config MACH_MARZEN | 221 | config MACH_MARZEN |
211 | bool "MARZEN board" | 222 | bool "MARZEN board" |
212 | depends on ARCH_R8A7779 | 223 | depends on ARCH_R8A7779 |
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 021775de50ae..d2b8342ea242 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -65,6 +65,7 @@ obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o | |||
65 | obj-$(CONFIG_MACH_BOCKW) += board-bockw.o | 65 | obj-$(CONFIG_MACH_BOCKW) += board-bockw.o |
66 | obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o | 66 | obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o |
67 | obj-$(CONFIG_MACH_GENMAI) += board-genmai.o | 67 | obj-$(CONFIG_MACH_GENMAI) += board-genmai.o |
68 | obj-$(CONFIG_MACH_GENMAI_REFERENCE) += board-genmai-reference.o | ||
68 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o | 69 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o |
69 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o | 70 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o |
70 | obj-$(CONFIG_MACH_LAGER) += board-lager.o | 71 | obj-$(CONFIG_MACH_LAGER) += board-lager.o |
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot index 892d4ab8b23d..759e4f8fcd37 100644 --- a/arch/arm/mach-shmobile/Makefile.boot +++ b/arch/arm/mach-shmobile/Makefile.boot | |||
@@ -6,7 +6,8 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 | |||
6 | loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 | 6 | loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 |
7 | loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 | 7 | loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 |
8 | loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 | 8 | loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 |
9 | loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 | 9 | loadaddr-$(CONFIG_MACH_GENMAI) += 0x08008000 |
10 | loadaddr-$(CONFIG_MACH_GENMAI_REFERENCE) += 0x08008000 | ||
10 | loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 | 11 | loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 |
11 | loadaddr-$(CONFIG_MACH_KOELSCH_REFERENCE) += 0x40008000 | 12 | loadaddr-$(CONFIG_MACH_KOELSCH_REFERENCE) += 0x40008000 |
12 | loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 | 13 | loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 |
diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c new file mode 100644 index 000000000000..34c98819cf12 --- /dev/null +++ b/arch/arm/mach-shmobile/board-genmai-reference.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * Genmai board support | ||
3 | * | ||
4 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
5 | * Copyright (C) 2013 Magnus Damm | ||
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 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/of_platform.h> | ||
23 | #include <mach/common.h> | ||
24 | #include <mach/r7s72100.h> | ||
25 | #include <asm/mach-types.h> | ||
26 | #include <asm/mach/arch.h> | ||
27 | |||
28 | static void __init genmai_add_standard_devices(void) | ||
29 | { | ||
30 | r7s72100_clock_init(); | ||
31 | r7s72100_add_dt_devices(); | ||
32 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
33 | } | ||
34 | |||
35 | static const char * const genmai_boards_compat_dt[] __initconst = { | ||
36 | "renesas,genmai-reference", | ||
37 | NULL, | ||
38 | }; | ||
39 | |||
40 | DT_MACHINE_START(GENMAI_DT, "genmai") | ||
41 | .init_early = r7s72100_init_early, | ||
42 | .init_machine = genmai_add_standard_devices, | ||
43 | .dt_compat = genmai_boards_compat_dt, | ||
44 | MACHINE_END | ||