drm/rockchip: dsi: add dphy timing for possible external dphy

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I94e16fe908558edeb0919b64621f7a8c1c58c6a4
This commit is contained in:
Guochun Huang
2021-07-07 11:52:24 +08:00
committed by Tao Huang
parent c39319e998
commit fe9341a608

View File

@@ -698,12 +698,25 @@ struct hstt hstt_table[] = {
HSTT(1500, 181, 66, 153, 50)
};
struct dw_mipi_dsi_dphy_timing ext_dphy_timing = {
.clk_lp2hs = 0x40,
.clk_hs2lp = 0x40,
.data_lp2hs = 0x10,
.data_hs2lp = 0x14,
};
static int
dw_mipi_dsi_phy_get_timing(void *priv_data, unsigned int lane_mbps,
struct dw_mipi_dsi_dphy_timing *timing)
{
struct dw_mipi_dsi_rockchip *dsi = priv_data;
int i;
if (dsi->phy) {
*timing = ext_dphy_timing;
return 0;
}
for (i = 0; i < ARRAY_SIZE(hstt_table); i++)
if (lane_mbps < hstt_table[i].maxfreq)
break;