ARM: shmobile: marzen: Switch to DT_MACHINE_START
authorMagnus Damm <damm@opensource.se>
Wed, 24 Jul 2013 07:30:42 +0000 (16:30 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 30 Jul 2013 04:28:01 +0000 (13:28 +0900)
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>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/board-marzen.c

index 9e07985866b73b7dc0f987016e8367203ce27237..16c30722cbdaeccc2ec95a61013810a46bbd6dd9 100644 (file)
@@ -156,6 +156,7 @@ config MACH_MARZEN
        depends on ARCH_R8A7779
        select ARCH_REQUIRE_GPIOLIB
        select REGULATOR_FIXED_VOLTAGE if REGULATOR
+       select USE_OF
 
 config MACH_MARZEN_REFERENCE
        bool "MARZEN board - Reference Device Tree Implementation"
index a7d1010505bf9ff9246df09eca4a9706f2cf3a3f..bcd07c065224ee9e16a93c598cdc50e4d3d5cf8c 100644 (file)
@@ -238,7 +238,12 @@ static void __init marzen_init(void)
        platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices));
 }
 
-MACHINE_START(MARZEN, "marzen")
+static const char *marzen_boards_compat_dt[] __initdata = {
+        "renesas,marzen",
+        NULL,
+};
+
+DT_MACHINE_START(MARZEN, "marzen")
        .smp            = smp_ops(r8a7779_smp_ops),
        .map_io         = r8a7779_map_io,
        .init_early     = r8a7779_add_early_devices,
@@ -246,5 +251,6 @@ MACHINE_START(MARZEN, "marzen")
        .init_irq       = r8a7779_init_irq,
        .init_machine   = marzen_init,
        .init_late      = r8a7779_init_late,
+       .dt_compat      = marzen_boards_compat_dt,
        .init_time      = r8a7779_earlytimer_init,
 MACHINE_END