diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2015-06-09 14:58:48 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-10 22:55:25 +0000 |
commit | 7fab87e488f58e98dc3669b45eb068be8181ff77 (patch) | |
tree | fddf8b187b5f41952308ff9da68aa8ab754798fd | |
parent | 9c35b4840067ba67e5314c67a160604abe758055 (diff) | |
download | chrome-ec-7fab87e488f58e98dc3669b45eb068be8181ff77.tar.gz |
mec1322: Fixed I2C handling on Repeat Start.
According to the datasheet, PIN should not be set in the CTRL register.
BUG=none
TEST=Verify with I2C analyzer that no error is observed.
BRANCH=none
Change-Id: Ifed58b413151b40ed951cb71b1164432fea28eca
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/276672
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | chip/mec1322/i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chip/mec1322/i2c.c b/chip/mec1322/i2c.c index 846bcb969e..36ecabdbc4 100644 --- a/chip/mec1322/i2c.c +++ b/chip/mec1322/i2c.c @@ -300,8 +300,7 @@ int chip_i2c_xfer(int port, int slave_addr, const uint8_t *out, int out_size, MEC1322_I2C_CTRL(controller) = CTRL_ESO | CTRL_STA | CTRL_ACK | - CTRL_ENI | - CTRL_PIN; + CTRL_ENI; MEC1322_I2C_DATA(controller) = (uint8_t)slave_addr | 0x01; |