Home
last modified time | relevance | path

Searched refs:cdiv (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/clk/qcom/
Dgcc-ipq4019.c32 struct clk_fepll, cdiv)
74 struct clk_regmap_div cdiv; member
1214 u32 fdbkdiv, refclkdiv, cdiv; in clk_fepll_vco_calc_rate() local
1217 regmap_read(pll_div->cdiv.clkr.regmap, pll_vco->reg, &cdiv); in clk_fepll_vco_calc_rate()
1218 refclkdiv = (cdiv >> pll_vco->refclkdiv_shift) & in clk_fepll_vco_calc_rate()
1220 fdbkdiv = (cdiv >> pll_vco->fdbkdiv_shift) & in clk_fepll_vco_calc_rate()
1285 mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; in clk_cpu_div_set_rate()
1286 ret = regmap_update_bits(pll->cdiv.clkr.regmap, in clk_cpu_div_set_rate()
1287 pll->cdiv.reg, mask, in clk_cpu_div_set_rate()
1288 f->pre_div << pll->cdiv.shift); in clk_cpu_div_set_rate()
[all …]
/Linux-v5.4/drivers/spi/
Dspi-bcm2835.c1071 unsigned long spi_hz, clk_hz, cdiv, spi_used_hz; in bcm2835_spi_transfer_one() local
1080 cdiv = 2; /* clk_hz/2 is the fastest we can go */ in bcm2835_spi_transfer_one()
1083 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one()
1084 cdiv += (cdiv % 2); in bcm2835_spi_transfer_one()
1086 if (cdiv >= 65536) in bcm2835_spi_transfer_one()
1087 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one()
1089 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one()
1091 spi_used_hz = cdiv ? (clk_hz / cdiv) : (clk_hz / 65536); in bcm2835_spi_transfer_one()
1092 bcm2835_wr(bs, BCM2835_SPI_CLK, cdiv); in bcm2835_spi_transfer_one()
/Linux-v5.4/drivers/i2c/busses/
Di2c-at91-master.c48 int ckdiv, cdiv, div, hold = 0; in at91_calc_twi_clock() local
59 cdiv = div >> ckdiv; in at91_calc_twi_clock()
65 cdiv = 255; in at91_calc_twi_clock()
87 dev->twi_cwgr_reg = (ckdiv << 16) | (cdiv << 8) | cdiv in at91_calc_twi_clock()
91 cdiv, ckdiv, hold, t->sda_hold_ns); in at91_calc_twi_clock()
/Linux-v5.4/drivers/pwm/
Dpwm-mxs.c32 static const unsigned int cdiv[PERIOD_CDIV_MAX] = { variable
55 c = rate / cdiv[div]; in mxs_pwm_config()
/Linux-v5.4/drivers/mmc/host/
Dbcm2835.c165 u32 cdiv; member
268 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal()
1130 host->cdiv = SDCDIV_MAX_CDIV; in bcm2835_set_clock()
1131 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()
1153 host->cdiv = div; in bcm2835_set_clock()
1154 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()