]> git.baikalelectronics.ru Git - uboot.git/commitdiff
i2c: ast_i2c: Remove SCL direct drive mode
authorEddie James <eajames@linux.ibm.com>
Wed, 11 May 2022 20:52:03 +0000 (15:52 -0500)
committerHeiko Schocher <hs@denx.de>
Tue, 19 Jul 2022 11:46:28 +0000 (13:46 +0200)
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 <eajames@linux.ibm.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: ryan_chen <ryan_chen@aspeedtech.com>
drivers/i2c/ast_i2c.c

index c9ffe2d62820a8527cc22209f88e9608cdb24d33..1c1d5566dad41365044e51f30736665afd8dad72 100644 (file)
@@ -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