/linux/drivers/clk/axs10x/ |
A D | pll_clock.c | 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() 245 pll_clk->dev = dev; in axs10x_pll_clk_probe() 260 &pll_clk->hw); in axs10x_pll_clk_probe() 276 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in of_axs10x_pll_clk_setup() 277 if (!pll_clk) in of_axs10x_pll_clk_setup() 281 if (!pll_clk->base) { in of_axs10x_pll_clk_setup() 287 if (!pll_clk->lock) { in of_axs10x_pll_clk_setup() 317 iounmap(pll_clk->lock); in of_axs10x_pll_clk_setup() 319 iounmap(pll_clk->base); in of_axs10x_pll_clk_setup() [all …]
|
A D | i2s_pll_clock.c | 173 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()
|
/linux/drivers/clk/socfpga/ |
A D | clk-pll-s10.c | 199 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in s10_register_pll() 200 if (WARN_ON(!pll_clk)) in s10_register_pll() 220 hw_clk = &pll_clk->hw.hw; in s10_register_pll() 224 kfree(pll_clk); in s10_register_pll() 239 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in agilex_register_pll() 240 if (WARN_ON(!pll_clk)) in agilex_register_pll() 259 hw_clk = &pll_clk->hw.hw; in agilex_register_pll() 263 kfree(pll_clk); in agilex_register_pll() 278 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in n5x_register_pll() 279 if (WARN_ON(!pll_clk)) in n5x_register_pll() [all …]
|
A D | clk-pll-a10.c | 71 struct socfpga_pll *pll_clk; in __socfpga_pll_init() local 80 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in __socfpga_pll_init() 81 if (WARN_ON(!pll_clk)) in __socfpga_pll_init() 88 pll_clk->hw.reg = clk_mgr_a10_base_addr + reg; in __socfpga_pll_init() 101 pll_clk->hw.hw.init = &init; in __socfpga_pll_init() 103 pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA; in __socfpga_pll_init() 104 hw_clk = &pll_clk->hw.hw; in __socfpga_pll_init() 107 kfree(pll_clk); in __socfpga_pll_init()
|
A D | clk-pll.c | 78 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() 113 kfree(pll_clk); in __socfpga_pll_init()
|
/linux/drivers/clk/ |
A D | clk-hsdk-pll.c | 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() 337 pll_clk->hw.init = &init; in hsdk_pll_clk_probe() 338 pll_clk->dev = dev; in hsdk_pll_clk_probe() 353 &pll_clk->hw); in hsdk_pll_clk_probe() 370 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in of_hsdk_pll_clk_setup() 371 if (!pll_clk) in of_hsdk_pll_clk_setup() 375 if (!pll_clk->regs) { in of_hsdk_pll_clk_setup() 397 pll_clk->hw.init = &init; in of_hsdk_pll_clk_setup() 417 iounmap(pll_clk->regs); in of_hsdk_pll_clk_setup() [all …]
|
A D | clk-vt8500.c | 677 struct clk_pll *pll_clk; in vtwm_pll_clk_init() local 690 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in vtwm_pll_clk_init() 691 if (WARN_ON(!pll_clk)) in vtwm_pll_clk_init() 694 pll_clk->reg = pmc_base + reg; in vtwm_pll_clk_init() 695 pll_clk->lock = &_lock; in vtwm_pll_clk_init() 696 pll_clk->type = pll_type; in vtwm_pll_clk_init() 707 pll_clk->hw.init = &init; in vtwm_pll_clk_init() 709 hw = &pll_clk->hw; in vtwm_pll_clk_init() 710 rc = clk_hw_register(NULL, &pll_clk->hw); in vtwm_pll_clk_init() 712 kfree(pll_clk); in vtwm_pll_clk_init()
|
A D | clk-moxart.c | 62 struct clk *pll_clk; in moxart_of_apb_clk_init() local 84 pll_clk = of_clk_get(node, 0); in moxart_of_apb_clk_init() 85 if (IS_ERR(pll_clk)) { in moxart_of_apb_clk_init()
|
/linux/drivers/clk/renesas/ |
A D | rcar-gen3-cpg.c | 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() 124 struct cpg_pll_clk *pll_clk; in cpg_pll_clk_register() local 128 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL); in cpg_pll_clk_register() 129 if (!pll_clk) in cpg_pll_clk_register() 137 pll_clk->hw.init = &init; in cpg_pll_clk_register() 138 pll_clk->pllcr_reg = base + offset; in cpg_pll_clk_register() 139 pll_clk->pllecr_reg = base + CPG_PLLECR; in cpg_pll_clk_register() 143 clk = clk_register(NULL, &pll_clk->hw); in cpg_pll_clk_register() [all …]
|
A D | rzg2l-cpg.c | 268 struct pll_clk { struct 281 struct pll_clk *pll_clk = to_pll(hw); in rzg2l_cpg_pll_clk_recalc_rate() local 287 if (pll_clk->type != CLK_TYPE_SAM_PLL) in rzg2l_cpg_pll_clk_recalc_rate() 312 struct pll_clk *pll_clk; in rzg2l_cpg_pll_clk_register() local 318 pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); in rzg2l_cpg_pll_clk_register() 319 if (!pll_clk) in rzg2l_cpg_pll_clk_register() 329 pll_clk->hw.init = &init; in rzg2l_cpg_pll_clk_register() 330 pll_clk->conf = core->conf; in rzg2l_cpg_pll_clk_register() 331 pll_clk->base = base; in rzg2l_cpg_pll_clk_register() 332 pll_clk->priv = priv; in rzg2l_cpg_pll_clk_register() [all …]
|
/linux/drivers/spi/ |
A D | spi-bcm63xx-hsspi.c | 106 struct clk *pll_clk; member 336 struct clk *clk, *pll_clk = NULL; in bcm63xx_hsspi_probe() local 372 if (IS_ERR(pll_clk)) { in bcm63xx_hsspi_probe() 373 ret = PTR_ERR(pll_clk); in bcm63xx_hsspi_probe() 377 ret = clk_prepare_enable(pll_clk); in bcm63xx_hsspi_probe() 381 rate = clk_get_rate(pll_clk); in bcm63xx_hsspi_probe() 397 bs->pll_clk = pll_clk; in bcm63xx_hsspi_probe() 457 clk_disable_unprepare(pll_clk); in bcm63xx_hsspi_probe() 471 clk_disable_unprepare(bs->pll_clk); in bcm63xx_hsspi_remove() 484 clk_disable_unprepare(bs->pll_clk); in bcm63xx_hsspi_suspend() [all …]
|
/linux/arch/sh/kernel/cpu/sh2a/ |
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),
|
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/ |
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()
|
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()
|
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()
|
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()
|
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),
|
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),
|
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()
|
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),
|
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/ |
A D | clk-pll14xx.c | 387 const struct imx_pll14xx_clk *pll_clk) in imx_dev_clk_hw_pll14xx() argument 400 init.flags = pll_clk->flags; in imx_dev_clk_hw_pll14xx() 404 switch (pll_clk->type) { in imx_dev_clk_hw_pll14xx() 406 if (!pll_clk->rate_table) in imx_dev_clk_hw_pll14xx() 423 pll->type = pll_clk->type; in imx_dev_clk_hw_pll14xx() 424 pll->rate_table = pll_clk->rate_table; in imx_dev_clk_hw_pll14xx() 425 pll->rate_count = pll_clk->rate_count; in imx_dev_clk_hw_pll14xx()
|
/linux/drivers/clk/samsung/ |
A D | clk-pll.c | 1435 __func__, pll_clk->name); in _samsung_clk_register_pll() 1439 init.name = pll_clk->name; in _samsung_clk_register_pll() 1440 init.flags = pll_clk->flags; in _samsung_clk_register_pll() 1441 init.parent_names = &pll_clk->parent_name; in _samsung_clk_register_pll() 1444 if (pll_clk->rate_table) { in _samsung_clk_register_pll() 1456 __func__, pll_clk->name); in _samsung_clk_register_pll() 1459 switch (pll_clk->type) { in _samsung_clk_register_pll() 1572 __func__, pll_clk->name); in _samsung_clk_register_pll() 1576 pll->type = pll_clk->type; in _samsung_clk_register_pll() 1578 pll->con_reg = base + pll_clk->con_offset; in _samsung_clk_register_pll() [all …]
|
/linux/drivers/clk/ti/ |
A D | fapll.c | 497 struct clk *pll_clk) in ti_fapll_synth_setup() argument 522 synth->clk_pll = pll_clk; in ti_fapll_synth_setup() 544 struct clk *pll_clk; in ti_fapll_setup() local 598 pll_clk = clk_register(NULL, &fd->hw); in ti_fapll_setup() 599 if (IS_ERR(pll_clk)) in ti_fapll_setup() 602 fd->outputs.clks[0] = pll_clk; in ti_fapll_setup() 642 pll_clk); in ti_fapll_setup()
|