Searched refs:divh (Results 1 – 2 of 2) sorted by relevance
/u-boot/arch/arm/include/asm/arch-rockchip/ |
A D | i2c.h | 41 #define I2C_CLKDIV_VAL(divl, divh) \ argument 42 (((divl) & 0xffff) | (((divh) << 16) & 0xffff0000))
|
/u-boot/drivers/i2c/ |
A D | rk_i2c.c | 48 static inline void rk_i2c_get_div(int div, int *divh, int *divl) in rk_i2c_get_div() argument 52 *divh = div / 2; in rk_i2c_get_div() 54 *divh = DIV_ROUND_UP(div, 2); in rk_i2c_get_div() 65 int div, divl, divh; in rk_i2c_set_clk() local 71 divh = 0; in rk_i2c_set_clk() 74 rk_i2c_get_div(div, &divh, &divl); in rk_i2c_set_clk() 75 writel(I2C_CLKDIV_VAL(divl, divh), &i2c->regs->clkdiv); in rk_i2c_set_clk() 79 debug("set i2c clk div = %d, divh = %d, divl = %d\n", div, divh, divl); in rk_i2c_set_clk()
|
Completed in 4 milliseconds