summaryrefslogtreecommitdiff
path: root/board/cerise/board.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2021-08-23 15:29:01 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-10 19:07:02 +0000
commit26c236e3cbaad22c24b3ee8b976223524fa16421 (patch)
tree5c5d1c874297d366f7b858cc995ab6fbd9d39bc3 /board/cerise/board.c
parent316b2b4456aa78d986b675dabe547b73c59a7097 (diff)
downloadchrome-ec-26c236e3cbaad22c24b3ee8b976223524fa16421.tar.gz
ioex: it8801: Support multiple I2C addresses
To avoid the I2C address contention between multiple I2C devices on same bus, added code to support multiple I2C addresses for it8801 I/O expander. BUG=none BRANCH=none TEST=make buildall -j Change-Id: I6985973f9ae3ce91383d3b568a851169e6a308af Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115426 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Li Feng <li1.feng@intel.com>
Diffstat (limited to 'board/cerise/board.c')
-rw-r--r--board/cerise/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cerise/board.c b/board/cerise/board.c
index dfdb9230f9..78ab8f6de8 100644
--- a/board/cerise/board.c
+++ b/board/cerise/board.c
@@ -106,8 +106,8 @@ __override struct keyboard_scan_config keyscan_config = {
struct ioexpander_config_t ioex_config[CONFIG_IO_EXPANDER_PORT_COUNT] = {
[0] = {
- .i2c_host_port = I2C_PORT_IO_EXPANDER_IT8801,
- .i2c_addr_flags = IT8801_I2C_ADDR,
+ .i2c_host_port = IT8801_KEYBOARD_PWM_I2C_PORT,
+ .i2c_addr_flags = IT8801_I2C_ADDR1,
.drv = &it8801_ioexpander_drv,
},
};