mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
arch: cxd56xx: Remove unnecessary i2c settings
Remove slave address register setting that is unnecessary for the transfer by SCU sequencer.
This commit is contained in:
@@ -846,9 +846,6 @@ static int cxd56_i2c_transfer_scu(FAR struct i2c_master_s *dev,
|
||||
cxd56_i2c_clock_gate_disable(priv->port);
|
||||
cxd56_i2c_disable(priv);
|
||||
cxd56_i2c_setfrequency(priv, msgs->frequency);
|
||||
i2c_reg_rmw(priv, CXD56_IC_CON, IC_RESTART_EN, IC_RESTART_EN);
|
||||
i2c_reg_write(priv, CXD56_IC_TAR, msgs->addr & 0x7f);
|
||||
cxd56_i2c_enable(priv);
|
||||
cxd56_i2c_clock_gate_enable(priv->port);
|
||||
|
||||
priv->frequency = msgs->frequency;
|
||||
|
||||
Reference in New Issue
Block a user