aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-07-24 03:30:42 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-07-30 00:28:01 -0400
commit7ebbb4ae6f2d6242178d332c67ad49772f9fe88d (patch)
tree829be78f1736ab9adbbc7b10064252824186eb58 /arch/arm/mach-shmobile
parentd6b51d6b6a33974dfa7b091f61e7a2bedd62f298 (diff)
ARM: shmobile: marzen: Switch to DT_MACHINE_START
Convert the marzen board to use DT_MACHINE_START. With this in place all mach-shmobile boards use DT_MACHINE_START. Also, this makes it possible for the r8a7779 SMP code to use DT for CPUs. Signed-off-by: Magnus Damm <damm@opensource.se> [horms+renesas@verge.net.au: Select USE_OF in Kconfig] [horms+renesas@verge.net.au: Provide dt_compat in DT_MACHINE_START] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/Kconfig1
-rw-r--r--arch/arm/mach-shmobile/board-marzen.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 9e07985866b7..16c30722cbda 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -156,6 +156,7 @@ config MACH_MARZEN
156 depends on ARCH_R8A7779 156 depends on ARCH_R8A7779
157 select ARCH_REQUIRE_GPIOLIB 157 select ARCH_REQUIRE_GPIOLIB
158 select REGULATOR_FIXED_VOLTAGE if REGULATOR 158 select REGULATOR_FIXED_VOLTAGE if REGULATOR
159 select USE_OF
159 160
160config MACH_MARZEN_REFERENCE 161config MACH_MARZEN_REFERENCE
161 bool "MARZEN board - Reference Device Tree Implementation" 162 bool "MARZEN board - Reference Device Tree Implementation"
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c
index a7d1010505bf..bcd07c065224 100644
--- a/arch/arm/mach-shmobile/board-marzen.c
+++ b/arch/arm/mach-shmobile/board-marzen.c
@@ -238,7 +238,12 @@ static void __init marzen_init(void)
238 platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices)); 238 platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices));
239} 239}
240 240
241MACHINE_START(MARZEN, "marzen") 241static const char *marzen_boards_compat_dt[] __initdata = {
242 "renesas,marzen",
243 NULL,
244};
245
246DT_MACHINE_START(MARZEN, "marzen")
242 .smp = smp_ops(r8a7779_smp_ops), 247 .smp = smp_ops(r8a7779_smp_ops),
243 .map_io = r8a7779_map_io, 248 .map_io = r8a7779_map_io,
244 .init_early = r8a7779_add_early_devices, 249 .init_early = r8a7779_add_early_devices,
@@ -246,5 +251,6 @@ MACHINE_START(MARZEN, "marzen")
246 .init_irq = r8a7779_init_irq, 251 .init_irq = r8a7779_init_irq,
247 .init_machine = marzen_init, 252 .init_machine = marzen_init,
248 .init_late = r8a7779_init_late, 253 .init_late = r8a7779_init_late,
254 .dt_compat = marzen_boards_compat_dt,
249 .init_time = r8a7779_earlytimer_init, 255 .init_time = r8a7779_earlytimer_init,
250MACHINE_END 256MACHINE_END