drm/rockchip/dsi: fix insufficient bandwidth of some panel

Set the lanes bps to 1 / 0.9 times of pclk, the margin is not enough
for some panel, it will cause the screen display is not normal, so
increases the badnwidth to 1 / 0.8.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1487577744-2855-7-git-send-email-zyw@rock-chips.com
This commit is contained in:
Chris Zhong 2017-02-20 16:02:22 +08:00 коммит произвёл Sean Paul
Родитель 7df1207f3b
Коммит ad1c974bf1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -529,8 +529,8 @@ static int dw_mipi_dsi_get_lane_bps(struct dw_mipi_dsi *dsi,
mpclk = DIV_ROUND_UP(mode->clock, MSEC_PER_SEC); mpclk = DIV_ROUND_UP(mode->clock, MSEC_PER_SEC);
if (mpclk) { if (mpclk) {
/* take 1 / 0.9, since mbps must big than bandwidth of RGB */ /* take 1 / 0.8, since mbps must big than bandwidth of RGB */
tmp = mpclk * (bpp / dsi->lanes) * 10 / 9; tmp = mpclk * (bpp / dsi->lanes) * 10 / 8;
if (tmp < max_mbps) if (tmp < max_mbps)
target_mbps = tmp; target_mbps = tmp;
else else