Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/tty/serial/8250/
D8250_lpc18xx.c31 struct clk *clk_reg; member
124 data->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc18xx_serial_probe()
125 if (IS_ERR(data->clk_reg)) { in lpc18xx_serial_probe()
127 return PTR_ERR(data->clk_reg); in lpc18xx_serial_probe()
130 ret = clk_prepare_enable(data->clk_reg); in lpc18xx_serial_probe()
181 clk_disable_unprepare(data->clk_reg); in lpc18xx_serial_probe()
191 clk_disable_unprepare(data->clk_reg); in lpc18xx_serial_remove()
/linux-6.1.9/drivers/spi/
Dspi-dw-pci.c36 void __iomem *clk_reg; in dw_spi_pci_mid_init() local
39 clk_reg = ioremap(MRST_CLK_SPI_REG, 16); in dw_spi_pci_mid_init()
40 if (!clk_reg) in dw_spi_pci_mid_init()
44 clk_cdiv = readl(clk_reg + dws->bus_num * sizeof(u32)); in dw_spi_pci_mid_init()
49 iounmap(clk_reg); in dw_spi_pci_mid_init()
/linux-6.1.9/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-6.1.9/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()
/linux-6.1.9/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-6.1.9/drivers/pci/controller/dwc/
Dpcie-armada8k.c33 struct clk *clk_reg; member
296 pcie->clk_reg = devm_clk_get(dev, "reg"); in armada8k_pcie_probe()
297 if (pcie->clk_reg == ERR_PTR(-EPROBE_DEFER)) { in armada8k_pcie_probe()
301 if (!IS_ERR(pcie->clk_reg)) { in armada8k_pcie_probe()
302 ret = clk_prepare_enable(pcie->clk_reg); in armada8k_pcie_probe()
330 clk_disable_unprepare(pcie->clk_reg); in armada8k_pcie_probe()
/linux-6.1.9/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-6.1.9/drivers/mtd/spi-nor/controllers/
Dnxp-spifi.c56 struct clk *clk_reg; member
404 spifi->clk_reg = devm_clk_get(&pdev->dev, "reg"); in nxp_spifi_probe()
405 if (IS_ERR(spifi->clk_reg)) { in nxp_spifi_probe()
407 return PTR_ERR(spifi->clk_reg); in nxp_spifi_probe()
410 ret = clk_prepare_enable(spifi->clk_reg); in nxp_spifi_probe()
450 clk_disable_unprepare(spifi->clk_reg); in nxp_spifi_probe()
460 clk_disable_unprepare(spifi->clk_reg); in nxp_spifi_remove()
/linux-6.1.9/drivers/char/hw_random/
Domap-rng.c160 struct clk *clk_reg; member
475 priv->clk_reg = devm_clk_get(&pdev->dev, "reg"); in omap_rng_probe()
476 if (PTR_ERR(priv->clk_reg) == -EPROBE_DEFER) in omap_rng_probe()
478 if (!IS_ERR(priv->clk_reg)) { in omap_rng_probe()
479 ret = clk_prepare_enable(priv->clk_reg); in omap_rng_probe()
507 clk_disable_unprepare(priv->clk_reg); in omap_rng_probe()
525 clk_disable_unprepare(priv->clk_reg); in omap_rng_remove()
/linux-6.1.9/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-6.1.9/drivers/mmc/host/
Dmeson-gx-mmc.c430 u32 clk_reg; in meson_mmc_clk_init() local
433 clk_reg = CLK_ALWAYS_ON(host); in meson_mmc_clk_init()
434 clk_reg |= CLK_DIV_MASK; in meson_mmc_clk_init()
435 clk_reg |= FIELD_PREP(CLK_CORE_PHASE_MASK, CLK_PHASE_180); in meson_mmc_clk_init()
436 clk_reg |= FIELD_PREP(CLK_TX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
437 clk_reg |= FIELD_PREP(CLK_RX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
438 clk_reg |= CLK_IRQ_SDIO_SLEEP(host); in meson_mmc_clk_init()
439 writel(clk_reg, host->regs + SD_EMMC_CLOCK); in meson_mmc_clk_init()
Dmmci.c370 if (host->clk_reg != clk) { in mmci_write_clkreg()
371 host->clk_reg = clk; in mmci_write_clkreg()
1169 clk = host->clk_reg & ~variant->clkreg_enable; in mmci_start_data()
1171 clk = host->clk_reg | variant->clkreg_enable; in mmci_start_data()
1685 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_irq_thread()
2328 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_restore()
Dmmci.h409 u32 clk_reg; member
/linux-6.1.9/sound/soc/sunxi/
Dsun8i-codec.c521 u32 clk_reg; in sun8i_codec_hw_params() local
565 clk_reg = SUN8I_AIF_CLK_CTRL(SUN8I_CODEC_AIF2); in sun8i_codec_hw_params()
567 clk_reg = SUN8I_AIF_CLK_CTRL(dai->id); in sun8i_codec_hw_params()
570 regmap_update_bits(scodec->regmap, clk_reg, in sun8i_codec_hw_params()
579 regmap_update_bits(scodec->regmap, clk_reg, in sun8i_codec_hw_params()
/linux-6.1.9/drivers/gpu/drm/etnaviv/
Detnaviv_gpu.c1533 ret = clk_prepare_enable(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1556 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1566 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_disable()
1816 gpu->clk_reg = devm_clk_get_optional(&pdev->dev, "reg"); in etnaviv_gpu_platform_probe()
1817 DBG("clk_reg: %p", gpu->clk_reg); in etnaviv_gpu_platform_probe()
1818 if (IS_ERR(gpu->clk_reg)) in etnaviv_gpu_platform_probe()
1819 return PTR_ERR(gpu->clk_reg); in etnaviv_gpu_platform_probe()
Detnaviv_gpu.h143 struct clk *clk_reg; member
/linux-6.1.9/sound/soc/codecs/
Dda7219.c1935 u8 clk_reg; in da7219_wclk_is_prepared() local
1940 clk_reg = snd_soc_component_read(component, DA7219_DAI_CLK_MODE); in da7219_wclk_is_prepared()
1942 return !!(clk_reg & DA7219_DAI_CLK_EN_MASK); in da7219_wclk_is_prepared()