MLK-18605-9 drm/bridge: sec-dsim: increase timeout values for BTA and LPRX
authorFancy Fang <chen.fang@nxp.com>
Mon, 16 Jul 2018 05:52:11 +0000 (13:52 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
The current timeout values for 'BTA' and 'LPRX' in register
'DSIM_TIMEOUT' is not long enough for some dsi peripherals,
so increase them long enough for all current peripherals to
avoid timeout errors generation in some cases.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 8e2b86b317382635e74002a5b2a466804247e61a)
(cherry picked from commit cf7e6fc89b939684cb5ee66ff501db540981e222)

drivers/gpu/drm/bridge/sec-dsim.c

index 9f79284..87cad74 100644 (file)
@@ -609,9 +609,9 @@ static void sec_mipi_dsim_config_dphy(struct sec_mipi_dsim *dsim)
                      PHYTIMING2_SET_M_THSTRAILCTL(11);
        dsim_write(dsim, phytiming2, DSIM_PHYTIMING2);
 
-       timeout |= TIMEOUT_SET_BTAOUT(0xf     |
-                  TIMEOUT_SET_LPDRTOUT(0xf);
-       dsim_write(dsim, 0xf000f, DSIM_TIMEOUT);
+       timeout |= TIMEOUT_SET_BTAOUT(0xff)     |
+                  TIMEOUT_SET_LPDRTOUT(0xff);
+       dsim_write(dsim, timeout, DSIM_TIMEOUT);
 }
 
 static void sec_mipi_dsim_init_fifo_pointers(struct sec_mipi_dsim *dsim)