Searched refs:pcw (Results 1 – 6 of 6) sorted by relevance
/drivers/clk/mediatek/ |
D | clk-pll.c | 41 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument 54 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate() 93 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs() argument 115 val |= pcw << pll->data->pcw_shift; in mtk_pll_set_rate_regs() 137 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument 171 *pcw = (u32)_pcw; in mtk_pll_calc_values() 178 u32 pcw = 0; in mtk_pll_set_rate() local 181 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate() 182 mtk_pll_set_rate_regs(pll, pcw, postdiv); in mtk_pll_set_rate() 191 u32 pcw; in mtk_pll_recalc_rate() local [all …]
|
D | clk-pllfh.c | 32 u32 pcw = 0; in mtk_fhctl_set_rate() local 35 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_fhctl_set_rate() 37 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate()
|
D | clk-pll.h | 94 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv,
|
/drivers/phy/mediatek/ |
D | phy-mtk-mipi-dsi-mt8183.c | 52 u64 pcw; in mtk_mipi_tx_pll_enable() local 81 pcw = div_u64(((u64)mipi_tx->data_rate * txdiv) << 24, 26000000); in mtk_mipi_tx_pll_enable() 82 writel(pcw, base + MIPITX_PLL_CON0); in mtk_mipi_tx_pll_enable()
|
D | phy-mtk-hdmi-mt8195.c | 213 u64 tmds_clk, pixel_clk, da_hdmitx21_ref_ck, ns_hdmipll_ck, pcw; in mtk_hdmi_pll_calc() local 273 pcw = div_u64(((u64)ns_hdmipll_ck) << PCW_DECIMAL_WIDTH, in mtk_hdmi_pll_calc() 276 if (pcw > GENMASK_ULL(32, 0)) in mtk_hdmi_pll_calc() 279 fbkdiv_high = FIELD_GET(GENMASK_ULL(63, 32), pcw); in mtk_hdmi_pll_calc() 280 fbkdiv_low = FIELD_GET(GENMASK(31, 0), pcw); in mtk_hdmi_pll_calc()
|
D | phy-mtk-mipi-dsi-mt8173.c | 127 u64 pcw; in mtk_mipi_tx_pll_prepare() local 196 pcw = div_u64(((u64)mipi_tx->data_rate * 2 * txdiv) << 24, 26000000); in mtk_mipi_tx_pll_prepare() 197 writel(pcw, base + MIPITX_DSI_PLL_CON2); in mtk_mipi_tx_pll_prepare()
|