Searched refs:ckdiv (Results 1 – 2 of 2) sorted by relevance
157 int ckdiv, cdiv, div; in at91_calc_i2c_clock() local163 ckdiv = fls(div >> 8); in at91_calc_i2c_clock()164 cdiv = div >> ckdiv; in at91_calc_i2c_clock()166 if (ckdiv > max_ckdiv) { in at91_calc_i2c_clock()167 ckdiv = max_ckdiv; in at91_calc_i2c_clock()172 (cdiv * (1 << ckdiv) + offset) * 2); in at91_calc_i2c_clock()174 bus->cwgr_val = (ckdiv << 16) | (cdiv << 8) | cdiv; in at91_calc_i2c_clock()
280 u32 val, ckdiv; in uniphier_spi_set_speed() local286 ckdiv = DIV_ROUND_UP(SSI_CLK, speed); in uniphier_spi_set_speed()287 ckdiv = round_up(ckdiv, 2); in uniphier_spi_set_speed()291 val |= ckdiv & SSI_CKS_CKRAT_MASK; in uniphier_spi_set_speed()