Searched refs:clkhi (Results 1 – 2 of 2) sorted by relevance
274 u32 preescale = 0, best_pre = 0, clkhi = 0; in bus_i2c_set_bus_speed() local302 for (clkhi = 1; clkhi < 32; clkhi++) { in bus_i2c_set_bus_speed()303 if (clkhi == 1) in bus_i2c_set_bus_speed()306 rate = (clock_rate / preescale / (3 * clkhi + 2 + 2 / preescale)); in bus_i2c_set_bus_speed()312 best_clkhi = clkhi; in bus_i2c_set_bus_speed()
204 unsigned int clk_rate, clk_cycle, clkhi, clklo; in lpi2c_imx_config() local222 clkhi = DIV_ROUND_UP(clk_cycle, I2C_CLK_RATIO + 1); in lpi2c_imx_config()223 clklo = clk_cycle - clkhi; in lpi2c_imx_config()248 sethold = clkhi; in lpi2c_imx_config()249 datavd = clkhi >> 1; in lpi2c_imx_config()250 temp = datavd << 24 | sethold << 16 | clkhi << 8 | clklo; in lpi2c_imx_config()