Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/
H A 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()
/openbmc/linux/drivers/reset/
H A Dreset-lpc18xx.c36 struct clk *clk_reg; member
153 rc->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc18xx_rgu_probe()
154 if (IS_ERR(rc->clk_reg)) { in lpc18xx_rgu_probe()
156 return PTR_ERR(rc->clk_reg); in lpc18xx_rgu_probe()
165 ret = clk_prepare_enable(rc->clk_reg); in lpc18xx_rgu_probe()
177 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe()
208 clk_disable_unprepare(rc->clk_reg); in lpc18xx_rgu_probe()
/openbmc/linux/drivers/tty/serial/8250/
H A 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()
/openbmc/linux/drivers/spi/
H A 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()
/openbmc/linux/drivers/rtc/
H A Drtc-lpc24xx.c65 struct clk *clk_reg; member
216 rtc->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc24xx_rtc_probe()
217 if (IS_ERR(rtc->clk_reg)) { in lpc24xx_rtc_probe()
219 return PTR_ERR(rtc->clk_reg); in lpc24xx_rtc_probe()
228 ret = clk_prepare_enable(rtc->clk_reg); in lpc24xx_rtc_probe()
260 clk_disable_unprepare(rtc->clk_reg); in lpc24xx_rtc_probe()
277 clk_disable_unprepare(rtc->clk_reg); in lpc24xx_rtc_remove()
/openbmc/linux/drivers/clk/ux500/
H A 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()
H A Dclk-sysctrl.c132 struct clk *clk_reg; in clk_reg_sysctrl() local
171 clk_reg = devm_clk_register(clk->dev, &clk->hw); in clk_reg_sysctrl()
172 if (IS_ERR(clk_reg)) in clk_reg_sysctrl()
175 return clk_reg; in clk_reg_sysctrl()
/openbmc/linux/drivers/media/rc/
H A 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()
/openbmc/linux/drivers/clk/sunxi/
H A 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()
H A 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()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-armada8k.c32 struct clk *clk_reg; member
295 pcie->clk_reg = devm_clk_get(dev, "reg"); in armada8k_pcie_probe()
296 if (pcie->clk_reg == ERR_PTR(-EPROBE_DEFER)) { in armada8k_pcie_probe()
300 if (!IS_ERR(pcie->clk_reg)) { in armada8k_pcie_probe()
301 ret = clk_prepare_enable(pcie->clk_reg); in armada8k_pcie_probe()
329 clk_disable_unprepare(pcie->clk_reg); in armada8k_pcie_probe()
/openbmc/linux/drivers/char/hw_random/
H A Domap-rng.c158 struct clk *clk_reg; member
473 priv->clk_reg = devm_clk_get(&pdev->dev, "reg"); in omap_rng_probe()
474 if (PTR_ERR(priv->clk_reg) == -EPROBE_DEFER) in omap_rng_probe()
476 if (!IS_ERR(priv->clk_reg)) { in omap_rng_probe()
477 ret = clk_prepare_enable(priv->clk_reg); in omap_rng_probe()
505 clk_disable_unprepare(priv->clk_reg); in omap_rng_probe()
523 clk_disable_unprepare(priv->clk_reg); in omap_rng_remove()
/openbmc/linux/arch/mips/cavium-octeon/
H A 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()
/openbmc/u-boot/drivers/serial/
H A Dserial_pxa.c41 uint32_t clk_reg, clk_offset, reg; in pxa_uart_toggle_clock() local
43 clk_reg = UART_CLK_REG; in pxa_uart_toggle_clock()
46 reg = readl(clk_reg); in pxa_uart_toggle_clock()
53 writel(reg, clk_reg); in pxa_uart_toggle_clock()
/openbmc/linux/drivers/mtd/spi-nor/controllers/
H A Dnxp-spifi.c55 struct clk *clk_reg; member
403 spifi->clk_reg = devm_clk_get_enabled(&pdev->dev, "reg"); in nxp_spifi_probe()
404 if (IS_ERR(spifi->clk_reg)) { in nxp_spifi_probe()
406 return PTR_ERR(spifi->clk_reg); in nxp_spifi_probe()
/openbmc/linux/drivers/mmc/host/
H A Dmeson-gx-mmc.c428 u32 clk_reg; in meson_mmc_clk_init() local
431 clk_reg = CLK_ALWAYS_ON(host); in meson_mmc_clk_init()
432 clk_reg |= CLK_DIV_MASK; in meson_mmc_clk_init()
433 clk_reg |= FIELD_PREP(CLK_CORE_PHASE_MASK, CLK_PHASE_180); in meson_mmc_clk_init()
434 clk_reg |= FIELD_PREP(CLK_TX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
435 clk_reg |= FIELD_PREP(CLK_RX_PHASE_MASK, CLK_PHASE_0); in meson_mmc_clk_init()
437 clk_reg |= CLK_IRQ_SDIO_SLEEP(host); in meson_mmc_clk_init()
438 writel(clk_reg, host->regs + SD_EMMC_CLOCK); in meson_mmc_clk_init()
H A Dmmci.c401 if (host->clk_reg != clk) { in mmci_write_clkreg()
402 host->clk_reg = clk; in mmci_write_clkreg()
1271 clk = host->clk_reg & ~variant->clkreg_enable; in mmci_start_data()
1273 clk = host->clk_reg | variant->clkreg_enable; in mmci_start_data()
1840 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_irq_thread()
2488 writel(host->clk_reg, host->base + MMCICLOCK); in mmci_restore()
H A Dmmci.h426 u32 clk_reg; member
H A Dmmci_stm32_sdmmc.c644 clk = host->clk_reg; in sdmmc_execute_tuning()
/openbmc/linux/sound/soc/sunxi/
H A 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()
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_gpu.c1593 ret = clk_prepare_enable(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1616 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_enable()
1626 clk_disable_unprepare(gpu->clk_reg); in etnaviv_gpu_clk_disable()
1864 gpu->clk_reg = devm_clk_get_optional(&pdev->dev, "reg"); in etnaviv_gpu_platform_probe()
1865 DBG("clk_reg: %p", gpu->clk_reg); in etnaviv_gpu_platform_probe()
1866 if (IS_ERR(gpu->clk_reg)) in etnaviv_gpu_platform_probe()
1867 return PTR_ERR(gpu->clk_reg); in etnaviv_gpu_platform_probe()
H A Detnaviv_gpu.h156 struct clk *clk_reg; member
/openbmc/linux/sound/soc/codecs/
H A 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()