Home
last modified time | relevance | path

Searched refs:clk_reg (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.10/drivers/clk/
Dclk-max77686.c36 u32 clk_reg; member
58 .clk_reg = MAX77686_REG_32KHZ,
63 .clk_reg = MAX77686_REG_32KHZ,
68 .clk_reg = MAX77686_REG_32KHZ,
77 .clk_reg = MAX77802_REG_32KHZ,
82 .clk_reg = MAX77802_REG_32KHZ,
91 .clk_reg = MAX77620_REG_CNFG1_32K,
106 return regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg, in max77686_clk_prepare()
115 regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg, in max77686_clk_unprepare()
126 ret = regmap_read(max77686->regmap, max77686->clk_info->clk_reg, &val); in max77686_clk_is_prepared()
/Linux-v5.10/drivers/reset/
Dreset-lpc18xx.c36 struct clk *clk_reg; member
155 rc->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc18xx_rgu_probe()
156 if (IS_ERR(rc->clk_reg)) { in lpc18xx_rgu_probe()
158 return PTR_ERR(rc->clk_reg); in lpc18xx_rgu_probe()
167 ret = clk_prepare_enable(rc->clk_reg); in lpc18xx_rgu_probe()
179 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe()
212 clk_disable_unprepare(rc->clk_reg); in lpc18xx_rgu_probe()
/Linux-v5.10/drivers/tty/serial/8250/
D8250_lpc18xx.c31 struct clk *clk_reg; member
135 data->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc18xx_serial_probe()
136 if (IS_ERR(data->clk_reg)) { in lpc18xx_serial_probe()
138 return PTR_ERR(data->clk_reg); in lpc18xx_serial_probe()
141 ret = clk_prepare_enable(data->clk_reg); in lpc18xx_serial_probe()
191 clk_disable_unprepare(data->clk_reg); in lpc18xx_serial_probe()
201 clk_disable_unprepare(data->clk_reg); in lpc18xx_serial_remove()
/Linux-v5.10/drivers/spi/
Dspi-dw-pci.c36 void __iomem *clk_reg; in spi_mid_init() local
39 clk_reg = ioremap(MRST_CLK_SPI_REG, 16); in spi_mid_init()
40 if (!clk_reg) in spi_mid_init()
44 clk_cdiv = readl(clk_reg + dws->bus_num * sizeof(u32)); in spi_mid_init()
49 iounmap(clk_reg); in spi_mid_init()
/Linux-v5.10/drivers/rtc/
Drtc-lpc24xx.c66 struct clk *clk_reg; member
217 rtc->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc24xx_rtc_probe()
218 if (IS_ERR(rtc->clk_reg)) { in lpc24xx_rtc_probe()
220 return PTR_ERR(rtc->clk_reg); in lpc24xx_rtc_probe()
229 ret = clk_prepare_enable(rtc->clk_reg); in lpc24xx_rtc_probe()
261 clk_disable_unprepare(rtc->clk_reg); in lpc24xx_rtc_probe()
278 clk_disable_unprepare(rtc->clk_reg); in lpc24xx_rtc_remove()
/Linux-v5.10/drivers/clk/ux500/
Dclk-prcc.c102 struct clk *clk_reg; in clk_reg_prcc() local
127 clk_reg = clk_register(NULL, &clk->hw); in clk_reg_prcc()
128 if (IS_ERR_OR_NULL(clk_reg)) in clk_reg_prcc()
131 return clk_reg; in clk_reg_prcc()
Dclk-sysctrl.c131 struct clk *clk_reg; in clk_reg_sysctrl() local
170 clk_reg = devm_clk_register(clk->dev, &clk->hw); in clk_reg_sysctrl()
171 if (IS_ERR(clk_reg)) in clk_reg_sysctrl()
174 return clk_reg; in clk_reg_sysctrl()
Dclk-prcmu.c253 struct clk *clk_reg; in clk_reg_prcmu() local
279 clk_reg = clk_register(NULL, &clk->hw); in clk_reg_prcmu()
280 if (IS_ERR_OR_NULL(clk_reg)) in clk_reg_prcmu()
283 return clk_reg; in clk_reg_prcmu()
/Linux-v5.10/drivers/media/rc/
Dir-hix5hd2.c68 u32 clk_reg; member
73 .clk_reg = 0x48,
77 .clk_reg = 0x60,
94 u32 clk_reg = dev->socdata->clk_reg; in hix5hd2_ir_clk_enable() local
99 regmap_read(dev->regmap, clk_reg, &val); in hix5hd2_ir_clk_enable()
107 regmap_write(dev->regmap, clk_reg, val); in hix5hd2_ir_clk_enable()
/Linux-v5.10/drivers/pci/controller/dwc/
Dpcie-armada8k.c33 struct clk *clk_reg; member
303 pcie->clk_reg = devm_clk_get(dev, "reg"); in armada8k_pcie_probe()
304 if (pcie->clk_reg == ERR_PTR(-EPROBE_DEFER)) { in armada8k_pcie_probe()
308 if (!IS_ERR(pcie->clk_reg)) { in armada8k_pcie_probe()
309 ret = clk_prepare_enable(pcie->clk_reg); in armada8k_pcie_probe()
337 clk_disable_unprepare(pcie->clk_reg); in armada8k_pcie_probe()
/Linux-v5.10/drivers/clk/sunxi/
Dclk-sun8i-bus-gates.c29 void __iomem *clk_reg; in sun8i_h3_bus_gates_init() local
78 clk_reg = reg + 4 * (index / 32); in sun8i_h3_bus_gates_init()
83 0, clk_reg, clk_bit, in sun8i_h3_bus_gates_init()
Dclk-simple-gates.c26 void __iomem *clk_reg; in sunxi_simple_gates_setup() local
54 clk_reg = reg + 4 * (index / 32); in sunxi_simple_gates_setup()
59 clk_reg, in sunxi_simple_gates_setup()
/Linux-v5.10/drivers/char/hw_random/
Domap-rng.c161 struct clk *clk_reg; member
480 priv->clk_reg = devm_clk_get(&pdev->dev, "reg"); in omap_rng_probe()
481 if (PTR_ERR(priv->clk_reg) == -EPROBE_DEFER) in omap_rng_probe()
483 if (!IS_ERR(priv->clk_reg)) { in omap_rng_probe()
484 ret = clk_prepare_enable(priv->clk_reg); in omap_rng_probe()
512 clk_disable_unprepare(priv->clk_reg); in omap_rng_probe()
530 clk_disable_unprepare(priv->clk_reg); in omap_rng_remove()
/Linux-v5.10/drivers/mtd/spi-nor/controllers/
Dnxp-spifi.c56 struct clk *clk_reg; member
407 spifi->clk_reg = devm_clk_get(&pdev->dev, "reg"); in nxp_spifi_probe()
408 if (IS_ERR(spifi->clk_reg)) { in nxp_spifi_probe()
410 return PTR_ERR(spifi->clk_reg); in nxp_spifi_probe()
413 ret = clk_prepare_enable(spifi->clk_reg); in nxp_spifi_probe()
453 clk_disable_unprepare(spifi->clk_reg); in nxp_spifi_probe()
463 clk_disable_unprepare(spifi->clk_reg); in nxp_spifi_remove()
/Linux-v5.10/arch/mips/cavium-octeon/
Dcsrc-octeon.c70 u64 clk_reg; in octeon_init_cvmcount() local
74 clk_reg = octeon_has_feature(OCTEON_FEATURE_FPA3) ? in octeon_init_cvmcount()
86 u64 clk_count = cvmx_read_csr(clk_reg); in octeon_init_cvmcount()
/Linux-v5.10/drivers/mmc/host/
Dmeson-gx-mmc.c412 u32 clk_reg; in meson_mmc_clk_init() local
415 clk_reg = CLK_ALWAYS_ON(host); in meson_mmc_clk_init()
416 clk_reg |= CLK_DIV_MASK; in meson_mmc_clk_init()
417 clk_reg |= FIELD_PREP(CLK_CORE_PHASE_MASK, CLK_PHASE_180); in meson_mmc_clk_init()
418 clk_reg |= FIELD_PREP(CLK_TX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
419 clk_reg |= FIELD_PREP(CLK_RX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
420 writel(clk_reg, host->regs + SD_EMMC_CLOCK); in meson_mmc_clk_init()
Dmmci.c369 if (host->clk_reg != clk) { in mmci_write_clkreg()
370 host->clk_reg = clk; in mmci_write_clkreg()
1168 clk = host->clk_reg & ~variant->clkreg_enable; in mmci_start_data()
1170 clk = host->clk_reg | variant->clkreg_enable; in mmci_start_data()
1674 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_irq_thread()
2255 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_restore()
Dmmci.h409 u32 clk_reg; member
/Linux-v5.10/drivers/gpu/drm/etnaviv/
Detnaviv_gpu.c1503 ret = clk_prepare_enable(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1526 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1536 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_disable()
1787 gpu->clk_reg = devm_clk_get_optional(&pdev->dev, "reg"); in etnaviv_gpu_platform_probe()
1788 DBG("clk_reg: %p", gpu->clk_reg); in etnaviv_gpu_platform_probe()
1789 if (IS_ERR(gpu->clk_reg)) in etnaviv_gpu_platform_probe()
1790 return PTR_ERR(gpu->clk_reg); in etnaviv_gpu_platform_probe()
Detnaviv_gpu.h141 struct clk *clk_reg; member
/Linux-v5.10/sound/soc/codecs/
Dda7219.c1927 u8 clk_reg; in da7219_wclk_is_prepared() local
1932 clk_reg = snd_soc_component_read(component, DA7219_DAI_CLK_MODE); in da7219_wclk_is_prepared()
1934 return !!(clk_reg & DA7219_DAI_CLK_EN_MASK); in da7219_wclk_is_prepared()