Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/i2c/
H A Dimx_lpi2c.c275 u32 best_clkhi = 0, abs_error = 0, rate; in bus_i2c_set_bus_speed() local
312 best_clkhi = clkhi; in bus_i2c_set_bus_speed()
321 val = LPI2C_MCCR0_CLKHI(best_clkhi); in bus_i2c_set_bus_speed()
322 if (best_clkhi < 2) in bus_i2c_set_bus_speed()
325 val |= LPI2C_MCCR0_CLKLO(2 * best_clkhi) | LPI2C_MCCR0_SETHOLD(best_clkhi) | in bus_i2c_set_bus_speed()
326 LPI2C_MCCR0_DATAVD(best_clkhi / 2); in bus_i2c_set_bus_speed()