Searched refs:dev_clk_khz (Results 1 – 1 of 1) sorted by relevance
249 int dev_clk_khz = clk_get_rate(i2c->clk) / 1000; in jz4780_i2c_set_speed() local266 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()328 hold_time = ((hold_time * dev_clk_khz) / 1000000) - 1; in jz4780_i2c_set_speed()329 setup_time = ((setup_time * dev_clk_khz) / 1000000) + 1; in jz4780_i2c_set_speed()