Searched refs:clk_mhz (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-axxia.c | 171 static u32 ns_to_clk(u64 ns, u32 clk_mhz) in ns_to_clk() argument 173 return div_u64(ns * clk_mhz, 1000); in ns_to_clk() 179 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init() local 187 idev->bus_clk_rate, clk_mhz, divisor); in axxia_i2c_init() 206 t_setup = ns_to_clk(250, clk_mhz); in axxia_i2c_init() 211 t_setup = ns_to_clk(100, clk_mhz); in axxia_i2c_init() 221 writel(ns_to_clk(300, clk_mhz), idev->base + SDA_HOLD_TIME); in axxia_i2c_init() 223 writel(ns_to_clk(50, clk_mhz), idev->base + SPIKE_FLTR_LEN); in axxia_i2c_init() 226 tmo_clk = ns_to_clk(SCL_WAIT_TIMEOUT_NS, clk_mhz); in axxia_i2c_init()
|
D | i2c-altera.c | 145 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in altr_i2c_init() local 164 idev->bus_clk_rate, clk_mhz, divisor); in altr_i2c_init() 174 writel(div_u64(300 * clk_mhz, 1000), idev->base + ALTR_I2C_SDA_HOLD); in altr_i2c_init()
|
/Linux-v5.4/drivers/net/caif/ |
D | caif_spi_slave.c | 180 cfspi->dev->clk_mhz) < in cfspi_xfer() 185 (cfspi->xfer.tx_dma_len, cfspi->dev->clk_mhz)); in cfspi_xfer()
|
/Linux-v5.4/drivers/iio/adc/ |
D | rcar-gyroadc.c | 77 const unsigned long clk_mhz = clk_get_rate(priv->clk) / 1000000; in rcar_gyroadc_hw_init() local 80 unsigned long clk_len = clk_mhz * clk_mul; in rcar_gyroadc_hw_init() 100 writel(clk_mhz * 1250, priv->regs + RCAR_GYROADC_1_25MS_LENGTH); in rcar_gyroadc_hw_init()
|
/Linux-v5.4/include/net/caif/ |
D | caif_spi.h | 77 u32 clk_mhz; member
|
/Linux-v5.4/Documentation/networking/caif/ |
D | spi_porting.txt | 183 slave.sdev.clk_mhz = 13;
|