Lines Matching refs:pll_con0
288 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll36xx_recalc_rate() local
292 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll36xx_recalc_rate()
294 mdiv = (pll_con0 >> PLL36XX_MDIV_SHIFT) & PLL36XX_MDIV_MASK; in samsung_pll36xx_recalc_rate()
295 pdiv = (pll_con0 >> PLL36XX_PDIV_SHIFT) & PLL36XX_PDIV_MASK; in samsung_pll36xx_recalc_rate()
296 sdiv = (pll_con0 >> PLL36XX_SDIV_SHIFT) & PLL36XX_SDIV_MASK; in samsung_pll36xx_recalc_rate()
307 const struct samsung_pll_rate_table *rate, u32 pll_con0, u32 pll_con1) in samsung_pll36xx_mpk_change() argument
311 old_mdiv = (pll_con0 >> PLL36XX_MDIV_SHIFT) & PLL36XX_MDIV_MASK; in samsung_pll36xx_mpk_change()
312 old_pdiv = (pll_con0 >> PLL36XX_PDIV_SHIFT) & PLL36XX_PDIV_MASK; in samsung_pll36xx_mpk_change()
323 u32 tmp, pll_con0, pll_con1; in samsung_pll36xx_set_rate() local
333 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll36xx_set_rate()
336 if (!(samsung_pll36xx_mpk_change(rate, pll_con0, pll_con1))) { in samsung_pll36xx_set_rate()
338 pll_con0 &= ~(PLL36XX_SDIV_MASK << PLL36XX_SDIV_SHIFT); in samsung_pll36xx_set_rate()
339 pll_con0 |= (rate->sdiv << PLL36XX_SDIV_SHIFT); in samsung_pll36xx_set_rate()
340 writel_relaxed(pll_con0, pll->con_reg); in samsung_pll36xx_set_rate()
349 pll_con0 &= ~((PLL36XX_MDIV_MASK << PLL36XX_MDIV_SHIFT) | in samsung_pll36xx_set_rate()
352 pll_con0 |= (rate->mdiv << PLL36XX_MDIV_SHIFT) | in samsung_pll36xx_set_rate()
355 writel_relaxed(pll_con0, pll->con_reg); in samsung_pll36xx_set_rate()
362 if (pll_con0 & BIT(pll->enable_offs)) { in samsung_pll36xx_set_rate()
423 static bool samsung_pll45xx_mp_change(u32 pll_con0, u32 pll_con1, in samsung_pll45xx_mp_change() argument
428 old_mdiv = (pll_con0 >> PLL45XX_MDIV_SHIFT) & PLL45XX_MDIV_MASK; in samsung_pll45xx_mp_change()
429 old_pdiv = (pll_con0 >> PLL45XX_PDIV_SHIFT) & PLL45XX_PDIV_MASK; in samsung_pll45xx_mp_change()
553 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1, shift; in samsung_pll46xx_recalc_rate() local
556 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll46xx_recalc_rate()
558 mdiv = (pll_con0 >> PLL46XX_MDIV_SHIFT) & ((pll->type == pll_1460x) ? in samsung_pll46xx_recalc_rate()
560 pdiv = (pll_con0 >> PLL46XX_PDIV_SHIFT) & PLL46XX_PDIV_MASK; in samsung_pll46xx_recalc_rate()
561 sdiv = (pll_con0 >> PLL46XX_SDIV_SHIFT) & PLL46XX_SDIV_MASK; in samsung_pll46xx_recalc_rate()
574 static bool samsung_pll46xx_mpk_change(u32 pll_con0, u32 pll_con1, in samsung_pll46xx_mpk_change() argument
579 old_mdiv = (pll_con0 >> PLL46XX_MDIV_SHIFT) & PLL46XX_MDIV_MASK; in samsung_pll46xx_mpk_change()
580 old_pdiv = (pll_con0 >> PLL46XX_PDIV_SHIFT) & PLL46XX_PDIV_MASK; in samsung_pll46xx_mpk_change()
736 u32 mdiv, pdiv, sdiv, kdiv, pll_con0, pll_con1; in samsung_pll6553_recalc_rate() local
739 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll6553_recalc_rate()
741 mdiv = (pll_con0 >> PLL6553_MDIV_SHIFT) & PLL6553_MDIV_MASK; in samsung_pll6553_recalc_rate()
742 pdiv = (pll_con0 >> PLL6553_PDIV_SHIFT) & PLL6553_PDIV_MASK; in samsung_pll6553_recalc_rate()
743 sdiv = (pll_con0 >> PLL6553_SDIV_SHIFT) & PLL6553_SDIV_MASK; in samsung_pll6553_recalc_rate()
1084 u32 mdiv, pdiv, sdiv, pll_con0, pll_con1; in samsung_pll2650x_recalc_rate() local
1087 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll2650x_recalc_rate()
1088 mdiv = (pll_con0 >> PLL2650X_M_SHIFT) & PLL2650X_M_MASK; in samsung_pll2650x_recalc_rate()
1089 pdiv = (pll_con0 >> PLL2650X_P_SHIFT) & PLL2650X_P_MASK; in samsung_pll2650x_recalc_rate()
1090 sdiv = (pll_con0 >> PLL2650X_S_SHIFT) & PLL2650X_S_MASK; in samsung_pll2650x_recalc_rate()
1179 u32 mdiv, pdiv, sdiv, pll_con0, pll_con2; in samsung_pll2650xx_recalc_rate() local
1183 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll2650xx_recalc_rate()
1185 mdiv = (pll_con0 >> PLL2650XX_MDIV_SHIFT) & PLL2650XX_MDIV_MASK; in samsung_pll2650xx_recalc_rate()
1186 pdiv = (pll_con0 >> PLL2650XX_PDIV_SHIFT) & PLL2650XX_PDIV_MASK; in samsung_pll2650xx_recalc_rate()
1187 sdiv = (pll_con0 >> PLL2650XX_SDIV_SHIFT) & PLL2650XX_SDIV_MASK; in samsung_pll2650xx_recalc_rate()
1201 u32 tmp, pll_con0, pll_con2; in samsung_pll2650xx_set_rate() local
1211 pll_con0 = readl_relaxed(pll->con_reg); in samsung_pll2650xx_set_rate()
1215 pll_con0 &= ~(PLL2650XX_MDIV_MASK << PLL2650XX_MDIV_SHIFT | in samsung_pll2650xx_set_rate()
1218 pll_con0 |= rate->mdiv << PLL2650XX_MDIV_SHIFT; in samsung_pll2650xx_set_rate()
1219 pll_con0 |= rate->pdiv << PLL2650XX_PDIV_SHIFT; in samsung_pll2650xx_set_rate()
1220 pll_con0 |= rate->sdiv << PLL2650XX_SDIV_SHIFT; in samsung_pll2650xx_set_rate()
1221 pll_con0 |= 1 << PLL2650XX_PLL_ENABLE_SHIFT; in samsung_pll2650xx_set_rate()
1222 pll_con0 |= 1 << PLL2650XX_PLL_FOUTMASK_SHIFT; in samsung_pll2650xx_set_rate()
1231 writel_relaxed(pll_con0, pll->con_reg); in samsung_pll2650xx_set_rate()