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)
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)