OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:divh
(Results
1 - 2
of
2
) sorted by null
/external/u-boot/arch/arm/include/asm/arch-rockchip/
i2c.h
41
#define I2C_CLKDIV_VAL(divl,
divh
) \
42
(((divl) & 0xffff) | (((
divh
) << 16) & 0xffff0000))
/external/u-boot/drivers/i2c/
rk_i2c.c
34
static inline void rk_i2c_get_div(int div, int *
divh
, int *divl)
38
*
divh
= div / 2;
40
*
divh
= DIV_ROUND_UP(div, 2);
51
int div, divl,
divh
;
local
57
divh
= 0;
60
rk_i2c_get_div(div, &
divh
, &divl);
61
writel(I2C_CLKDIV_VAL(divl,
divh
), &i2c->regs->clkdiv);
65
debug("set i2c clk div = %d,
divh
= %d, divl = %d\n", div,
divh
, divl);
Completed in 4318 milliseconds