Lines Matching refs:pll
674 static unsigned long stm32mp1_pll_get_fref(const struct stm32mp1_clk_pll *pll) in stm32mp1_pll_get_fref() argument
676 uint32_t selr = io_read32(stm32_rcc_base() + pll->rckxselr); in stm32mp1_pll_get_fref()
679 return osc_frequency(pll->refclk[src]); in stm32mp1_pll_get_fref()
688 static unsigned long stm32mp1_pll_get_fvco(const struct stm32mp1_clk_pll *pll) in stm32mp1_pll_get_fvco() argument
697 cfgr1 = io_read32(stm32_rcc_base() + pll->pllxcfgr1); in stm32mp1_pll_get_fvco()
698 fracr = io_read32(stm32_rcc_base() + pll->pllxfracr); in stm32mp1_pll_get_fvco()
703 refclk = stm32mp1_pll_get_fref(pll); in stm32mp1_pll_get_fvco()
731 const struct stm32mp1_clk_pll *pll = pll_ref(pll_id); in stm32mp1_read_pll_freq() local
739 cfgr2 = io_read32(stm32_rcc_base() + pll->pllxcfgr2); in stm32mp1_read_pll_freq()
742 dfout = stm32mp1_pll_get_fvco(pll) / (divy + 1U); in stm32mp1_read_pll_freq()
1091 const struct stm32mp1_clk_pll *pll = pll_ref(pll_id); in get_parent_id_parent() local
1093 p_sel = io_read32(stm32_rcc_base() + pll->rckxselr) & in get_parent_id_parent()
1096 if (pll->refclk[p_sel] != _UNKNOWN_OSC_ID) in get_parent_id_parent()
1097 return osc_id2parent_id(pll->refclk[p_sel]); in get_parent_id_parent()