Searched refs:pcw (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/clk/mediatek/ |
D | clk-pll.c | 68 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument 81 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate() 120 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs() argument 142 val |= pcw << pll->data->pcw_shift; in mtk_pll_set_rate_regs() 164 static void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument 198 *pcw = (u32)_pcw; in mtk_pll_calc_values() 205 u32 pcw = 0; in mtk_pll_set_rate() local 208 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate() 209 mtk_pll_set_rate_regs(pll, pcw, postdiv); in mtk_pll_set_rate() 219 u32 pcw; in mtk_pll_recalc_rate() local [all …]
|
/Linux-v6.1/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-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()
|