Lines Matching refs:pll

92 	struct stm32_pll_dt_cfg *pll;  member
1083 static int clk_stm32_pll_compute_cfgr1(const struct stm32_clk_pll *pll, in clk_stm32_pll_compute_cfgr1() argument
1094 if ((refclk < (stm32mp1_pll[pll->plltype].refclk_min * 1000000U)) || in clk_stm32_pll_compute_cfgr1()
1095 (refclk > (stm32mp1_pll[pll->plltype].refclk_max * 1000000U))) in clk_stm32_pll_compute_cfgr1()
1100 if (pll->plltype == PLL_800 && refclk >= 8000000U) in clk_stm32_pll_compute_cfgr1()
1131 const struct stm32_clk_pll *pll, in clk_stm32_is_pll_config_on_the_fly() argument
1135 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_is_pll_config_on_the_fly()
1143 ret = clk_stm32_pll_compute_cfgr1(pll, vco, &value); in clk_stm32_is_pll_config_on_the_fly()
1148 if (sel != stm32_mux_get_parent(pll->mux_id)) { in clk_stm32_is_pll_config_on_the_fly()
1186 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_vco() argument
1189 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_vco()
1192 if (clk_stm32_pll_compute_cfgr1(pll, vco, &value) != 0) { in clk_stm32_pll_config_vco()
1211 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_csg() argument
1214 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_csg()
1239 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_out() argument
1242 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_out()
1255 return &pdata->pll[pll_idx]; in clk_stm32_pll_get_pdata()
1276 clk_stm32_pll_backup_output_diven(const struct stm32_clk_pll *pll) in clk_stm32_pll_backup_output_diven() argument
1279 uintptr_t addr = priv->base + pll->reg_pllxcr; in clk_stm32_pll_backup_output_diven()
1286 static void clk_stm32_pll_restore_output_diven(const struct stm32_clk_pll *pll, in clk_stm32_pll_restore_output_diven() argument
1290 uintptr_t addr = priv->base + pll->reg_pllxcr; in clk_stm32_pll_restore_output_diven()
1300 const struct stm32_clk_pll *pll = clk_stm32_pll_data(pll_idx); in clk_stm32_pll_init() local
1308 ret = clk_stm32_is_pll_config_on_the_fly(priv, pll, pll_conf, in clk_stm32_pll_init()
1314 save_div_pqr_en = clk_stm32_pll_backup_output_diven(pll); in clk_stm32_pll_init()
1321 if (stm32_gate_is_enabled(pll->gate_id)) { in clk_stm32_pll_init()
1322 io_clrbits32(priv->base + pll->reg_pllxcr, in clk_stm32_pll_init()
1326 if (stm32_gate_rdy_disable(pll->gate_id)) in clk_stm32_pll_init()
1335 clk_stm32_pll_config_vco(priv, pll, &pll_conf->vco); in clk_stm32_pll_init()
1339 clk_stm32_pll_config_out(priv, pll, &pll_conf->output); in clk_stm32_pll_init()
1340 clk_stm32_pll_config_csg(priv, pll, &pll_conf->vco); in clk_stm32_pll_init()
1343 if (!stm32_gate_is_enabled(pll->gate_id)) { in clk_stm32_pll_init()
1344 if (stm32_gate_rdy_enable(pll->gate_id)) in clk_stm32_pll_init()
1347 clk_stm32_pll_restore_output_diven(pll, save_div_pqr_en); in clk_stm32_pll_init()
1535 struct stm32_pll_dt_cfg *pll) in clk_stm32_parse_pll_fdt() argument
1558 err = clk_stm32_load_vco_config_fdt(fdt, subnode_vco, &pll->vco); in clk_stm32_parse_pll_fdt()
1562 err = clk_stm32_load_output_config_fdt(fdt, subnode_pll, &pll->output); in clk_stm32_parse_pll_fdt()
1575 struct stm32_pll_dt_cfg *pll = pdata->pll + i; in stm32_clk_parse_fdt_all_pll() local
1586 err = clk_stm32_parse_pll_fdt(fdt, subnode, pll); in stm32_clk_parse_fdt_all_pll()
1811 const struct stm32_clk_pll *pll = clk_stm32_pll_data(PLL1_ID); in clk_stm32_pll1_set_rate() local
1826 err = clk_stm32_is_pll_config_on_the_fly(priv, pll, pll_conf, in clk_stm32_pll1_set_rate()
1841 clk_stm32_pll_config_vco(priv, pll, &pll_conf->vco); in clk_stm32_pll1_set_rate()
1844 clk_stm32_pll_config_out(priv, pll, &pll_conf->output); in clk_stm32_pll1_set_rate()
2611 .pll = mp13_pll,