Jitao Shi 7a5bc4e22e drm/mediatek: change the dsi phytiming calculate method
Change the method of frame rate calc which can get more accurate
frame rate.

data rate = pixel_clock * bit_per_pixel / lanes
Adjust hfp_wc to adapt the additional phy_data

if MIPI_DSI_MODE_VIDEO_BURST
	hfp_wc = hfp * bpp - data_phy_cycles * lanes - 12 - 6;
else
	hfp_wc = hfp * bpp - data_phy_cycles * lanes - 12;

Note:
//(2: 1 for sync, 1 for phy idle)
data_phy_cycles = T_hs_exit + T_lpx + T_hs_prepare + T_hs_zero + 2;

bpp: bit per pixel

Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Tested-by: Ryan Case <ryandcase@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
2019-10-07 12:29:38 +08:00
..
2019-09-27 11:13:35 -07:00
2019-09-19 16:24:24 -07:00
2019-08-14 18:31:10 +02:00
2019-09-19 16:24:24 -07:00
2019-07-22 21:24:10 +02:00
2019-08-06 09:20:58 +02:00
2019-09-27 11:13:35 -07:00
2019-09-19 16:24:24 -07:00
2019-06-19 12:07:29 +02:00
2019-08-27 17:21:04 +10:00
2019-08-14 18:30:52 +02:00
2019-07-17 12:52:55 +02:00
2019-09-20 08:36:47 -07:00
2019-09-19 16:24:24 -07:00
2019-09-19 16:24:24 -07:00
2019-09-19 16:24:24 -07:00
2019-06-30 09:48:05 +02:00
2019-09-27 11:13:35 -07:00
2019-09-19 16:24:24 -07:00
2019-09-27 11:13:35 -07:00
2019-08-09 09:15:05 +02:00
2019-09-19 16:24:24 -07:00
2019-07-17 12:52:55 +02:00
2019-09-27 11:13:35 -07:00
2019-09-19 16:24:24 -07:00
2019-09-27 11:13:35 -07:00
2019-06-05 20:31:04 +02:00
2019-09-19 16:24:24 -07:00
2019-07-15 18:11:31 +02:00
2019-06-05 20:29:57 +02:00
2019-09-19 16:24:24 -07:00
2019-07-17 12:52:55 +02:00
2019-09-19 16:24:24 -07:00
2019-08-21 16:44:41 +10:00
2019-07-15 18:11:30 +02:00
2019-07-17 12:52:55 +02:00
2019-09-19 16:24:24 -07:00
2019-09-19 16:24:24 -07:00
2019-07-15 18:11:30 +02:00
2019-09-19 16:24:24 -07:00
2019-07-22 21:24:10 +02:00
2019-05-27 18:07:03 +02:00
2019-05-27 18:07:03 +02:00
2019-05-27 18:07:03 +02:00
2019-05-27 18:07:03 +02:00
2019-05-27 18:07:03 +02:00
2019-06-19 12:07:29 +02:00
2019-05-27 18:07:03 +02:00
2019-07-22 21:24:10 +02:00
2019-05-27 18:07:03 +02:00
2019-06-19 12:07:29 +02:00
2019-07-25 10:45:07 +02:00
2019-09-19 16:24:24 -07:00
2019-05-27 18:07:03 +02:00
2019-05-27 18:07:03 +02:00
2019-06-19 12:07:29 +02:00
2019-05-27 18:07:03 +02:00
2019-06-19 12:07:29 +02:00
2019-08-09 16:04:31 +10:00