Home
last modified time | relevance | path

Searched full:pll_clk (Results 1 – 25 of 114) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/clk/socfpga/
Dclk-pll-s10.c194 struct socfpga_pll *pll_clk; in s10_register_pll() local
199 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); 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(sizeof(*pll_clk), GFP_KERNEL); in agilex_register_pll()
[all …]
Dclk-pll-a10.c71 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local
81 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); 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()
Dclk-pll.c78 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local
87 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); 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()
/kernel/linux/linux-5.10/drivers/clk/axs10x/
Dpll_clock.c223 struct axs10x_pll_clk *pll_clk; in axs10x_pll_clk_probe() local
227 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in axs10x_pll_clk_probe()
228 if (!pll_clk) in axs10x_pll_clk_probe()
231 pll_clk->base = devm_platform_ioremap_resource(pdev, 0); in axs10x_pll_clk_probe()
232 if (IS_ERR(pll_clk->base)) in axs10x_pll_clk_probe()
233 return PTR_ERR(pll_clk->base); in axs10x_pll_clk_probe()
235 pll_clk->lock = devm_platform_ioremap_resource(pdev, 1); in axs10x_pll_clk_probe()
236 if (IS_ERR(pll_clk->lock)) in axs10x_pll_clk_probe()
237 return PTR_ERR(pll_clk->lock); in axs10x_pll_clk_probe()
244 pll_clk->hw.init = &init; in axs10x_pll_clk_probe()
[all …]
Di2s_pll_clock.c173 struct i2s_pll_clk *pll_clk; in i2s_pll_clk_probe() local
176 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in i2s_pll_clk_probe()
177 if (!pll_clk) in i2s_pll_clk_probe()
180 pll_clk->base = devm_platform_ioremap_resource(pdev, 0); in i2s_pll_clk_probe()
181 if (IS_ERR(pll_clk->base)) in i2s_pll_clk_probe()
182 return PTR_ERR(pll_clk->base); in i2s_pll_clk_probe()
191 pll_clk->hw.init = &init; in i2s_pll_clk_probe()
192 pll_clk->dev = dev; in i2s_pll_clk_probe()
194 clk = devm_clk_register(dev, &pll_clk->hw); in i2s_pll_clk_probe()
/kernel/linux/linux-6.6/drivers/clk/axs10x/
Dpll_clock.c219 struct axs10x_pll_clk *pll_clk; in axs10x_pll_clk_probe() local
223 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in axs10x_pll_clk_probe()
224 if (!pll_clk) in axs10x_pll_clk_probe()
227 pll_clk->base = devm_platform_ioremap_resource(pdev, 0); in axs10x_pll_clk_probe()
228 if (IS_ERR(pll_clk->base)) in axs10x_pll_clk_probe()
229 return PTR_ERR(pll_clk->base); in axs10x_pll_clk_probe()
231 pll_clk->lock = devm_platform_ioremap_resource(pdev, 1); in axs10x_pll_clk_probe()
232 if (IS_ERR(pll_clk->lock)) in axs10x_pll_clk_probe()
233 return PTR_ERR(pll_clk->lock); in axs10x_pll_clk_probe()
240 pll_clk->hw.init = &init; in axs10x_pll_clk_probe()
[all …]
Di2s_pll_clock.c170 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()
/kernel/linux/linux-5.10/drivers/clk/socfpga/
Dclk-pll-s10.c148 struct socfpga_pll *pll_clk; in s10_register_pll() local
152 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in s10_register_pll()
153 if (WARN_ON(!pll_clk)) in s10_register_pll()
156 pll_clk->hw.reg = reg + clks->offset; in s10_register_pll()
169 pll_clk->hw.hw.init = &init; in s10_register_pll()
171 pll_clk->hw.bit_idx = SOCFPGA_PLL_POWER; in s10_register_pll()
173 clk = clk_register(NULL, &pll_clk->hw.hw); in s10_register_pll()
175 kfree(pll_clk); in s10_register_pll()
185 struct socfpga_pll *pll_clk; in agilex_register_pll() local
189 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in agilex_register_pll()
[all …]
Dclk-pll-a10.c71 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local
81 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); 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()
106 clk = clk_register(NULL, &pll_clk->hw.hw); in __socfpga_pll_init()
108 kfree(pll_clk); in __socfpga_pll_init()
Dclk-pll.c78 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local
88 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in __socfpga_pll_init()
89 if (WARN_ON(!pll_clk)) in __socfpga_pll_init()
96 pll_clk->hw.reg = clk_mgr_base_addr + reg; in __socfpga_pll_init()
106 pll_clk->hw.hw.init = &init; in __socfpga_pll_init()
108 pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA; in __socfpga_pll_init()
110 hw_clk = &pll_clk->hw.hw; in __socfpga_pll_init()
114 kfree(pll_clk); in __socfpga_pll_init()
/kernel/linux/linux-6.6/drivers/clk/
Dclk-hsdk-pll.c308 struct hsdk_pll_clk *pll_clk; in hsdk_pll_clk_probe() local
312 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in hsdk_pll_clk_probe()
313 if (!pll_clk) in hsdk_pll_clk_probe()
316 pll_clk->regs = devm_platform_ioremap_resource(pdev, 0); in hsdk_pll_clk_probe()
317 if (IS_ERR(pll_clk->regs)) in hsdk_pll_clk_probe()
318 return PTR_ERR(pll_clk->regs); in hsdk_pll_clk_probe()
331 pll_clk->hw.init = &init; in hsdk_pll_clk_probe()
332 pll_clk->dev = dev; in hsdk_pll_clk_probe()
333 pll_clk->pll_devdata = of_device_get_match_data(dev); in hsdk_pll_clk_probe()
335 if (!pll_clk->pll_devdata) { in hsdk_pll_clk_probe()
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-hsdk-pll.c313 struct hsdk_pll_clk *pll_clk; in hsdk_pll_clk_probe() local
317 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in hsdk_pll_clk_probe()
318 if (!pll_clk) in hsdk_pll_clk_probe()
322 pll_clk->regs = devm_ioremap_resource(dev, mem); in hsdk_pll_clk_probe()
323 if (IS_ERR(pll_clk->regs)) in hsdk_pll_clk_probe()
324 return PTR_ERR(pll_clk->regs); in hsdk_pll_clk_probe()
337 pll_clk->hw.init = &init; in hsdk_pll_clk_probe()
338 pll_clk->dev = dev; in hsdk_pll_clk_probe()
339 pll_clk->pll_devdata = of_device_get_match_data(dev); in hsdk_pll_clk_probe()
341 if (!pll_clk->pll_devdata) { in hsdk_pll_clk_probe()
[all …]
/kernel/linux/linux-6.6/drivers/clk/renesas/
Drcar-gen3-cpg.c55 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_recalc_rate() local
59 val = readl(pll_clk->pllcr_reg) & CPG_PLLnCR_STC_MASK; in cpg_pll_clk_recalc_rate()
62 return parent_rate * mult * pll_clk->fixed_mult; in cpg_pll_clk_recalc_rate()
68 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_determine_rate() local
72 prate = req->best_parent_rate * pll_clk->fixed_mult; in cpg_pll_clk_determine_rate()
88 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_set_rate() local
92 mult = DIV_ROUND_CLOSEST_ULL(rate, parent_rate * pll_clk->fixed_mult); in cpg_pll_clk_set_rate()
95 val = readl(pll_clk->pllcr_reg); in cpg_pll_clk_set_rate()
98 writel(val, pll_clk->pllcr_reg); in cpg_pll_clk_set_rate()
101 if (readl(pll_clk->pllecr_reg) & pll_clk->pllecr_pllst_mask) in cpg_pll_clk_set_rate()
[all …]
Drcar-gen4-cpg.c73 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_recalc_rate() local
76 mult = FIELD_GET(CPG_PLLxCR0_NI, readl(pll_clk->pllcr0_reg)) + 1; in cpg_pll_clk_recalc_rate()
103 struct cpg_pll_clk *pll_clk = to_pll_clk(hw); in cpg_pll_clk_set_rate() local
110 if (readl(pll_clk->pllcr0_reg) & CPG_PLLxCR0_KICK) in cpg_pll_clk_set_rate()
113 cpg_reg_modify(pll_clk->pllcr0_reg, CPG_PLLxCR0_NI, in cpg_pll_clk_set_rate()
120 cpg_reg_modify(pll_clk->pllcr0_reg, 0, CPG_PLLxCR0_KICK); in cpg_pll_clk_set_rate()
131 return readl_poll_timeout(pll_clk->pllecr_reg, val, in cpg_pll_clk_set_rate()
132 val & pll_clk->pllecr_pllst_mask, 0, 1000); in cpg_pll_clk_set_rate()
149 struct cpg_pll_clk *pll_clk; in cpg_pll_clk_register() local
153 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in cpg_pll_clk_register()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-bcm63xx-hsspi.c106 struct clk *pll_clk; member
342 struct clk *clk, *pll_clk = NULL; in bcm63xx_hsspi_probe() local
376 pll_clk = devm_clk_get(dev, "pll"); in bcm63xx_hsspi_probe()
378 if (IS_ERR(pll_clk)) { in bcm63xx_hsspi_probe()
379 ret = PTR_ERR(pll_clk); in bcm63xx_hsspi_probe()
383 ret = clk_prepare_enable(pll_clk); in bcm63xx_hsspi_probe()
387 rate = clk_get_rate(pll_clk); in bcm63xx_hsspi_probe()
403 bs->pll_clk = pll_clk; in bcm63xx_hsspi_probe()
463 clk_disable_unprepare(pll_clk); in bcm63xx_hsspi_probe()
477 clk_disable_unprepare(bs->pll_clk); in bcm63xx_hsspi_remove()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/
Dclock-sh7269.c47 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),
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh2a/
Dclock-sh7269.c47 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),
Dclock-sh7264.c51 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),
/kernel/linux/linux-6.6/drivers/spi/
Dspi-bcmbca-hsspi.c117 struct clk *pll_clk; member
440 struct clk *clk, *pll_clk = NULL; in bcmbca_hsspi_probe() local
472 pll_clk = devm_clk_get(dev, "pll"); in bcmbca_hsspi_probe()
474 if (IS_ERR(pll_clk)) { in bcmbca_hsspi_probe()
475 ret = PTR_ERR(pll_clk); in bcmbca_hsspi_probe()
479 ret = clk_prepare_enable(pll_clk); in bcmbca_hsspi_probe()
483 rate = clk_get_rate(pll_clk); in bcmbca_hsspi_probe()
499 bs->pll_clk = pll_clk; in bcmbca_hsspi_probe()
573 clk_disable_unprepare(pll_clk); in bcmbca_hsspi_probe()
586 clk_disable_unprepare(bs->pll_clk); in bcmbca_hsspi_remove()
[all …]
/kernel/linux/linux-5.10/drivers/clk/loongson1/
Dclk-loongson1b.c48 hw = clk_hw_register_pll(NULL, "pll_clk", "osc_clk", in ls1x_clk_init()
50 clk_hw_register_clkdev(hw, "pll_clk", NULL); in ls1x_clk_init()
59 hw = clk_hw_register_divider(NULL, "cpu_clk_div", "pll_clk", in ls1x_clk_init()
77 hw = clk_hw_register_divider(NULL, "dc_clk_div", "pll_clk", in ls1x_clk_init()
93 hw = clk_hw_register_divider(NULL, "ahb_clk_div", "pll_clk", in ls1x_clk_init()
Dclk-loongson1c.c51 hw = clk_hw_register_pll(NULL, "pll_clk", "osc_clk", in ls1x_clk_init()
53 clk_hw_register_clkdev(hw, "pll_clk", NULL); in ls1x_clk_init()
55 hw = clk_hw_register_divider(NULL, "cpu_clk_div", "pll_clk", in ls1x_clk_init()
65 hw = clk_hw_register_divider(NULL, "dc_clk_div", "pll_clk", in ls1x_clk_init()
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh4a/
Dclock-sh7722.c82 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()
Dclock-shx3.c36 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),
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/
Dclock-sh7722.c82 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()
Dclock-sh7757.c37 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),

12345