ARM: shmobile: bockw-reference: Initialise TMU device using DT
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 7 Jul 2014 07:54:31 +0000 (09:54 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 30 Oct 2014 00:56:30 +0000 (09:56 +0900)
Initialise TMU device using DT when booting bockw
using DT-reference.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7778-bockw-reference.dts
arch/arm/mach-shmobile/setup-r8a7778.c

index fba294905ff426900390f0428b6bdd26dbf512ac..04c0c37bb7843997f127535e7f73e93cbf8bb8bb 100644 (file)
        status = "okay";
 };
 
+&tmu0 {
+       status = "okay";
+};
+
 &pfc {
        scif0_pins: serial0 {
                renesas,groups = "scif0_data_a", "scif0_ctrl";
index 8ec784fc6b266443bfd32881d06134dde919dc16..7c7223de1e9c99bc8a0524791e76488dcee6e269 100644 (file)
@@ -288,8 +288,6 @@ void __init r8a7778_add_dt_devices(void)
                l2x0_init(base, 0x00400000, 0xc20f0fff);
        }
 #endif
-
-       r8a7778_register_tmu(0);
 }
 
 /* HPB-DMA */
@@ -497,6 +495,7 @@ static void __init r8a7778_register_hpb_dmae(void)
 void __init r8a7778_add_standard_devices(void)
 {
        r8a7778_add_dt_devices();
+       r8a7778_register_tmu(0);
        r8a7778_register_scif(0);
        r8a7778_register_scif(1);
        r8a7778_register_scif(2);