]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: reduce the hbp and hfp for phy timing
authorJitao Shi <jitao.shi@mediatek.com>
Fri, 13 Dec 2019 09:52:15 +0000 (17:52 +0800)
committerCK Hu <ck.hu@mediatek.com>
Tue, 17 Dec 2019 02:23:43 +0000 (10:23 +0800)
commit3fdb75fb551f372faf3a1fe70d0914ac1a47b3e6
tree845c4a9f8fdef303c4d0784e32c5c120703cef92
parent7c554c912da9668e597dac8be32a0356a4363a44
drm/mediatek: reduce the hbp and hfp for phy timing

There are some extra data transfer in dsi.
ex. LPX, hs_prepare, hs_zero, hs_exit and the sof/eof of dsi packet.
This signal will enlarge the line time. So the real frame on dsi bus
will be lower than calc by video timing.

So dsi driver reduces the hbp and hfp to keep the line time.

Fixes: 9b3201c4e5a1 ("drm/mediatek: change the dsi phytiming calculate method")
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_dsi.c