Lines Matching refs:pll
92 struct stm32_pll_dt_cfg *pll; member
1080 static int clk_stm32_pll_compute_cfgr1(const struct stm32_clk_pll *pll, in clk_stm32_pll_compute_cfgr1() argument
1091 if ((refclk < (stm32mp1_pll[pll->plltype].refclk_min * 1000000U)) || in clk_stm32_pll_compute_cfgr1()
1092 (refclk > (stm32mp1_pll[pll->plltype].refclk_max * 1000000U))) in clk_stm32_pll_compute_cfgr1()
1097 if (pll->plltype == PLL_800 && refclk >= 8000000U) in clk_stm32_pll_compute_cfgr1()
1128 const struct stm32_clk_pll *pll, in clk_stm32_is_pll_config_on_the_fly() argument
1132 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_is_pll_config_on_the_fly()
1140 ret = clk_stm32_pll_compute_cfgr1(pll, vco, &value); in clk_stm32_is_pll_config_on_the_fly()
1145 if (sel != stm32_mux_get_parent(pll->mux_id)) { in clk_stm32_is_pll_config_on_the_fly()
1183 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_vco() argument
1186 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_vco()
1189 if (clk_stm32_pll_compute_cfgr1(pll, vco, &value) != 0) { in clk_stm32_pll_config_vco()
1208 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_csg() argument
1211 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_csg()
1236 const struct stm32_clk_pll *pll, in clk_stm32_pll_config_out() argument
1239 uintptr_t pll_base = priv->base + pll->reg_pllxcr; in clk_stm32_pll_config_out()
1252 return &pdata->pll[pll_idx]; in clk_stm32_pll_get_pdata()
1273 clk_stm32_pll_backup_output_diven(const struct stm32_clk_pll *pll) in clk_stm32_pll_backup_output_diven() argument
1276 uintptr_t addr = priv->base + pll->reg_pllxcr; in clk_stm32_pll_backup_output_diven()
1283 static void clk_stm32_pll_restore_output_diven(const struct stm32_clk_pll *pll, in clk_stm32_pll_restore_output_diven() argument
1287 uintptr_t addr = priv->base + pll->reg_pllxcr; in clk_stm32_pll_restore_output_diven()
1297 const struct stm32_clk_pll *pll = clk_stm32_pll_data(pll_idx); in clk_stm32_pll_init() local
1305 ret = clk_stm32_is_pll_config_on_the_fly(priv, pll, pll_conf, in clk_stm32_pll_init()
1311 save_div_pqr_en = clk_stm32_pll_backup_output_diven(pll); in clk_stm32_pll_init()
1318 if (stm32_gate_is_enabled(pll->gate_id)) { in clk_stm32_pll_init()
1319 io_clrbits32(priv->base + pll->reg_pllxcr, in clk_stm32_pll_init()
1323 if (stm32_gate_rdy_disable(pll->gate_id)) in clk_stm32_pll_init()
1332 clk_stm32_pll_config_vco(priv, pll, &pll_conf->vco); in clk_stm32_pll_init()
1336 clk_stm32_pll_config_out(priv, pll, &pll_conf->output); in clk_stm32_pll_init()
1337 clk_stm32_pll_config_csg(priv, pll, &pll_conf->vco); in clk_stm32_pll_init()
1340 if (!stm32_gate_is_enabled(pll->gate_id)) { in clk_stm32_pll_init()
1341 if (stm32_gate_rdy_enable(pll->gate_id)) in clk_stm32_pll_init()
1344 clk_stm32_pll_restore_output_diven(pll, save_div_pqr_en); in clk_stm32_pll_init()
1538 struct stm32_pll_dt_cfg *pll) in clk_stm32_parse_pll_fdt() argument
1561 err = clk_stm32_load_vco_config_fdt(fdt, subnode_vco, &pll->vco); in clk_stm32_parse_pll_fdt()
1565 err = clk_stm32_load_output_config_fdt(fdt, subnode_pll, &pll->output); in clk_stm32_parse_pll_fdt()
1578 struct stm32_pll_dt_cfg *pll = pdata->pll + i; in stm32_clk_parse_fdt_all_pll() local
1589 err = clk_stm32_parse_pll_fdt(fdt, subnode, pll); in stm32_clk_parse_fdt_all_pll()
1837 const struct stm32_clk_pll *pll = clk_stm32_pll_data(PLL1_ID); in clk_stm32_pll1_set_rate() local
1852 err = clk_stm32_is_pll_config_on_the_fly(priv, pll, pll_conf, in clk_stm32_pll1_set_rate()
1867 clk_stm32_pll_config_vco(priv, pll, &pll_conf->vco); in clk_stm32_pll1_set_rate()
1870 clk_stm32_pll_config_out(priv, pll, &pll_conf->output); in clk_stm32_pll1_set_rate()
2693 .pll = mp13_pll,