Home
last modified time | relevance | path

Searched refs:scl_high (Results 1 – 6 of 6) sorted by relevance

/openbmc/u-boot/drivers/i2c/
H A Dast_i2c.c43 ulong scl_low, scl_high, data; in get_clk_reg_val() local
51 scl_high = divider_ratio - scl_low - 2; in get_clk_reg_val()
53 | (scl_high << I2CD_TCKHIGH_SHIFT) in get_clk_reg_val()
246 bool scl_high = csr & I2CD_SCL_LINE_STS; in ast_i2c_deblock() local
249 if (sda_high && scl_high) { in ast_i2c_deblock()
256 } else if (scl_high) { in ast_i2c_deblock()
H A Dast2600_i2c.c268 u32 scl_high; in ast2600_i2c_set_speed() local
317 scl_high = (divisor - scl_low - 2) & 0xf; in ast2600_i2c_set_speed()
319 data = ((scl_high - 1) << 20) | (scl_high << 16) | (scl_low << 12) | in ast2600_i2c_set_speed()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-lpc2k.c349 u32 scl_high; in i2c_lpc2k_probe() local
399 scl_high = (clkrate * I2C_STD_MODE_DUTY) / 100; in i2c_lpc2k_probe()
401 scl_high = (clkrate * I2C_FAST_MODE_DUTY) / 100; in i2c_lpc2k_probe()
403 scl_high = (clkrate * I2C_FAST_MODE_PLUS_DUTY) / 100; in i2c_lpc2k_probe()
405 writel(scl_high, i2c->base + LPC24XX_I2SCLH); in i2c_lpc2k_probe()
406 writel(clkrate - scl_high, i2c->base + LPC24XX_I2SCLL); in i2c_lpc2k_probe()
H A Di2c-mlxbf.c364 u16 scl_high; /* Clock high period. */ member
1134 timer = mlxbf_i2c_set_timer(priv, timings->scl_high, in mlxbf_i2c_set_timings()
1194 .scl_high = 4810,
1210 .scl_high = 1011,
1226 .scl_high = 600,
/openbmc/linux/drivers/media/i2c/
H A Dds90ub913.c635 u32 scl_high = 600 + 300; /* high period + rise time, ns */ in ub913_i2c_master_init() local
642 scl_high = div64_u64((u64)scl_high * ref, 1000000000); in ub913_i2c_master_init()
645 ret = ub913_write(priv, UB913_REG_SCL_HIGH_TIME, scl_high); in ub913_i2c_master_init()
H A Dds90ub953.c828 u32 scl_high = 915; /* ns */ in ub953_i2c_master_init() local
832 scl_high = div64_u64((u64)scl_high * ref, 1000000000) - 5; in ub953_i2c_master_init()
835 ret = ub953_write(priv, UB953_REG_SCL_HIGH_TIME, scl_high); in ub953_i2c_master_init()