Home
last modified time | relevance | path

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

/drivers/i2c/busses/
Di2c-sh7760.c397 int scgd, scgdm, scgds; in calc_CCR() local
414 for (scgd = scgds; (scgd < 63) && scgd <= scgds + 1; scgd++) { in calc_CCR()
415 m1 = iclk / (20 + (scgd << 3)); in calc_CCR()
420 scgdm = scgd; in calc_CCR()
Di2c-rcar.c253 u32 scgd, cdf, round, ick, sum, scl, cdf_width; in rcar_i2c_clock_calculate() local
326 for (scgd = 0; scgd < 0x40; scgd++) { in rcar_i2c_clock_calculate()
327 scl = ick / (20 + (scgd * 8) + round); in rcar_i2c_clock_calculate()
336 scl, t.bus_freq_hz, rate, round, cdf, scgd); in rcar_i2c_clock_calculate()
339 priv->icccr = scgd << cdf_width | cdf; in rcar_i2c_clock_calculate()