diff options
author | Keith Short <keithshort@chromium.org> | 2021-03-03 20:47:44 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-10 19:25:52 +0000 |
commit | 5522a92d6326fb1e93173b8594e9dcc66006a281 (patch) | |
tree | 14fd154ad9566a4b0799ad2b815541132cbbb5d0 | |
parent | df58c61c3cf4118deaa1a07dc586f384eab46bec (diff) | |
download | chrome-ec-5522a92d6326fb1e93173b8594e9dcc66006a281.tar.gz |
zephyr: disable i2cscan and i2cxfer commands
The Zephyr I2C shell command provides equivalent functionality as the
Chromium EC i2cscan and i2cxfer commands. Disable these commands that
don't work with the I2C shim driver.
BUG=b:181794644
BRANCH=none
TEST=make buildall, zmake testall
TEST=Boot zephyr-ec on Volteer
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I5a44dc7488dc6ec995276dbcb6318c4962b865e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2737542
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/shim/include/config_chip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 7ff551d711..3a4a4c3535 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -68,6 +68,13 @@ #endif /* + * The Zephyr I2C shell command provides the same functionality as the Chromium + * EC i2cscan and i2cxfer commands, so they are always disabled. + */ +#undef CONFIG_CMD_I2C_SCAN +#undef CONFIG_CMD_I2C_XFER + +/* * This not used by the Zephyr code since we always make cros_crc8() available. * Define it here to reduce the delta from the ECOS CONFIG. */ |