summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/rockchip/common/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/rockchip/common/i2c.c b/src/soc/rockchip/common/i2c.c
index a00d538ba2..032efda9b2 100644
--- a/src/soc/rockchip/common/i2c.c
+++ b/src/soc/rockchip/common/i2c.c
@@ -286,6 +286,6 @@ void i2c_init(unsigned int bus, unsigned int hz)
i2c_clk = i2c_src_clk / (8 * (divl + 1 + divh + 1));
printk(BIOS_DEBUG, "I2C bus %u: %uHz (divh = %u, divl = %u)\n",
bus, i2c_clk, divh, divl);
- assert((divh < 65536) && (divl < 65536) && hz - i2c_clk < 10*KHz);
+ assert((divh < 65536) && (divl < 65536) && hz - i2c_clk < 15*KHz);
write32(&regs->i2c_clkdiv, (divh << 16) | (divl << 0));
}