Home
last modified time | relevance | path

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

/external/u-boot/drivers/i2c/
Dfsl_i2c.c120 uint i2c_clk, uint speed) in set_i2c_bus_speed() argument
122 ushort divider = min(i2c_clk / speed, (uint)USHRT_MAX); in set_i2c_bus_speed()
140 dfsr = (5 * (i2c_clk / 1000)) / 100000; in set_i2c_bus_speed()
144 speed = i2c_clk / divider; /* Fake something */ in set_i2c_bus_speed()
146 debug("Requested speed:%d, i2c_clk:%d\n", speed, i2c_clk); in set_i2c_bus_speed()
162 speed = i2c_clk / est_div; in set_i2c_bus_speed()
172 (i2c_clk / 1000)); in set_i2c_bus_speed()
193 speed = i2c_clk / fsl_i2c_speed_map[i].divider; in set_i2c_bus_speed()
261 slaveadd, int i2c_clk, int busnum) in __i2c_init() argument
275 set_i2c_bus_speed(base, i2c_clk, speed); in __i2c_init()
[all …]
Dat91_i2c.c151 static void at91_calc_i2c_clock(struct udevice *dev, int i2c_clk) in at91_calc_i2c_clock() argument
162 div = max(0, (int)DIV_ROUND_UP(src_rate, 2 * i2c_clk) - offset); in at91_calc_i2c_clock()
/external/u-boot/arch/powerpc/include/asm/
Dfsl_i2c.h73 u32 i2c_clk; member