Home
last modified time | relevance | path

Searched refs:pll_hw (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/drivers/clk/actions/
Dowl-pll.c18 static u32 owl_pll_calculate_mul(struct owl_pll_hw *pll_hw, unsigned long rate) in owl_pll_calculate_mul() argument
22 mul = DIV_ROUND_CLOSEST(rate, pll_hw->bfreq); in owl_pll_calculate_mul()
23 if (mul < pll_hw->min_mul) in owl_pll_calculate_mul()
24 mul = pll_hw->min_mul; in owl_pll_calculate_mul()
25 else if (mul > pll_hw->max_mul) in owl_pll_calculate_mul()
26 mul = pll_hw->max_mul; in owl_pll_calculate_mul()
28 return mul & mul_mask(pll_hw); in owl_pll_calculate_mul()
63 struct owl_pll_hw *pll_hw = &pll->pll_hw; in owl_pll_round_rate() local
67 if (pll_hw->table) { in owl_pll_round_rate()
68 clkt = _get_pll_table(pll_hw->table, rate); in owl_pll_round_rate()
[all …]
Dowl-pll.h37 struct owl_pll_hw pll_hw; member
58 .pll_hw = OWL_PLL_HW(_reg, _bfreq, _bit_idx, _shift, \
73 .pll_hw = OWL_PLL_HW(_reg, _bfreq, _bit_idx, _shift, \
88 .pll_hw = OWL_PLL_HW(_reg, _bfreq, _bit_idx, _shift, \
/Linux-v6.6/drivers/clk/microchip/
Dclk-mpfs-ccc.c202 struct mpfs_ccc_pll_hw_clock *pll_hw = &pll_hws[i]; in mpfs_ccc_register_plls() local
204 pll_hw->name = devm_kasprintf(dev, GFP_KERNEL, "ccc%s_pll%u", in mpfs_ccc_register_plls()
206 if (!pll_hw->name) in mpfs_ccc_register_plls()
209 pll_hw->base = data->pll_base[i]; in mpfs_ccc_register_plls()
210 pll_hw->hw.init = CLK_HW_INIT_PARENTS_DATA_FIXED_SIZE(pll_hw->name, in mpfs_ccc_register_plls()
211 pll_hw->parents, in mpfs_ccc_register_plls()
214 ret = devm_clk_hw_register(dev, &pll_hw->hw); in mpfs_ccc_register_plls()
217 pll_hw->id); in mpfs_ccc_register_plls()
219 data->hw_data.hws[pll_hw->id] = &pll_hw->hw; in mpfs_ccc_register_plls()
222 MPFS_CCC_OUTPUTS_PER_PLL, data, pll_hw); in mpfs_ccc_register_plls()
/Linux-v6.6/drivers/phy/mediatek/
Dphy-mtk-mipi-dsi.c10 return container_of(hw, struct mtk_mipi_tx, pll_hw); in mtk_mipi_tx_from_clk_hw()
39 ret = clk_prepare_enable(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_on()
56 clk_disable_unprepare(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_off()
160 mipi_tx->pll_hw.init = &clk_init; in mtk_mipi_tx_probe()
161 ret = devm_clk_hw_register(dev, &mipi_tx->pll_hw); in mtk_mipi_tx_probe()
179 return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, &mipi_tx->pll_hw); in mtk_mipi_tx_probe()
Dphy-mtk-hdmi.c22 return container_of(hw, struct mtk_hdmi_phy, pll_hw); in to_mtk_hdmi_phy()
117 hdmi_phy->pll_hw.init = &clk_init; in mtk_hdmi_phy_probe()
118 hdmi_phy->pll = devm_clk_register(dev, &hdmi_phy->pll_hw); in mtk_hdmi_phy_probe()
Dphy-mtk-mipi-dsi.h33 struct clk_hw pll_hw; member
Dphy-mtk-hdmi.h34 struct clk_hw pll_hw; member
/Linux-v6.6/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_lvds_pll.c13 struct clk_hw pll_hw; member
17 #define to_mdp4_lvds_pll(x) container_of(x, struct mdp4_lvds_pll, pll_hw)
150 lvds_pll->pll_hw.init = &pll_init; in mpd4_lvds_pll_init()
151 clk = devm_clk_register(dev->dev, &lvds_pll->pll_hw); in mpd4_lvds_pll_init()
/Linux-v6.6/drivers/clk/
Dclk-asm9260.c258 struct clk_hw *hw, *pll_hw; in asm9260_acc_init() local
278 pll_hw = clk_hw_register_fixed_rate_parent_accuracy(NULL, pll_clk, &pll_parent_data, in asm9260_acc_init()
280 if (IS_ERR(pll_hw)) in asm9260_acc_init()
Dclk-stm32f4.c745 struct clk_hw *pll_hw, spinlock_t *lock) in clk_register_pll_div() argument
772 pll_div->hw_pll = pll_hw; in clk_register_pll_div()
791 struct clk_hw *pll_hw; in stm32f4_rcc_register_pll() local
821 pll_hw = &pll->gate.hw; in stm32f4_rcc_register_pll()
822 ret = clk_hw_register(NULL, pll_hw); in stm32f4_rcc_register_pll()
838 pll_hw, in stm32f4_rcc_register_pll()
840 return pll_hw; in stm32f4_rcc_register_pll()
Dclk-bm1880.c495 struct bm1880_pll_hw_clock *pll_hw = to_bm1880_pll_clk(hw); in bm1880_pll_recalc_rate() local
499 regval = readl(pll_hw->base + pll_hw->pll.reg); in bm1880_pll_recalc_rate()
/Linux-v6.6/drivers/gpu/drm/omapdrm/dss/
Ddsi.h332 const struct dss_pll_hw *pll_hw; member
Ddsi.c4544 pll->hw = dsi->data->pll_hw; in dsi_init_pll_data()
4811 .pll_hw = &dss_omap3_dsi_pll_hw,
4823 .pll_hw = &dss_omap3_dsi_pll_hw,
4835 .pll_hw = &dss_omap4_dsi_pll_hw,
4849 .pll_hw = &dss_omap5_dsi_pll_hw,