You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2021/05/20 05:24:06 UTC

[incubator-nuttx] 09/21: arch: cxd56xx: Remove unnecessary i2c settings

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ba6201401f3e9b2c53da3be0a8e4450185317126
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed May 19 17:04:15 2021 +0900

    arch: cxd56xx: Remove unnecessary i2c settings
    
    Remove slave address register setting that is unnecessary for the
    transfer by SCU sequencer.
---
 arch/arm/src/cxd56xx/cxd56_i2c.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/src/cxd56xx/cxd56_i2c.c b/arch/arm/src/cxd56xx/cxd56_i2c.c
index eb7ea61..c206a38 100644
--- a/arch/arm/src/cxd56xx/cxd56_i2c.c
+++ b/arch/arm/src/cxd56xx/cxd56_i2c.c
@@ -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;