summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItsuki Yamashita <yamashitai@casio.co.jp>2016-01-13 15:55:29 +0900
committerItsuki Yamashita <yamashitai@casio.co.jp>2016-01-26 19:43:29 +0900
commit66b1c408a54b38fd82df58e632f524475a61d71e (patch)
tree633e6cf1b30152685f12eeb65078b6ce6643e5d8
parent767626f077df67edd5e81ff23d3fdfd848147c6d (diff)
downloadkoi-uboot-66b1c408a54b38fd82df58e632f524475a61d71e.tar.gz
mipi: add delay for lp mode
BUG=26192606 Delay is needed to guarantee the completion of previous command. If delay is enough there is no stability issue. But there is performance degration. Casio determined to 500us for the delay. Performance is not so important for uboot. Change-Id: I3807741e18ded318f22b385111a3e9f6cc6a3522 Signed-off-by: Itsuki Yamashita <yamashitai@casio.co.jp>
-rw-r--r--drivers/video/exynos_mipi_dsi_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/exynos_mipi_dsi_common.c b/drivers/video/exynos_mipi_dsi_common.c
index 6531470f0..9aab41514 100644
--- a/drivers/video/exynos_mipi_dsi_common.c
+++ b/drivers/video/exynos_mipi_dsi_common.c
@@ -125,10 +125,10 @@ int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
return -EINVAL;
}
- delay_val = MHZ / dsim->dsim_config->esc_clk;
+ delay_val = MHZ * 1000 / dsim->dsim_config->esc_clk;
delay = 10 * delay_val;
- mdelay(delay);
+ udelay(delay);
/* only if transfer mode is LPDT, wait SFR becomes empty. */
if (dsim->state == DSIM_STATE_STOP) {