Home
last modified time | relevance | path

Searched refs:ckdiv (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/i2c/
Dat91_i2c.c157 int ckdiv, cdiv, div; in at91_calc_i2c_clock() local
163 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()
/external/u-boot/drivers/spi/
Duniphier_spi.c280 u32 val, ckdiv; in uniphier_spi_set_speed() local
286 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()