fbdev: sh_mipi_dsi: fixup setup timing of SYSCONF
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 9 Nov 2011 04:35:56 +0000 (20:35 -0800)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 21 Nov 2011 23:43:22 +0000 (23:43 +0000)
SYSCONF should be set after PHYCTRL

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/sh_mipi_dsi.c

index f2c3f94..187e127 100644 (file)
@@ -245,18 +245,6 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
 
        /* setup DSI link */
 
-       /*
-        * Default = ULPS enable |
-        *      Contention detection enabled |
-        *      EoT packet transmission enable |
-        *      CRC check enable |
-        *      ECC check enable
-        * additionally enable first two lanes
-        */
-       bitmap_fill((unsigned long *)&tmp, pdata->lane);
-       tmp |= 0x00003700;
-       iowrite32(tmp, base + SYSCONF);
-
        /*
         * T_wakeup = 0x7000
         * T_hs-trail = 3
@@ -287,6 +275,17 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
        /* Deassert resets, power on */
        iowrite32(0x03070001, base + PHYCTRL);
 
+       /*
+        * Default = ULPS enable |
+        *      Contention detection enabled |
+        *      EoT packet transmission enable |
+        *      CRC check enable |
+        *      ECC check enable
+        */
+       bitmap_fill((unsigned long *)&tmp, pdata->lane);
+       tmp |= 0x00003700;
+       iowrite32(tmp, base + SYSCONF);
+
        /* setup l-bridge */
 
        /*