Searched refs:foscl (Results 1 – 1 of 1) sorted by relevance
675 int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff; in octeon_i2c_set_clock() local720 foscl = i2c->sys_freq / (thp_idx + 2); in octeon_i2c_set_clock()722 foscl = i2c->sys_freq / in octeon_i2c_set_clock()724 foscl = foscl / (1 << ndiv_idx); in octeon_i2c_set_clock()725 foscl = foscl / (mdiv_idx + 1) / ds; in octeon_i2c_set_clock()726 if (foscl > i2c->twsi_freq) in octeon_i2c_set_clock()728 diff = abs(foscl - i2c->twsi_freq); in octeon_i2c_set_clock()