Home
last modified time | relevance | path

Searched refs:clkrate (Results 1 – 19 of 19) sorted by relevance

/linux/arch/arm/mach-omap1/
H A Di2c.c97 i2c_pdata[ints[1] - 1].clkrate = ints[2]; in omap_i2c_bus_setup()
98 i2c_pdata[ints[1] - 1].clkrate |= OMAP_I2C_CMDLINE_SETUP; in omap_i2c_bus_setup()
113 if (i2c_pdata[i].clkrate & OMAP_I2C_CMDLINE_SETUP) { in omap_register_i2c_bus_cmdline()
114 i2c_pdata[i].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; in omap_register_i2c_bus_cmdline()
133 int __init omap_register_i2c_bus(int bus_id, u32 clkrate, in omap_register_i2c_bus() argument
147 if (!i2c_pdata[bus_id - 1].clkrate) in omap_register_i2c_bus()
148 i2c_pdata[bus_id - 1].clkrate = clkrate; in omap_register_i2c_bus()
150 i2c_pdata[bus_id - 1].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; in omap_register_i2c_bus()
H A Di2c.h18 extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
23 static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, in omap_register_i2c_bus() argument
/linux/drivers/w1/masters/
H A Dmxc_w1.c93 unsigned long clkrate; in mxc_w1_probe() local
110 clkrate = clk_get_rate(mdev->clk); in mxc_w1_probe()
111 if (clkrate < 10000000) in mxc_w1_probe()
115 clkdiv = DIV_ROUND_CLOSEST(clkrate, 1000000); in mxc_w1_probe()
116 clkrate /= clkdiv; in mxc_w1_probe()
117 if ((clkrate < 980000) || (clkrate > 1020000)) in mxc_w1_probe()
119 "Incorrect time base frequency %lu Hz\n", clkrate); in mxc_w1_probe()
/linux/drivers/pwm/
H A Dpwm-apple.c35 u64 clkrate; member
55 on_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()
60 off_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()
90 state->duty_cycle = DIV64_U64_ROUND_UP((u64)on_cycles * NSEC_PER_SEC, fpwm->clkrate); in apple_pwm_get_state()
92 NSEC_PER_SEC, fpwm->clkrate); in apple_pwm_get_state()
129 fpwm->clkrate = clk_get_rate(clk); in apple_pwm_probe()
130 if (fpwm->clkrate > NSEC_PER_SEC) in apple_pwm_probe()
/linux/drivers/watchdog/
H A Dst_lpc_wdt.c46 unsigned long clkrate; member
82 unsigned long clkrate = st_wdog->clkrate; in st_wdog_load_timer() local
84 writel_relaxed(timeout * clkrate, st_wdog->base + LPC_LPA_LSB_OFF); in st_wdog_load_timer()
197 st_wdog->clkrate = clk_get_rate(st_wdog->clk); in st_wdog_probe()
199 if (!st_wdog->clkrate) { in st_wdog_probe()
203 st_wdog_dev.max_timeout = 0xFFFFFFFF / st_wdog->clkrate; in st_wdog_probe()
/linux/sound/soc/fsl/
H A Dlpc3xxx-i2s.c38 static void __lpc3xxx_find_clkdiv(u32 *clkx, u32 *clky, int freq, int xbytes, u32 clkrate) in __lpc3xxx_find_clkdiv() argument
49 clkrate = clkrate / 100; in __lpc3xxx_find_clkdiv()
50 baseclk = clkrate; in __lpc3xxx_find_clkdiv()
189 __lpc3xxx_find_clkdiv(&clkx, &clky, i2s_info_p->freq, xfersize, i2s_info_p->clkrate); in lpc3xxx_i2s_hw_params()
193 dev_dbg(dev, "Base clock rate : %d\n", i2s_info_p->clkrate); in lpc3xxx_i2s_hw_params()
329 i2s_info_p->clkrate = clk_get_rate(i2s_info_p->clk); in lpc32xx_i2s_probe()
330 if (i2s_info_p->clkrate == 0) in lpc32xx_i2s_probe()
H A Dlpc3xxx-i2s.h22 u32 clkrate; member
H A Dfsl_ssi.c687 unsigned long clkrate, baudrate, tmprate; in fsl_ssi_set_bclk() local
735 clkrate = clk_get_rate(ssi->baudclk); in fsl_ssi_set_bclk()
737 clkrate = clk_round_rate(ssi->baudclk, tmprate); in fsl_ssi_set_bclk()
739 clkrate /= factor; in fsl_ssi_set_bclk()
740 afreq = clkrate / (i + 1); in fsl_ssi_set_bclk()
/linux/drivers/i2c/busses/
H A Di2c-lpc2k.c350 u32 clkrate; in i2c_lpc2k_probe() local
390 clkrate = clk_get_rate(i2c->clk); in i2c_lpc2k_probe()
391 if (clkrate == 0) { in i2c_lpc2k_probe()
397 clkrate = clkrate / bus_clk_rate; in i2c_lpc2k_probe()
399 scl_high = (clkrate * I2C_STD_MODE_DUTY) / 100; in i2c_lpc2k_probe()
401 scl_high = (clkrate * I2C_FAST_MODE_DUTY) / 100; in i2c_lpc2k_probe()
403 scl_high = (clkrate * I2C_FAST_MODE_PLUS_DUTY) / 100; in i2c_lpc2k_probe()
406 writel(clkrate - scl_high, i2c->base + LPC24XX_I2SCLL); in i2c_lpc2k_probe()
/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_mlc.c233 uint32_t clkrate, tmp; in lpc32xx_nand_setup() local
240 clkrate = clk_get_rate(host->clk); in lpc32xx_nand_setup()
241 if (clkrate == 0) in lpc32xx_nand_setup()
242 clkrate = 104000000; in lpc32xx_nand_setup()
258 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup()
259 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup()
260 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup()
261 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup()
262 tmp |= MLCTIMEREG_RD_LOW(clkrate / host->ncfg->rd_low); in lpc32xx_nand_setup()
263 tmp |= MLCTIMEREG_WR_HIGH(clkrate / host->ncfg->wr_high + 1); in lpc32xx_nand_setup()
[all …]
H A Dlpc32xx_slc.c238 uint32_t clkrate, tmp; in lpc32xx_nand_setup() local
251 clkrate = clk_get_rate(host->clk); in lpc32xx_nand_setup()
252 if (clkrate == 0) in lpc32xx_nand_setup()
253 clkrate = LPC32XX_DEF_BUS_RATE; in lpc32xx_nand_setup()
257 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup()
258 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup()
259 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup()
261 SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | in lpc32xx_nand_setup()
262 SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | in lpc32xx_nand_setup()
263 SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); in lpc32xx_nand_setup()
/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt40 - dlg,dmic1-clkrate-hz : DMic1 clock frequency (Hz).
46 - dlg,dmic2-clkrate-hz : DMic2 clock frequency (Hz).
91 dlg,dmic1-clkrate-hz = <3000000>;
94 dlg,dmic2-clkrate-hz = <3000000>;
/linux/drivers/ata/
H A Dpata_imx.c58 unsigned long clkrate; in pata_imx_set_timing() local
61 clkrate = clk_get_rate(priv->clk); in pata_imx_set_timing()
64 !clkrate) in pata_imx_set_timing()
67 T = 1000000000 / clkrate; in pata_imx_set_timing()
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c615 s64 clkrate; in sja1105_ptp_adjfine() local
618 clkrate = (s64)scaled_ppm * SJA1105_CC_MULT_NUM; in sja1105_ptp_adjfine()
619 clkrate = div_s64(clkrate, SJA1105_CC_MULT_DEM); in sja1105_ptp_adjfine()
622 clkrate = SJA1105_CC_MULT + clkrate; in sja1105_ptp_adjfine()
623 WARN_ON(abs(clkrate) >= GENMASK_ULL(31, 0)); in sja1105_ptp_adjfine()
624 clkrate32 = clkrate; in sja1105_ptp_adjfine()
/linux/include/linux/platform_data/
H A Di2c-omap.h33 u32 clkrate; member
/linux/drivers/gpu/ipu-v3/
H A Dipu-di.c440 unsigned long rate, clkrate; in ipu_di_config_clock() local
443 clkrate = clk_get_rate(di->clk_ipu); in ipu_di_config_clock()
444 div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock); in ipu_di_config_clock()
446 rate = clkrate / div; in ipu_di_config_clock()
/linux/drivers/gpu/drm/tiny/
H A Darcpgu.c344 unsigned long clkrate = clk_get_rate(arcpgu->clk); in arcpgu_show_pxlclock() local
347 seq_printf(m, "hw : %lu\n", clkrate); in arcpgu_show_pxlclock()
/linux/drivers/media/i2c/
H A Dgc0308.c1286 unsigned long clkrate; in gc0308_probe() local
1355 clkrate = clk_get_rate(gc0308->clk); in gc0308_probe()
1356 if (clkrate != 24000000) in gc0308_probe()
1357 dev_warn(dev, "unexpected clock rate: %lu\n", clkrate); in gc0308_probe()
/linux/arch/arm64/boot/dts/renesas/
H A Dwhite-hawk-ard-audio-da7212.dtso140 dlg,dmic-clkrate = <3000000>;