Home
last modified time | relevance | path

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

/freebsd/sys/dev/iicbus/controller/cadence/
H A Dcdnc_i2c.c176 uint32_t best_div_a, best_div_b, best_err; in cdnc_i2c_set_freq() local
178 best_div_a = 0; in cdnc_i2c_set_freq()
202 best_div_a = div_a; in cdnc_i2c_set_freq()
212 clk_out = sc->ref_clock_freq / (22 * (best_div_a + 1) * in cdnc_i2c_set_freq()
217 DPRINTF("%s: div_a=%d div_b=%d real-freq=%d\n", __func__, best_div_a, in cdnc_i2c_set_freq()
222 sc->cfg_reg_shadow |= CDNC_I2C_CR_DIV_A(best_div_a) | in cdnc_i2c_set_freq()