ish i2c: add I2C Fast Mode Plus 1Mbps speed option

Also added CONFI_ISH_I2C_PORT0_SPEED, CONFI_ISH_I2C_PORT1_SPEED, and
CONFI_ISH_I2C_PORT2_SPEED to define speed for each ISH I2C port. By
default, those are set to fast mode, 400kbps, I2C_SPEED_FAST.
The values can be modified in board.h.

BUG=None
BRANCH=None
TEST=On Soraka modified board for ISH, set I2C stardard mode, fast mode
and fast mode plus, measured I2C clock freq using scope respectively and
confirmed the freq matched I2C mode.

Change-Id: I426b50dc935c3760903360a50f6069e99bd0abff
Signed-off-by: li feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/784091
Commit-Ready: Li1 Feng <li1.feng@intel.com>
Tested-by: Li1 Feng <li1.feng@intel.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
li feng
2017-11-20 17:19:41 -08:00
committed by chrome-bot
parent 6d2f73e3dd
commit 39efbc3ada
3 changed files with 53 additions and 5 deletions

View File

@@ -1613,6 +1613,10 @@
*/
#undef CONFIG_I2C_MULTI_PORT_CONTROLLER
#undef CONFI_ISH_I2C_PORT0_SPEED
#undef CONFI_ISH_I2C_PORT1_SPEED
#undef CONFI_ISH_I2C_PORT2_SPEED
/*****************************************************************************/
/* Current/Power monitor */