Searched refs:preescale (Results 1 – 1 of 1) sorted by relevance
274 u32 preescale = 0, best_pre = 0, clkhi = 0; in bus_i2c_set_bus_speed() local300 for (preescale = 1; (preescale <= 128) && in bus_i2c_set_bus_speed()301 (error != 0); preescale = 2 * preescale) { in bus_i2c_set_bus_speed()304 rate = (clock_rate / preescale) / (1 + 3 + 2 + 2 / preescale); in bus_i2c_set_bus_speed()306 rate = (clock_rate / preescale / (3 * clkhi + 2 + 2 / preescale)); in bus_i2c_set_bus_speed()311 best_pre = preescale; in bus_i2c_set_bus_speed()