diff options
author | Keith Short <keithshort@chromium.org> | 2021-09-15 15:07:24 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-15 23:39:30 +0000 |
commit | cef83663e1d7cc296e6e3bfddab410c70c303e54 (patch) | |
tree | ebceaa85249697ea44e11b5d8c6e728bfa8843d0 /zephyr/shim/include/config_chip.h | |
parent | 11890e041ef578923a1ba5e711fe480514510047 (diff) | |
download | chrome-ec-cef83663e1d7cc296e6e3bfddab410c70c303e54.tar.gz |
zephyr: add support for I2C debugging
Add support for CONFIG_I2C_DEBUG and CONFIG_I2C_DEBUG_PASSTHRU options
to zephyr.
BUG=none
BRANCH=none
TEST=zmake testall
TEST=Add CONFIG_PLATFORM_EC_I2C_DEBUG=y on herobrine, verify "i2ctrace"
command is available and functional.
TEST=Add CONFIG_PLATFORM_EC_I2C_DEBUG_PASSTHRU=y on herobrine, verify
I2C passthru messages shown during TCPC firmware sync.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ic2d9977af4fa707dab4fdaff332fbcc34491c5fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163211
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/include/config_chip.h')
-rw-r--r-- | zephyr/shim/include/config_chip.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index f53e4025b7..8c8ba3bbf2 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -452,6 +452,16 @@ #define CONFIG_I2C_CONTROLLER #endif +#undef CONFIG_I2C_DEBUG +#ifdef CONFIG_PLATFORM_EC_I2C_DEBUG +#define CONFIG_I2C_DEBUG +#endif + +#undef CONFIG_I2C_DEBUG_PASSTHRU +#ifdef CONFIG_PLATFORM_EC_I2C_DEBUG_PASSTHRU +#define CONFIG_I2C_DEBUG_PASSTHRU +#endif + #undef CONFIG_SMBUS_PEC #ifdef CONFIG_PLATFORM_EC_SMBUS_PEC #define CONFIG_SMBUS_PEC |