Lines Matching full:timing
233 struct mtk_phy_timing *timing = &dsi->phy_timing; in mtk_dsi_phy_timconfig() local
235 timing->lpx = (60 * data_rate_mhz / (8 * 1000)) + 1; in mtk_dsi_phy_timconfig()
236 timing->da_hs_prepare = (80 * data_rate_mhz + 4 * 1000) / 8000; in mtk_dsi_phy_timconfig()
237 timing->da_hs_zero = (170 * data_rate_mhz + 10 * 1000) / 8000 + 1 - in mtk_dsi_phy_timconfig()
238 timing->da_hs_prepare; in mtk_dsi_phy_timconfig()
239 timing->da_hs_trail = timing->da_hs_prepare + 1; in mtk_dsi_phy_timconfig()
241 timing->ta_go = 4 * timing->lpx - 2; in mtk_dsi_phy_timconfig()
242 timing->ta_sure = timing->lpx + 2; in mtk_dsi_phy_timconfig()
243 timing->ta_get = 4 * timing->lpx; in mtk_dsi_phy_timconfig()
244 timing->da_hs_exit = 2 * timing->lpx + 1; in mtk_dsi_phy_timconfig()
246 timing->clk_hs_prepare = 70 * data_rate_mhz / (8 * 1000); in mtk_dsi_phy_timconfig()
247 timing->clk_hs_post = timing->clk_hs_prepare + 8; in mtk_dsi_phy_timconfig()
248 timing->clk_hs_trail = timing->clk_hs_prepare; in mtk_dsi_phy_timconfig()
249 timing->clk_hs_zero = timing->clk_hs_trail * 4; in mtk_dsi_phy_timconfig()
250 timing->clk_hs_exit = 2 * timing->clk_hs_trail; in mtk_dsi_phy_timconfig()
252 timcon0 = timing->lpx | timing->da_hs_prepare << 8 | in mtk_dsi_phy_timconfig()
253 timing->da_hs_zero << 16 | timing->da_hs_trail << 24; in mtk_dsi_phy_timconfig()
254 timcon1 = timing->ta_go | timing->ta_sure << 8 | in mtk_dsi_phy_timconfig()
255 timing->ta_get << 16 | timing->da_hs_exit << 24; in mtk_dsi_phy_timconfig()
256 timcon2 = 1 << 8 | timing->clk_hs_zero << 16 | in mtk_dsi_phy_timconfig()
257 timing->clk_hs_trail << 24; in mtk_dsi_phy_timconfig()
258 timcon3 = timing->clk_hs_prepare | timing->clk_hs_post << 8 | in mtk_dsi_phy_timconfig()
259 timing->clk_hs_exit << 16; in mtk_dsi_phy_timconfig()
456 struct mtk_phy_timing *timing = &dsi->phy_timing; in mtk_dsi_config_vdo_timing() local
482 data_phy_cycles = timing->lpx + timing->da_hs_prepare + in mtk_dsi_config_vdo_timing()
483 timing->da_hs_zero + timing->da_hs_exit + 3; in mtk_dsi_config_vdo_timing()