Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/i2c/
H A Dsh_i2c.c23 ureg(iccl);
63 static u16 iccl, icch; variable
108 __func__, chip, addr, iccl, icch); in sh_i2c_set_addr()
112 writeb(iccl & 0xff, &dev->iccl); in sh_i2c_set_addr()
115 if (iccl > 0xff) in sh_i2c_set_addr()
222 iccl = (u16)((num/denom) + 1); in sh_i2c_init()
224 iccl = (u16)(num/denom); in sh_i2c_init()
236 CONFIG_SH_I2C_CLOCK, speed, iccl, icch); in sh_i2c_init()
H A Drcar_iic.c21 u8 iccl; member
94 writeb(priv->iccl, priv->base + RCAR_IIC_ICCL); in rcar_iic_set_addr()
214 priv->iccl = DIV_ROUND_CLOSEST(clkrate * ratio_low, denom); in rcar_iic_set_speed()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-sh_mobile.c122 u_int16_t iccl; member
242 if (pd->iccl > max_val || pd->icch > max_val) { in sh_mobile_i2c_check_timing()
244 pd->iccl, pd->icch); in sh_mobile_i2c_check_timing()
249 if (pd->iccl & 0x100) in sh_mobile_i2c_check_timing()
260 dev_dbg(pd->dev, "timing values: L/H=0x%x/0x%x\n", pd->iccl, pd->icch); in sh_mobile_i2c_check_timing()
285 pd->iccl = sh_mobile_i2c_iccl(i2c_clk_khz, tLOW, tf); in sh_mobile_i2c_init()
297 pd->iccl = DIV_ROUND_UP(clks_per_cycle * 5 / 9 - 1, pd->clks_per_count); in sh_mobile_i2c_v2_init()
572 iic_wr(pd, ICCL, pd->iccl & 0xff); in start_ch()