Home
last modified time | relevance | path

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

/u-boot/drivers/i2c/
A Di2c-cdns.c169 unsigned int div_a, div_b, calc_div_a = 0, calc_div_b = 0; in cdns_i2c_calc_divs() local
183 for (div_a = 0; div_a < CDNS_I2C_DIVA_MAX; div_a++) { in cdns_i2c_calc_divs()
184 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs()
190 actual_fscl = input_clk / (22 * (div_a + 1) * (div_b + 1)); in cdns_i2c_calc_divs()
199 calc_div_a = div_a; in cdns_i2c_calc_divs()
216 u32 div_a = 0, div_b = 0; in cdns_i2c_set_bus_speed() local
226 ret = cdns_i2c_calc_divs(&speed_p, bus->input_freq, &div_a, &div_b); in cdns_i2c_set_bus_speed()
231 __func__, div_a, div_b, bus->input_freq, speed, speed_p); in cdns_i2c_set_bus_speed()
234 (div_a << CDNS_I2C_CONTROL_DIV_A_SHIFT), &bus->regs->control); in cdns_i2c_set_bus_speed()

Completed in 5 milliseconds