Searched refs:cnt_period (Results 1 – 1 of 1) sorted by relevance
260 int cnt_period = 0; /* period count of the SCL clock */ in jz4780_i2c_set_speed() local274 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()277 cnt_high = (cnt_period * 4000) / (4700 + 4000); in jz4780_i2c_set_speed()279 cnt_high = (cnt_period * 600) / (1300 + 600); in jz4780_i2c_set_speed()281 cnt_low = cnt_period - cnt_high; in jz4780_i2c_set_speed()