Home
last modified time | relevance | path

Searched refs:dlane_bps (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/phy/cadence/
Dcdns-dphy.c125 u64 dlane_bps; in cdns_dsi_get_dphy_pll_cfg() local
140 dlane_bps = opts->hs_clk_rate; in cdns_dsi_get_dphy_pll_cfg()
142 if (dlane_bps > 2500000000UL || dlane_bps < 160000000UL) in cdns_dsi_get_dphy_pll_cfg()
144 else if (dlane_bps >= 1250000000) in cdns_dsi_get_dphy_pll_cfg()
146 else if (dlane_bps >= 630000000) in cdns_dsi_get_dphy_pll_cfg()
148 else if (dlane_bps >= 320000000) in cdns_dsi_get_dphy_pll_cfg()
150 else if (dlane_bps >= 160000000) in cdns_dsi_get_dphy_pll_cfg()
153 cfg->pll_fbdiv = DIV_ROUND_UP_ULL(dlane_bps * 2 * cfg->pll_opdiv * in cdns_dsi_get_dphy_pll_cfg()
/linux-6.6.21/drivers/gpu/drm/bridge/cadence/
Dcdns-dsi-core.c520 unsigned long long dlane_bps; in cdns_dsi_adjust_phy_config() local
545 dlane_bps = (unsigned long long)dpi_hz * adj_dsi_htotal; in cdns_dsi_adjust_phy_config()
549 if (do_div(dlane_bps, lanes * dpi_htotal)) in cdns_dsi_adjust_phy_config()
553 phy_cfg->hs_clk_rate = dlane_bps * 8; in cdns_dsi_adjust_phy_config()