summaryrefslogtreecommitdiff
path: root/zephyr/projects/it8xxx2_evb/prj.conf
diff options
context:
space:
mode:
authortim <tim2.lin@ite.corp-partner.google.com>2021-05-17 11:09:56 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-18 15:08:31 +0000
commit9d6b2fb5d861750b5de933327fe555af29f95ea2 (patch)
treec81377818d1f4431b47459bbf24278393ff20928 /zephyr/projects/it8xxx2_evb/prj.conf
parent6aabf0406bf3e848ee171d705963e8c3d18106ba (diff)
downloadchrome-ec-9d6b2fb5d861750b5de933327fe555af29f95ea2.tar.gz
zephyr: it8xxx2_evb: enable I2C driver
Enable the I2C driver and connect with I2C peripheral to test writing and reading data. BUG=b:185202623 BRANCH=none TEST=shell: "i2c scan I2C_0(I2C_1, I2C_2, I2C_4)" "i2c write_byte I2C_0 0x52(slv) 0x10 0x20" "i2c read_byte I2C_0 0x52(slv) 0x10" Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I112aa379ba6162d774e6cd861fb6f579bb859823 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2878764 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/it8xxx2_evb/prj.conf')
-rw-r--r--zephyr/projects/it8xxx2_evb/prj.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/projects/it8xxx2_evb/prj.conf b/zephyr/projects/it8xxx2_evb/prj.conf
index b6e48ea9c6..f9da4185b5 100644
--- a/zephyr/projects/it8xxx2_evb/prj.conf
+++ b/zephyr/projects/it8xxx2_evb/prj.conf
@@ -13,6 +13,9 @@ CONFIG_AP_ARM_MTK_MT8192=y
# ADC
CONFIG_PLATFORM_EC_ADC=y
+# I2C
+CONFIG_PLATFORM_EC_I2C=y
+
# Flash
CONFIG_PLATFORM_EC_FLASH_CROS=y
@@ -28,7 +31,6 @@ CONFIG_LOG=y
# TODO(b:185202623): bring these features up
CONFIG_PLATFORM_EC_BACKLIGHT_LID=n
CONFIG_PLATFORM_EC_BOARD_VERSION=n
-CONFIG_PLATFORM_EC_I2C=n
CONFIG_PLATFORM_EC_KEYBOARD=n
CONFIG_PLATFORM_EC_SWITCH=n
CONFIG_PLATFORM_EC_VBOOT=n