From: Eddie James Date: Wed, 11 May 2022 20:52:03 +0000 (-0500) Subject: i2c: ast_i2c: Remove SCL direct drive mode X-Git-Tag: baikal/mips/sdk5.8.2~5^2~284^2~2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=83980c799c40f535d623a3f039343eb0859106ef;p=uboot.git i2c: ast_i2c: Remove SCL direct drive mode SCL direct drive mode prevents communication with devices that do clock stretching, so disable. The Linux driver doesn't use this mode, and the engine can handle clock stretching. Signed-off-by: Eddie James Reviewed-by: Heiko Schocher Reviewed-by: Joel Stanley Reviewed-by: ryan_chen --- diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index c9ffe2d628..1c1d5566da 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -77,7 +77,7 @@ static void ast_i2c_init_bus(struct udevice *dev) /* Enable Master Mode. Assuming single-master */ writel(I2CD_MASTER_EN | I2CD_M_SDA_LOCK_EN - | I2CD_MULTI_MASTER_DIS | I2CD_M_SCL_DRIVE_EN, + | I2CD_MULTI_MASTER_DIS, &priv->regs->fcr); /* Enable Interrupts */ writel(I2CD_INTR_TX_ACK