diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2021-06-04 12:24:39 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-09 18:50:08 +0000 |
commit | 3bf7cf9dfe738f1f156d6b9dc5ade87290d1d78e (patch) | |
tree | 71760a5287b41a9738b10c7c313ad623a4ffeac6 /zephyr/projects/trogdor/lazor/CMakeLists.txt | |
parent | f2f9b534389a672ef9a3f5353b49922150dab1d3 (diff) | |
download | chrome-ec-3bf7cf9dfe738f1f156d6b9dc5ade87290d1d78e.tar.gz |
zephyr: lazor: Enable I2C_PASSTHRU_RESTRICTED config
Enable the I2C_PASSTHRU_RESTRICTED config for Lazor.
Define board_allow_i2c_passthru function in platform-specific code.
BUG=b:188885798
BRANCH=none
TEST=Verify that I2C_PASSTHRU command works properly e.g. DUT displays
the battery level correctly.
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Icf8a13f1c3aaecc660322a2153654c70c1accd7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939675
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor/lazor/CMakeLists.txt')
-rw-r--r-- | zephyr/projects/trogdor/lazor/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/projects/trogdor/lazor/CMakeLists.txt b/zephyr/projects/trogdor/lazor/CMakeLists.txt index 4f0d915619..f944971a63 100644 --- a/zephyr/projects/trogdor/lazor/CMakeLists.txt +++ b/zephyr/projects/trogdor/lazor/CMakeLists.txt @@ -31,6 +31,8 @@ zephyr_library_sources( "${PLATFORM_EC_BOARD}/switchcap.c" "${PLATFORM_EC_BOARD}/usbc_config.c") -# Board specific sensor implementation +# Board specific implementation zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_MOTIONSENSE "src/sensors.c") +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_I2C + "src/i2c.c") |