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

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-ocores.c41 int bus_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()
254 if (abs(diff) > i2c->bus_clock_khz / 10) { ocores_init()
257 i2c->ip_clock_khz, i2c->bus_clock_khz); ocores_init()
362 i2c->bus_clock_khz = 100; ocores_i2c_of_probe()
376 i2c->bus_clock_khz = clock_frequency / 1000; ocores_i2c_of_probe()
393 i2c->bus_clock_khz = clock_frequency / 1000; ocores_i2c_of_probe()
440 i2c->bus_clock_khz = 100; ocores_i2c_probe()

Completed in 62 milliseconds