diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-03-21 06:03:38 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-04-02 21:50:42 -0400 |
commit | 53e42c2974feaa269bc485267d0a4df0ef55e549 (patch) | |
tree | 30b3bb638139d6d5131eb9e579661a20947c9f8c /arch/arm/mach-shmobile | |
parent | eb0ae7280939fda741ad6ae9b108725517652f56 (diff) |
ARM: shmobile: add R-Car M1A Bock-W platform support
Add basic Bock-W board support
More devices will be added on top of this patch after
PICNTRL and clock framework are in better shape.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@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/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw.c | 43 |
3 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 3933a315adf2..18712ad7ccc4 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -124,6 +124,12 @@ config MACH_ARMADILLO800EVA | |||
124 | select SND_SOC_WM8978 if SND_SIMPLE_CARD | 124 | select SND_SOC_WM8978 if SND_SIMPLE_CARD |
125 | select USE_OF | 125 | select USE_OF |
126 | 126 | ||
127 | config MACH_BOCKW | ||
128 | bool "BOCK-W platform" | ||
129 | depends on ARCH_R8A7778 | ||
130 | select ARCH_REQUIRE_GPIOLIB | ||
131 | select USE_OF | ||
132 | |||
127 | config MACH_MARZEN | 133 | config MACH_MARZEN |
128 | bool "MARZEN board" | 134 | bool "MARZEN board" |
129 | depends on ARCH_R8A7779 | 135 | depends on ARCH_R8A7779 |
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 0c9a2901370e..5eada967ec6b 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -40,6 +40,7 @@ obj-$(CONFIG_MACH_AG5EVM) += board-ag5evm.o | |||
40 | obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o | 40 | obj-$(CONFIG_MACH_MACKEREL) += board-mackerel.o |
41 | obj-$(CONFIG_MACH_KOTA2) += board-kota2.o | 41 | obj-$(CONFIG_MACH_KOTA2) += board-kota2.o |
42 | obj-$(CONFIG_MACH_BONITO) += board-bonito.o | 42 | obj-$(CONFIG_MACH_BONITO) += board-bonito.o |
43 | obj-$(CONFIG_MACH_BOCKW) += board-bockw.o | ||
43 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o | 44 | obj-$(CONFIG_MACH_MARZEN) += board-marzen.o |
44 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o | 45 | obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o |
45 | obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o | 46 | obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o |
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c new file mode 100644 index 000000000000..56ab56ed5f59 --- /dev/null +++ b/arch/arm/mach-shmobile/board-bockw.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * Bock-W board support | ||
3 | * | ||
4 | * Copyright (C) 2013 Renesas Solutions Corp. | ||
5 | * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | ||
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/platform_device.h> | ||
22 | #include <mach/common.h> | ||
23 | #include <mach/r8a7778.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | |||
26 | static void __init bockw_init(void) | ||
27 | { | ||
28 | r8a7778_clock_init(); | ||
29 | r8a7778_add_standard_devices(); | ||
30 | } | ||
31 | |||
32 | static const char *bockw_boards_compat_dt[] __initdata = { | ||
33 | "renesas,bockw", | ||
34 | NULL, | ||
35 | }; | ||
36 | |||
37 | DT_MACHINE_START(BOCKW_DT, "bockw") | ||
38 | .init_early = r8a7778_init_delay, | ||
39 | .init_irq = r8a7778_init_irq_dt, | ||
40 | .init_machine = bockw_init, | ||
41 | .init_time = shmobile_timer_init, | ||
42 | .dt_compat = bockw_boards_compat_dt, | ||
43 | MACHINE_END | ||