/linux-6.3-rc2/drivers/clk/mediatek/ |
A D | clk-pll.c | 37 return (readl(pll->en_addr) & BIT(pll->data->pll_en_bit)) != 0; in mtk_pll_is_prepared() 107 if (pll->pd_addr != pll->pcw_addr) { in mtk_pll_set_rate_regs() 196 pcw = readl(pll->pcw_addr) >> pll->data->pcw_shift; in mtk_pll_recalc_rate() 227 r = readl(pll->en_addr) | BIT(pll->data->pll_en_bit); in mtk_pll_prepare() 266 r = readl(pll->en_addr) & ~BIT(pll->data->pll_en_bit); in mtk_pll_unprepare() 301 pll->pcw_chg_addr = pll->base_addr + REG_CON1; in mtk_clk_register_pll_ops() 309 pll->en_addr = pll->base_addr + REG_CON0; in mtk_clk_register_pll_ops() 325 kfree(pll); in mtk_clk_register_pll_ops() 338 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in mtk_clk_register_pll() 339 if (!pll) in mtk_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/tegra/ |
A D | clk-pll.c | 362 val = pll_readl(pll->params->iddq_reg, pll); in _clk_pll_enable() 364 pll_writel(val, pll->params->iddq_reg, pll); in _clk_pll_enable() 413 val = pll_readl(pll->params->iddq_reg, pll); in _clk_pll_disable() 415 pll_writel(val, pll->params->iddq_reg, pll); in _clk_pll_disable() 770 ret = pll->params->dyn_ramp(pll, cfg); in _program_pll() 781 pll->params->set_defaults(pll); in _program_pll() 1045 pll->params->set_defaults(pll); in tegra_clk_pll_restore_context() 1630 val = pll_readl(pll->params->aux_reg, pll); in clk_plle_tegra114_enable() 1633 pll_writel(val, pll->params->aux_reg, pll); in clk_plle_tegra114_enable() 1875 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in _tegra_init_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/qcom/ |
A D | clk-alpha-pll.c | 583 regmap_read(pll->clkr.regmap, PLL_L_VAL(pll), &l); in clk_alpha_pll_recalc_rate() 674 regmap_write(pll->clkr.regmap, PLL_L_VAL(pll), l); in __clk_alpha_pll_set_rate() 782 regmap_read(pll->clkr.regmap, PLL_L_VAL(pll), &l); in alpha_pll_huayra_recalc_rate() 853 regmap_write(pll->clkr.regmap, PLL_L_VAL(pll), l); in alpha_pll_huayra_set_rate() 859 regmap_write(pll->clkr.regmap, PLL_L_VAL(pll), l); in alpha_pll_huayra_set_rate() 977 regmap_read(pll->clkr.regmap, PLL_L_VAL(pll), &l); in clk_trion_pll_recalc_rate() 1252 regmap_read(pll->clkr.regmap, PLL_L_VAL(pll), &l); in alpha_pll_fabia_recalc_rate() 1291 regmap_write(pll->clkr.regmap, PLL_L_VAL(pll), l); in alpha_pll_fabia_set_rate() 1292 regmap_write(pll->clkr.regmap, PLL_FRAC(pll), a); in alpha_pll_fabia_set_rate() 1491 (BIT(pll->width) - 1) << pll->post_div_shift, in clk_alpha_pll_postdiv_fabia_set_rate() [all …]
|
A D | clk-pll.c | 31 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 71 regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_disable() 76 regmap_update_bits(pll->clkr.regmap, pll->mode_reg, mask, 0); in clk_pll_disable() 87 regmap_read(pll->clkr.regmap, pll->l_reg, &l); in clk_pll_recalc_rate() 88 regmap_read(pll->clkr.regmap, pll->m_reg, &m); in clk_pll_recalc_rate() 89 regmap_read(pll->clkr.regmap, pll->n_reg, &n); in clk_pll_recalc_rate() 103 regmap_read(pll->clkr.regmap, pll->config_reg, &config); in clk_pll_recalc_rate() 153 regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); in clk_pll_set_rate() 162 regmap_write(pll->clkr.regmap, pll->config_reg, f->ibits); in clk_pll_set_rate() 269 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); in clk_pll_sr2_enable() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/aty/ |
A D | mach64_ct.c | 126 divider = ((u32)pll->vclk_fb_div) * pll->xclk_ref_div; in aty_dsp_gt() 202 __func__, pll->dsp_config, pll->dsp_on_off); in aty_dsp_gt() 225 pll->vclk_fb_div = q * pll->vclk_post_div_real / 8; in aty_valid_pll_ct() 266 …ret = par->ref_clk_per * pll->ct.pll_ref_div * pll->ct.vclk_post_div_real / pll->ct.vclk_fb_div / … in aty_pll_to_var_ct() 293 pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl); in aty_set_pll_ct() 298 pll->ct.pll_ref_div, pll->ct.vclk_post_div, pll->ct.vclk_post_div_real); in aty_set_pll_ct() 411 pll->ct.xclk_post_div = pll->ct.pll_ext_cntl & 0x07; in aty_init_pll_ct() 434 __func__, pll->ct.mclk_fb_mult, pll->ct.xclk_post_div); in aty_init_pll_ct() 487 if (pll->ct.xclkmaxrasdelay <= pll->ct.xclkpagefaultdelay) in aty_init_pll_ct() 488 pll->ct.xclkmaxrasdelay = pll->ct.xclkpagefaultdelay + 1; in aty_init_pll_ct() [all …]
|
/linux-6.3-rc2/drivers/clk/sprd/ |
A D | pll.c | 19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num))) 22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num))) 29 GENMASK(pwidth(pll, member) + pshift(pll, member) - 1, \ 33 (cfg[pindex(pll, member)] & pmask(pll, member)) 36 (pinternal(pll, cfg, member) >> pshift(pll, member)) 120 ((pll->fflag == 1 && pinternal(pll, cfg, PLL_POSTDIV)) || in _sprd_pll_recalc_rate() 121 (!pll->fflag && !pinternal(pll, cfg, PLL_POSTDIV)))) in _sprd_pll_recalc_rate() 133 k1 = pll->k1; in _sprd_pll_recalc_rate() 134 k2 = pll->k2; in _sprd_pll_recalc_rate() 174 if (width && ((pll->fflag == 1 && fvco <= pll->fvco) || in _sprd_pll_set_rate() [all …]
|
/linux-6.3-rc2/drivers/clk/imx/ |
A D | clk-pllv3.c | 63 u32 val = readl_relaxed(pll->base) & pll->power_bit; in clk_pllv3_wait_lock() 115 u32 div = (readl_relaxed(pll->base) >> pll->div_shift) & pll->div_mask; in clk_pllv3_recalc_rate() 143 val &= ~(pll->div_mask << pll->div_shift); in clk_pllv3_set_rate() 163 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_sys_recalc_rate() 218 u32 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv3_av_recalc_rate() 220 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_av_recalc_rate() 288 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv3_av_set_rate() 289 writel_relaxed(mfd, pll->base + pll->denom_offset); in clk_pllv3_av_set_rate() 351 mf.mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv3_vf610_recalc_rate() 421 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in imx_clk_hw_pllv3() [all …]
|
A D | clk-pllv4.c | 81 mult = readl_relaxed(pll->base + pll->cfg_offset); in clk_pllv4_recalc_rate() 85 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv4_recalc_rate() 86 mfd = readl_relaxed(pll->base + pll->denom_offset); in clk_pllv4_recalc_rate() 174 val = readl_relaxed(pll->base + pll->cfg_offset); in clk_pllv4_set_rate() 177 writel_relaxed(val, pll->base + pll->cfg_offset); in clk_pllv4_set_rate() 179 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv4_set_rate() 180 writel_relaxed(mfd, pll->base + pll->denom_offset); in clk_pllv4_set_rate() 224 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in imx_clk_hw_pllv4() 225 if (!pll) in imx_clk_hw_pllv4() 248 hw = &pll->hw; in imx_clk_hw_pllv4() [all …]
|
A D | clk-pll14xx.c | 257 if (pll->type == PLL_1443X) { in clk_pll14xx_recalc_rate() 371 pll->base + DIV_CTL1); in clk_pll1443x_set_rate() 494 struct clk_pll14xx *pll; in imx_dev_clk_hw_pll14xx() local 500 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in imx_dev_clk_hw_pll14xx() 501 if (!pll) in imx_dev_clk_hw_pll14xx() 521 kfree(pll); in imx_dev_clk_hw_pll14xx() 525 pll->base = base; in imx_dev_clk_hw_pll14xx() 526 pll->hw.init = &init; in imx_dev_clk_hw_pll14xx() 527 pll->type = pll_clk->type; in imx_dev_clk_hw_pll14xx() 535 hw = &pll->hw; in imx_dev_clk_hw_pll14xx() [all …]
|
A D | clk-fracn-gppll.c | 94 for (i = 0; i < pll->rate_count; i++) in imx_get_pll_settings() 109 for (i = 0; i < pll->rate_count; i++) in clk_fracn_gppll_round_rate() 221 ret = clk_fracn_gppll_wait_lock(pll); in clk_fracn_gppll_set_rate() 256 ret = clk_fracn_gppll_wait_lock(pll); in clk_fracn_gppll_prepare() 298 struct clk_fracn_gppll *pll; in imx_clk_fracn_gppll() local 303 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in imx_clk_fracn_gppll() 304 if (!pll) in imx_clk_fracn_gppll() 313 pll->base = base; in imx_clk_fracn_gppll() 314 pll->hw.init = &init; in imx_clk_fracn_gppll() 318 hw = &pll->hw; in imx_clk_fracn_gppll() [all …]
|
/linux-6.3-rc2/drivers/clk/bcm/ |
A D | clk-iproc-pll.c | 308 struct iproc_pll *pll = clk->pll; in pll_set_rate() local 430 struct iproc_pll *pll = clk->pll; in iproc_pll_enable() local 438 struct iproc_pll *pll = clk->pll; in iproc_pll_disable() local 451 struct iproc_pll *pll = clk->pll; in iproc_pll_recalc_rate() local 501 struct iproc_pll *pll = clk->pll; in iproc_pll_determine_rate() local 546 struct iproc_pll *pll = clk->pll; in iproc_pll_set_rate() local 579 struct iproc_pll *pll = clk->pll; in iproc_clk_enable() local 599 struct iproc_pll *pll = clk->pll; in iproc_clk_disable() local 615 struct iproc_pll *pll = clk->pll; in iproc_clk_recalc_rate() local 775 iclk->pll = pll; in iproc_pll_clk_setup() [all …]
|
A D | clk-iproc-armpll.c | 112 fid = __get_fid(pll); in __get_mdiv() 198 return pll->rate; in iproc_arm_pll_recalc_rate() 204 pll->rate = 0; in iproc_arm_pll_recalc_rate() 216 pll->rate = 0; in iproc_arm_pll_recalc_rate() 220 pll->rate = (pll->rate / pdiv) / mdiv; in iproc_arm_pll_recalc_rate() 227 return pll->rate; in iproc_arm_pll_recalc_rate() 241 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in iproc_armpll_setup() 242 if (WARN_ON(!pll)) in iproc_armpll_setup() 255 pll->hw.init = &init; in iproc_armpll_setup() 270 iounmap(pll->base); in iproc_armpll_setup() [all …]
|
/linux-6.3-rc2/drivers/clk/meson/ |
A D | clk-pll.c | 65 (1 << pll->frac.width)); in __pll_params_to_rate() 143 if (!pll->table[index].n) in meson_clk_get_pll_table_index() 146 *m = pll->table[index].m; in meson_clk_get_pll_table_index() 147 *n = pll->table[index].n; in meson_clk_get_pll_table_index() 181 *m = pll->range->min; in meson_clk_get_pll_range_index() 184 *m = pll->range->max; in meson_clk_get_pll_range_index() 205 if (pll->range) in meson_clk_get_pll_get_index() 208 else if (pll->table) in meson_clk_get_pll_get_index() 226 i, &m, &n, pll); in meson_clk_get_pll_settings() 254 &m, &n, pll); in meson_clk_pll_determine_rate() [all …]
|
/linux-6.3-rc2/drivers/media/i2c/ |
A D | ccs-pll.c | 85 { &pll->vt_fr, &pll->vt_bk, PLL_VT }, in print_pll() 86 { &pll->op_fr, &pll->op_bk, PLL_OP } in print_pll() 236 pll->pixel_rate_pixel_array > pll->pixel_rate_csi) { in check_ext_bounds() 387 pll->ext_clk_freq_hz * pll->vt_lanes); in ccs_pll_calculate_vt_tree() 461 * pll->vt_lanes * phy_const / pll->op_lanes in ccs_pll_calculate_vt() 572 pll->vt_bk.pix_clk_freq_hz * pll->vt_lanes; in ccs_pll_calculate_vt() 746 if (!pll->op_lanes || !pll->vt_lanes || !pll->bits_per_pixel || in ccs_pll_calculate() 747 !pll->ext_clk_freq_hz || !pll->link_freq || !pll->scale_m || in ccs_pll_calculate() 760 (pll->bits_per_pixel * pll->op_lanes) % in ccs_pll_calculate() 763 pll->bits_per_pixel, pll->op_lanes, pll->csi2.lanes, l); in ccs_pll_calculate() [all …]
|
A D | aptina-pll.c | 27 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate() 35 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate() 41 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate() 42 pll->m = pll->pix_clock / div; in aptina_pll_calculate() 57 (pll->ext_clock / limits->n_min * pll->m)); in aptina_pll_calculate() 61 (pll->ext_clock / limits->n_max * pll->m)); in aptina_pll_calculate() 128 pll->ext_clock * pll->m)); in aptina_pll_calculate() 130 (pll->ext_clock * pll->m)); in aptina_pll_calculate() 146 pll->m *= mf_low; in aptina_pll_calculate() 147 pll->p1 = p1; in aptina_pll_calculate() [all …]
|
/linux-6.3-rc2/drivers/clk/at91/ |
A D | clk-pll.c | 77 (div == pll->div && mul == pll->mul)) in clk_pll_prepare() 102 return clk_pll_ready(pll->regmap, pll->id); in clk_pll_is_prepared() 118 if (!pll->div || !pll->mul) in clk_pll_recalc_rate() 121 return (parent_rate / pll->div) * (pll->mul + 1); in clk_pll_recalc_rate() 270 pll->pms.rate = clk_pll_recalc_rate(&pll->hw, pll->pms.parent_rate); in clk_pll_save_context() 271 pll->pms.status = clk_pll_ready(pll->regmap, PLL_REG(pll->id)); in clk_pll_save_context() 284 out = pll->characteristics->out[pll->range]; in clk_pll_restore_context() 286 regmap_read(pll->regmap, PLL_REG(pll->id), &pllr); in clk_pll_restore_context() 294 pll->pms.status != clk_pll_ready(pll->regmap, PLL_REG(pll->id)) || in clk_pll_restore_context() 327 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in at91_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/visconti/ |
A D | pll.c | 81 for (i = 0; i < pll->rate_count; i++) in visconti_get_pll_settings() 248 struct visconti_pll *pll; in visconti_register_pll() local 253 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in visconti_register_pll() 254 if (!pll) in visconti_register_pll() 264 pll->rate_count = len; in visconti_register_pll() 271 pll->hw.init = &init; in visconti_register_pll() 273 pll->lock = lock; in visconti_register_pll() 274 pll->ctx = ctx; in visconti_register_pll() 276 pll_hw_clk = &pll->hw; in visconti_register_pll() 280 kfree(pll->rate_table); in visconti_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/rockchip/ |
A D | clk-pll.c | 1080 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in rockchip_clk_register_pll() 1081 if (!pll) in rockchip_clk_register_pll() 1138 pll->rate_count = len; in rockchip_clk_register_pll() 1140 pll->rate_count * in rockchip_clk_register_pll() 1151 if (!pll->rate_table) in rockchip_clk_register_pll() 1163 if (!pll->rate_table) in rockchip_clk_register_pll() 1170 if (!pll->rate_table) in rockchip_clk_register_pll() 1181 pll->hw.init = &init; in rockchip_clk_register_pll() 1182 pll->type = pll_type; in rockchip_clk_register_pll() 1188 pll->ctx = ctx; in rockchip_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/samsung/ |
A D | clk-pll.c | 125 return samsung_pll_lock_wait(pll, BIT(pll->lock_offs)); in samsung_pll3xxx_enable() 276 pll->lock_reg); in samsung_pll35xx_set_rate() 289 return samsung_pll_lock_wait(pll, BIT(pll->lock_offs)); in samsung_pll35xx_set_rate() 401 return samsung_pll_lock_wait(pll, BIT(pll->lock_offs)); in samsung_pll36xx_set_rate() 477 pll->lock_reg); in samsung_pll0822x_set_rate() 484 return samsung_pll_lock_wait(pll, BIT(pll->lock_offs)); in samsung_pll0822x_set_rate() 581 return samsung_pll_lock_wait(pll, BIT(pll->lock_offs)); in samsung_pll0831x_set_rate() 691 switch (pll->type) { in samsung_pll45xx_set_rate() 1269 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in _samsung_clk_register_pll() 1270 if (!pll) { in _samsung_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/pistachio/ |
A D | clk-pll.c | 135 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params() 171 pll_lock(pll); in pll_gf40lp_frac_enable() 264 pll_lock(pll); in pll_gf40lp_frac_set_rate() 328 pll_lock(pll); in pll_gf40lp_laint_enable() 404 pll_lock(pll); in pll_gf40lp_laint_set_rate() 456 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in pll_register() 457 if (!pll) in pll_register() 480 kfree(pll); in pll_register() 491 kfree(pll); in pll_register() 504 clk = pll_register(pll[i].name, pll[i].parent, in pistachio_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/clk/baikal-t1/ |
A D | ccu-pll.c | 97 regmap_update_bits(pll->sys_regs, pll->reg_ctl, in ccu_pll_reset() 117 regmap_read(pll->sys_regs, pll->reg_ctl, &val); in ccu_pll_enable() 147 regmap_read(pll->sys_regs, pll->reg_ctl, &val); in ccu_pll_is_enabled() 159 regmap_read(pll->sys_regs, pll->reg_ctl, &val); in ccu_pll_recalc_rate() 372 struct ccu_pll *pll = bit->pll; in ccu_pll_dbgfs_bit_set() local 386 struct ccu_pll *pll = fld->pll; in ccu_pll_dbgfs_fld_set() local 414 struct ccu_pll *pll = bit->pll; in ccu_pll_dbgfs_bit_get() local 428 struct ccu_pll *pll = fld->pll; in ccu_pll_dbgfs_fld_get() local 452 bits[idx].pll = pll; in ccu_pll_debug_init() 465 flds[idx].pll = pll; in ccu_pll_debug_init() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/dss/ |
A D | hdmi_pll.c | 41 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_enable() local 59 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_disable() local 132 struct dss_pll *pll = &hpll->pll; in hdmi_init_pll_data() local 142 pll->name = "hdmi"; in hdmi_init_pll_data() 143 pll->id = DSS_PLL_HDMI; in hdmi_init_pll_data() 144 pll->base = hpll->base; in hdmi_init_pll_data() 145 pll->clkin = clk; in hdmi_init_pll_data() 166 pll->pdev = pdev; in hdmi_pll_init() 167 pll->wp = wp; in hdmi_pll_init() 170 if (IS_ERR(pll->base)) in hdmi_pll_init() [all …]
|
/linux-6.3-rc2/drivers/clk/mmp/ |
A D | clk-pll.c | 35 if ((val & pll->enable) == pll->enable) in mmp_clk_pll_is_enabled() 54 if ((val & pll->enable) != pll->enable) in mmp_clk_pll_recalc_rate() 57 if (pll->reg) { in mmp_clk_pll_recalc_rate() 66 if (pll->postdiv_reg) { in mmp_clk_pll_recalc_rate() 111 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in mmp_clk_register_pll() 112 if (!pll) in mmp_clk_register_pll() 123 pll->enable = enable; in mmp_clk_register_pll() 124 pll->reg = reg; in mmp_clk_register_pll() 125 pll->shift = shift; in mmp_clk_register_pll() 131 pll->hw.init = &init; in mmp_clk_register_pll() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/sprd/ |
A D | megacores_pll.c | 38 pll->potential_fvco = pll->freq / khz; in dphy_calc_pll_param() 44 pll->fvco = pll->potential_fvco; in dphy_calc_pll_param() 53 if (pll->fvco >= VCO_BAND_LOW && pll->fvco <= VCO_BAND_MID) { in dphy_calc_pll_param() 57 pll->lpf_sel = 1; in dphy_calc_pll_param() 65 pll->nint = pll->fvco / pll->ref_clk; in dphy_calc_pll_param() 75 pll->cp_s = 0x0; in dphy_calc_pll_param() 92 reg_val[1] = pll->div | (1 << 3) | (pll->cp_s << 5) | (pll->fdk_s << 7); in dphy_set_pll_reg() 94 reg_val[3] = pll->vco_band | (pll->sdm_en << 1) | (pll->refin << 2); in dphy_set_pll_reg() 97 reg_val[6] = pll->out_sel | ((pll->kint << 4) & 0xf); in dphy_set_pll_reg() 111 struct dphy_pll *pll = &ctx->pll; in dphy_pll_config() local [all …]
|
/linux-6.3-rc2/drivers/clk/x86/ |
A D | clk-cgu-pll.c | 45 mult = lgm_get_clk_val(pll->membase, PLL_REF_DIV(pll->reg), 0, 12); in lgm_pll_recalc_rate() 46 div = lgm_get_clk_val(pll->membase, PLL_REF_DIV(pll->reg), 18, 6); in lgm_pll_recalc_rate() 47 frac = lgm_get_clk_val(pll->membase, pll->reg, 2, 24); in lgm_pll_recalc_rate() 60 ret = lgm_get_clk_val(pll->membase, pll->reg, 0, 1); in lgm_pll_is_enabled() 71 lgm_set_clk_val(pll->membase, pll->reg, 0, 1, 1); in lgm_pll_enable() 72 ret = regmap_read_poll_timeout_atomic(pll->membase, pll->reg, in lgm_pll_enable() 83 lgm_set_clk_val(pll->membase, pll->reg, 0, 1, 0); in lgm_pll_disable() 109 pll = devm_kzalloc(dev, sizeof(*pll), GFP_KERNEL); in lgm_clk_register_pll() 110 if (!pll) in lgm_clk_register_pll() 114 pll->reg = list->reg; in lgm_clk_register_pll() [all …]
|