| /linux/drivers/clk/socfpga/ |
| H A D | clk-pll-s10.c | 194 struct socfpga_pll *pll_clk; in s10_register_pll() local 199 pll_clk = kzalloc_obj(*pll_clk); in s10_register_pll() 200 if (WARN_ON(!pll_clk)) in s10_register_pll() 203 pll_clk->hw.reg = reg + clks->offset; in s10_register_pll() 216 pll_clk->hw.hw.init = &init; in s10_register_pll() 218 pll_clk->hw.bit_idx = SOCFPGA_PLL_POWER; in s10_register_pll() 220 hw_clk = &pll_clk->hw.hw; in s10_register_pll() 224 kfree(pll_clk); in s10_register_pll() 234 struct socfpga_pll *pll_clk; in agilex_register_pll() local 239 pll_clk = kzalloc_obj(*pll_clk); in agilex_register_pll() [all …]
|
| H A D | clk-pll.c | 78 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local 87 pll_clk = kzalloc_obj(*pll_clk); in __socfpga_pll_init() 88 if (WARN_ON(!pll_clk)) in __socfpga_pll_init() 95 pll_clk->hw.reg = clk_mgr_base_addr + reg; in __socfpga_pll_init() 105 pll_clk->hw.hw.init = &init; in __socfpga_pll_init() 107 pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA; in __socfpga_pll_init() 109 hw_clk = &pll_clk->hw.hw; in __socfpga_pll_init() 129 kfree(pll_clk); in __socfpga_pll_init()
|
| H A D | clk-pll-a10.c | 71 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local 81 pll_clk = kzalloc_obj(*pll_clk); in __socfpga_pll_init() 82 if (WARN_ON(!pll_clk)) in __socfpga_pll_init() 89 pll_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_pll_init() 102 pll_clk->hw.hw.init = &init; in __socfpga_pll_init() 104 pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA; in __socfpga_pll_init() 105 hw_clk = &pll_clk->hw.hw; in __socfpga_pll_init() 125 kfree(pll_clk); in __socfpga_pll_init()
|
| /linux/drivers/clk/axs10x/ |
| H A D | pll_clock.c | 221 struct axs10x_pll_clk *pll_clk; in axs10x_pll_clk_probe() local 225 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in axs10x_pll_clk_probe() 226 if (!pll_clk) in axs10x_pll_clk_probe() 229 pll_clk->base = devm_platform_ioremap_resource(pdev, 0); in axs10x_pll_clk_probe() 230 if (IS_ERR(pll_clk->base)) in axs10x_pll_clk_probe() 231 return PTR_ERR(pll_clk->base); in axs10x_pll_clk_probe() 233 pll_clk->lock = devm_platform_ioremap_resource(pdev, 1); in axs10x_pll_clk_probe() 234 if (IS_ERR(pll_clk->lock)) in axs10x_pll_clk_probe() 235 return PTR_ERR(pll_clk->lock); in axs10x_pll_clk_probe() 242 pll_clk->hw.init = &init; in axs10x_pll_clk_probe() [all …]
|
| H A D | i2s_pll_clock.c | 170 struct i2s_pll_clk *pll_clk; in i2s_pll_clk_probe() local 173 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in i2s_pll_clk_probe() 174 if (!pll_clk) in i2s_pll_clk_probe() 177 pll_clk->base = devm_platform_ioremap_resource(pdev, 0); in i2s_pll_clk_probe() 178 if (IS_ERR(pll_clk->base)) in i2s_pll_clk_probe() 179 return PTR_ERR(pll_clk->base); in i2s_pll_clk_probe() 188 pll_clk->hw.init = &init; in i2s_pll_clk_probe() 189 pll_clk->dev = dev; in i2s_pll_clk_probe() 191 clk = devm_clk_register(dev, &pll_clk->hw); in i2s_pll_clk_probe()
|
| /linux/drivers/clk/ |
| H A D | clk-hsdk-pll.c | 310 struct hsdk_pll_clk *pll_clk; in hsdk_pll_clk_probe() local 314 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in hsdk_pll_clk_probe() 315 if (!pll_clk) in hsdk_pll_clk_probe() 318 pll_clk->regs = devm_platform_ioremap_resource(pdev, 0); in hsdk_pll_clk_probe() 319 if (IS_ERR(pll_clk->regs)) in hsdk_pll_clk_probe() 320 return PTR_ERR(pll_clk->regs); in hsdk_pll_clk_probe() 333 pll_clk->hw.init = &init; in hsdk_pll_clk_probe() 334 pll_clk->dev = dev; in hsdk_pll_clk_probe() 335 pll_clk->pll_devdata = of_device_get_match_data(dev); in hsdk_pll_clk_probe() 337 if (!pll_clk->pll_devdata) { in hsdk_pll_clk_probe() [all …]
|
| H A D | clk-vt8500.c | 688 struct clk_pll *pll_clk; in vtwm_pll_clk_init() local 701 pll_clk = kzalloc_obj(*pll_clk); in vtwm_pll_clk_init() 702 if (WARN_ON(!pll_clk)) in vtwm_pll_clk_init() 705 pll_clk->reg = pmc_base + reg; in vtwm_pll_clk_init() 706 pll_clk->lock = &_lock; in vtwm_pll_clk_init() 707 pll_clk->type = pll_type; in vtwm_pll_clk_init() 718 pll_clk->hw.init = &init; in vtwm_pll_clk_init() 720 hw = &pll_clk->hw; in vtwm_pll_clk_init() 721 rc = clk_hw_register(NULL, &pll_clk->hw); in vtwm_pll_clk_init() 723 kfree(pll_clk); in vtwm_pll_clk_init()
|
| H A D | clk-moxart.c | 59 struct clk *pll_clk; in moxart_of_apb_clk_init() local 81 pll_clk = of_clk_get(node, 0); in moxart_of_apb_clk_init() 82 if (IS_ERR(pll_clk)) { in moxart_of_apb_clk_init()
|
| H A D | clk-npcm8xx.c | 309 struct npcm8xx_clk_pll_data *pll_clk = &npcm8xx_pll_clks[i]; in npcm8xx_clk_probe() local 311 hw = npcm8xx_clk_register_pll(dev, clk_base + pll_clk->reg, in npcm8xx_clk_probe() 312 pll_clk->name, &pll_clk->parent, in npcm8xx_clk_probe() 313 pll_clk->flags); in npcm8xx_clk_probe() 316 pll_clk->hw = *hw; in npcm8xx_clk_probe()
|
| /linux/drivers/clk/renesas/ |
| H A D | rcar-gen4-cpg.c | 85 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_8_25_clk_recalc_rate() local 86 u32 cr0 = readl(pll_clk->pllcr0_reg); in cpg_pll_8_25_clk_recalc_rate() 93 nf = FIELD_GET(CPG_PLLxCR1_NF25, readl(pll_clk->pllcr1_reg)); in cpg_pll_8_25_clk_recalc_rate() 103 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_8_25_clk_determine_rate() local 105 u32 cr0 = readl(pll_clk->pllcr0_reg); in cpg_pll_8_25_clk_determine_rate() 137 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_8_25_clk_set_rate() local 139 u32 cr0 = readl(pll_clk->pllcr0_reg); in cpg_pll_8_25_clk_set_rate() 158 if (readl(pll_clk->pllcr0_reg) & CPG_PLLxCR0_KICK) in cpg_pll_8_25_clk_set_rate() 161 cpg_reg_modify(pll_clk->pllcr0_reg, CPG_PLLxCR0_NI8, in cpg_pll_8_25_clk_set_rate() 164 cpg_reg_modify(pll_clk->pllcr1_reg, CPG_PLLxCR1_NF25, in cpg_pll_8_25_clk_set_rate() [all …]
|
| H A D | rcar-gen3-cpg.c | 55 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_recalc_rate() local 58 mult = FIELD_GET(CPG_PLLnCR_STC_MASK, readl(pll_clk->pllcr_reg)) + 1; in cpg_pll_clk_recalc_rate() 60 return parent_rate * mult * pll_clk->fixed_mult; in cpg_pll_clk_recalc_rate() 66 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_determine_rate() local 70 prate = req->best_parent_rate * pll_clk->fixed_mult; in cpg_pll_clk_determine_rate() 86 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_set_rate() local 90 mult = DIV_ROUND_CLOSEST_ULL(rate, parent_rate * pll_clk->fixed_mult); in cpg_pll_clk_set_rate() 93 val = readl(pll_clk->pllcr_reg); in cpg_pll_clk_set_rate() 96 writel(val, pll_clk->pllcr_reg); in cpg_pll_clk_set_rate() 99 if (readl(pll_clk->pllecr_reg) & pll_clk->pllecr_pllst_mask) in cpg_pll_clk_set_rate() [all …]
|
| /linux/arch/sh/kernel/cpu/sh2a/ |
| H A D | clock-sh7269.c | 47 static struct clk pll_clk = { variable 64 .parent = &pll_clk, 79 .parent = &pll_clk, 86 &pll_clk, 106 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 142 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| H A D | clock-sh7264.c | 51 static struct clk pll_clk = { variable 60 &pll_clk, 78 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 108 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| /linux/arch/sh/kernel/cpu/sh4a/ |
| H A D | clock-sh7722.c | 82 static struct clk pll_clk = { variable 91 &pll_clk, 109 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 138 [DIV6_V] = SH_CLK_DIV6(&pll_clk, VCLKCR, 0), 174 CLKDEV_CON_ID("pll_clk", &pll_clk), 226 pll_clk.parent = &dll_clk; in arch_clk_init() 228 pll_clk.parent = &extal_clk; in arch_clk_init()
|
| H A D | clock-sh7366.c | 79 static struct clk pll_clk = { variable 88 &pll_clk, 109 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 125 [DIV6_V] = SH_CLK_DIV6(&pll_clk, VCLKCR, 0), 188 CLKDEV_CON_ID("pll_clk", &pll_clk), 251 pll_clk.parent = &dll_clk; in arch_clk_init() 253 pll_clk.parent = &extal_clk; in arch_clk_init()
|
| H A D | clock-sh7723.c | 83 static struct clk pll_clk = { variable 92 &pll_clk, 112 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 138 [DIV6_V] = SH_CLK_DIV6(&pll_clk, VCLKCR, 0), 199 CLKDEV_CON_ID("pll_clk", &pll_clk), 274 pll_clk.parent = &dll_clk; in arch_clk_init() 276 pll_clk.parent = &extal_clk; in arch_clk_init()
|
| H A D | clock-sh7343.c | 76 static struct clk pll_clk = { variable 85 &pll_clk, 106 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 122 [DIV6_V] = SH_CLK_DIV6(&pll_clk, VCLKCR, 0), 190 CLKDEV_CON_ID("pll_clk", &pll_clk), 258 pll_clk.parent = &dll_clk; in arch_clk_init() 260 pll_clk.parent = &extal_clk; in arch_clk_init()
|
| H A D | clock-shx3.c | 36 static struct clk pll_clk = { variable 44 &pll_clk, 62 SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags) 103 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| H A D | clock-sh7757.c | 37 static struct clk pll_clk = { variable 45 &pll_clk, 63 SH_CLK_DIV4(&pll_clk, FRQCR, _bit, _mask, _flags) 105 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| H A D | clock-sh7724.c | 85 static struct clk pll_clk = { variable 102 .parent = &pll_clk, 119 &pll_clk, 151 SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags) 264 CLKDEV_CON_ID("pll_clk", &pll_clk), 348 pll_clk.parent = &fll_clk; in arch_clk_init() 350 pll_clk.parent = &extal_clk; in arch_clk_init()
|
| H A D | clock-sh7785.c | 40 static struct clk pll_clk = { variable 48 &pll_clk, 67 SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags) 119 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| H A D | clock-sh7786.c | 42 static struct clk pll_clk = { variable 50 &pll_clk, 68 SH_CLK_DIV4(&pll_clk, FRQMR1, _bit, _mask, _flags) 128 CLKDEV_CON_ID("pll_clk", &pll_clk),
|
| /linux/drivers/clk/imx/ |
| H A D | clk-fracn-gppll.c | 361 const struct imx_fracn_gppll_clk *pll_clk, in _imx_clk_fracn_gppll() argument 374 init.flags = pll_clk->flags; in _imx_clk_fracn_gppll() 381 pll->rate_table = pll_clk->rate_table; in _imx_clk_fracn_gppll() 382 pll->rate_count = pll_clk->rate_count; in _imx_clk_fracn_gppll() 398 const struct imx_fracn_gppll_clk *pll_clk) in imx_clk_fracn_gppll() argument 400 return _imx_clk_fracn_gppll(name, parent_name, base, pll_clk, CLK_FRACN_GPPLL_FRACN); in imx_clk_fracn_gppll() 406 const struct imx_fracn_gppll_clk *pll_clk) in imx_clk_fracn_gppll_integer() argument 408 return _imx_clk_fracn_gppll(name, parent_name, base, pll_clk, CLK_FRACN_GPPLL_INTEGER); in imx_clk_fracn_gppll_integer()
|
| H A D | clk-pll14xx.c | 499 const struct imx_pll14xx_clk *pll_clk) in imx_dev_clk_hw_pll14xx() argument 512 init.flags = pll_clk->flags; in imx_dev_clk_hw_pll14xx() 516 switch (pll_clk->type) { in imx_dev_clk_hw_pll14xx() 518 if (!pll_clk->rate_table) in imx_dev_clk_hw_pll14xx() 534 pll->type = pll_clk->type; in imx_dev_clk_hw_pll14xx() 535 pll->rate_table = pll_clk->rate_table; in imx_dev_clk_hw_pll14xx() 536 pll->rate_count = pll_clk->rate_count; in imx_dev_clk_hw_pll14xx()
|
| /linux/drivers/clk/samsung/ |
| H A D | clk-pll.c | 1432 const struct samsung_pll_clock *pll_clk) in _samsung_clk_register_pll() argument 1441 __func__, pll_clk->name); in _samsung_clk_register_pll() 1445 init.name = pll_clk->name; in _samsung_clk_register_pll() 1446 init.flags = pll_clk->flags; in _samsung_clk_register_pll() 1447 init.parent_names = &pll_clk->parent_name; in _samsung_clk_register_pll() 1450 if (pll_clk->rate_table) { in _samsung_clk_register_pll() 1452 for (len = 0; pll_clk->rate_table[len].rate != 0; ) in _samsung_clk_register_pll() 1456 pll->rate_table = kmemdup_array(pll_clk->rate_table, in _samsung_clk_register_pll() 1462 __func__, pll_clk->name); in _samsung_clk_register_pll() 1465 switch (pll_clk->type) { in _samsung_clk_register_pll() [all …]
|