Home
last modified time | relevance | path

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

/openbmc/linux/drivers/i2c/busses/
H A Di2c-ocores.c47 int ip_clock_khz; member
430 prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; in ocores_init()
433 diff = i2c->ip_clock_khz / (5 * (prescale + 1)) - i2c->bus_clock_khz; in ocores_init()
437 i2c->ip_clock_khz, i2c->bus_clock_khz); in ocores_init()
560 i2c->ip_clock_khz = clk_get_rate(i2c->clk) / 1000; in ocores_i2c_of_probe()
563 if (i2c->ip_clock_khz == 0) { in ocores_i2c_of_probe()
571 i2c->ip_clock_khz = clock_frequency / 1000; in ocores_i2c_of_probe()
575 i2c->ip_clock_khz = val / 1000; in ocores_i2c_of_probe()
636 i2c->ip_clock_khz = pdata->clock_khz; in ocores_i2c_probe()
770 i2c->ip_clock_khz = rate; in ocores_i2c_resume()