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>
This commit is contained in:
Kevin K Wong
2015-06-09 14:58:48 -07:00
committed by ChromeOS Commit Bot
parent 9c35b48400
commit 7fab87e488

View File

@@ -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;