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>
Fri, 5 Dec 2014 08:33:46 +0000 (17:33 +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>
(cherry picked from commit 18b27aeb5591588de35628bf1e423abf24fe9695)
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 fba2949..04c0c37 100644 (file)
        status = "okay";
 };
 
+&tmu0 {
+       status = "okay";
+};
+
 &pfc {
        scif0_pins: serial0 {
                renesas,groups = "scif0_data_a", "scif0_ctrl";
index f2fc7b9..6961c2d 100644 (file)
@@ -289,8 +289,6 @@ void __init r8a7778_add_dt_devices(void)
                l2x0_init(base, 0x40470000, 0x82000fff);
        }
 #endif
-
-       r8a7778_register_tmu(0);
 }
 
 /* HPB-DMA */
@@ -498,6 +496,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);