summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-09-23 23:58:04 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-28 16:01:25 +0000
commit16c1d44caebe58dbd4af36b603a0c929764873a9 (patch)
treeadaaa6e7fc04eebbd12a82d6e0bfba76239b6db1 /include/config.h
parentb7a4de94f6c425b9c642b71da4cdc569c3351bc2 (diff)
downloadchrome-ec-16c1d44caebe58dbd4af36b603a0c929764873a9.tar.gz
common/i2c: Implement i2cspeed console command
This adds the "i2cspeed port [speed]" console command. If only the port number is given, then the current port bus speed is reported. With 2 arguments, the port bus speed is changed. Valid speeds are 100, 400, 1000 and the unit is kHz. BRANCH=none BUG=b:201039003 TEST=with follow-on patches, switched I2C bus speed between 400 kHz and 1 MHz. Change-Id: I7ca6b2c7a8fd9abe8e8ec77e4d1702529b297fe8 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3181504 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 5c0975c713..2753cc715c 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1418,6 +1418,7 @@
#undef CONFIG_CMD_I2CWEDGE
#undef CONFIG_CMD_I2C_PROTECT
#define CONFIG_CMD_I2C_SCAN
+#undef CONFIG_CMD_I2C_SPEED
#undef CONFIG_CMD_I2C_STRESS_TEST
#undef CONFIG_CMD_I2C_STRESS_TEST_ACCEL
#undef CONFIG_CMD_I2C_STRESS_TEST_ALS