ARM: shmobile: marzen-reference: Move clock and OF device initialisation into board...
authorSimon Horman <horms+renesas@verge.net.au>
Thu, 15 May 2014 11:32:03 +0000 (20:32 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 17 Jun 2014 10:56:27 +0000 (19:56 +0900)
Move the clock initialisation and OF device population from
SoC to board code. This is in keeping with the pattern used by Lager.
And the clock portion is part of decoupling clock initialisation
from SoC code in preparation for moving to the common clock framework.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-marzen-reference.c
arch/arm/mach-shmobile/setup-r8a7779.c

index 94bd57203ff5890045852fe74f4bcce84edd0b39..46ed17a50183c4ff6d9818587de9fcad0c499a73 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <linux/of_platform.h>
 #include <mach/r8a7779.h>
 #include <asm/irq.h>
 #include <asm/mach/arch.h>
@@ -27,7 +28,9 @@
 
 static void __init marzen_init(void)
 {
+       r8a7779_clock_init();
        r8a7779_add_standard_devices_dt();
+       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
        r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */
 }
 
index 23122f62366c151ca31a163e3d87524370b09527..15f533b89702fdf278ec335f462b5e5bdee71762 100644 (file)
@@ -744,12 +744,8 @@ void __init r8a7779_init_delay(void)
 
 void __init r8a7779_add_standard_devices_dt(void)
 {
-       /* clocks are setup late during boot in the case of DT */
-       r8a7779_clock_init();
-
        platform_add_devices(r8a7779_devices_dt,
                             ARRAY_SIZE(r8a7779_devices_dt));
-       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 #define MODEMR         0xffcc0020
This page took 0.042253 seconds and 5 git commands to generate.