Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/i2c/busses/
Di2c-ocores.c41 int bus_clock_khz; member
244 prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; in ocores_init()
247 diff = i2c->ip_clock_khz / (5 * (prescale + 1)) - i2c->bus_clock_khz; in ocores_init()
248 if (abs(diff) > i2c->bus_clock_khz / 10) { in ocores_init()
251 i2c->ip_clock_khz, i2c->bus_clock_khz); in ocores_init()
356 i2c->bus_clock_khz = 100; in ocores_i2c_of_probe()
370 i2c->bus_clock_khz = clock_frequency / 1000; in ocores_i2c_of_probe()
388 i2c->bus_clock_khz = clock_frequency / 1000; in ocores_i2c_of_probe()
435 i2c->bus_clock_khz = 100; in ocores_i2c_probe()