Searched refs:ckdiv (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/spi/ |
D | spi-uniphier.c | 188 u32 val, ckdiv; in uniphier_spi_set_baudrate() local 194 ckdiv = DIV_ROUND_UP(clk_get_rate(priv->clk), speed); in uniphier_spi_set_baudrate() 195 ckdiv = round_up(ckdiv, 2); in uniphier_spi_set_baudrate() 199 val |= ckdiv & SSI_CKS_CKRAT_MASK; in uniphier_spi_set_baudrate()
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-at91.c | 195 int ckdiv, cdiv, div, hold = 0; in at91_calc_twi_clock() local 203 ckdiv = fls(div >> 8); in at91_calc_twi_clock() 204 cdiv = div >> ckdiv; in at91_calc_twi_clock() 206 if (ckdiv > max_ckdiv) { in at91_calc_twi_clock() 208 ckdiv, max_ckdiv); in at91_calc_twi_clock() 209 ckdiv = max_ckdiv; in at91_calc_twi_clock() 235 dev->twi_cwgr_reg = (ckdiv << 16) | (cdiv << 8) | cdiv in at91_calc_twi_clock() 239 cdiv, ckdiv, hold, twd_hold_time_ns); in at91_calc_twi_clock()
|