Revision | 6ac25538d870685707e7cdebba771c79ada77e80 (tree) |
---|---|
Zeit | 2022-07-19 20:46:28 |
Autor | Eddie James <eajames@linu...> |
Commiter | Heiko Schocher |
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 <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>
@@ -77,7 +77,7 @@ static void ast_i2c_init_bus(struct udevice *dev) | ||
77 | 77 | /* Enable Master Mode. Assuming single-master */ |
78 | 78 | writel(I2CD_MASTER_EN |
79 | 79 | | I2CD_M_SDA_LOCK_EN |
80 | - | I2CD_MULTI_MASTER_DIS | I2CD_M_SCL_DRIVE_EN, | |
80 | + | I2CD_MULTI_MASTER_DIS, | |
81 | 81 | &priv->regs->fcr); |
82 | 82 | /* Enable Interrupts */ |
83 | 83 | writel(I2CD_INTR_TX_ACK |