Searched refs:ip_clock_khz (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-ocores.c40 int ip_clock_khz; member in struct:ocores_i2c
250 prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; ocores_init()
253 diff = i2c->ip_clock_khz / (5 * (prescale + 1)) - i2c->bus_clock_khz; ocores_init()
257 i2c->ip_clock_khz, i2c->bus_clock_khz); ocores_init()
374 i2c->ip_clock_khz = clk_get_rate(i2c->clk) / 1000; ocores_i2c_of_probe()
379 if (i2c->ip_clock_khz == 0) { ocores_i2c_of_probe()
387 i2c->ip_clock_khz = clock_frequency / 1000; ocores_i2c_of_probe()
391 i2c->ip_clock_khz = val / 1000; ocores_i2c_of_probe()
439 i2c->ip_clock_khz = pdata->clock_khz; ocores_i2c_probe()
558 i2c->ip_clock_khz = rate; ocores_i2c_resume()

Completed in 50 milliseconds