summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-09-13 11:11:06 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-14 21:08:15 +0000
commitdfbeff4b5f6d8e078c7f69b1fe5050a4288a1d66 (patch)
treed288fc2e3a83d2e7918793584d7040918a37174e /zephyr/Kconfig
parent17b10f589a23ab208222742f9864201a85512e00 (diff)
downloadchrome-ec-dfbeff4b5f6d8e078c7f69b1fe5050a4288a1d66.tar.gz
zephyr: Automatically detect shared I2C ports
Delete the "physical-port" node from named-i2c-ports, and automatically detected when multiple children point to the same I2C bus. This ensures that the I2C bus locking always blocks all matching I2C nodes, without the user needing to specify this relationship manually in the devicetree. BUG=none BRANCH=none TEST=Dump out i2c_physical_ports[] on herobrine. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I3d254684483a95af12e7940446f4cd8743684708 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3154694 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 563fddd737..3d4a5a62b5 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -454,6 +454,15 @@ config PLATFORM_EC_I2C
should make shimming other platform/ec modules which rely on i2c
communication "just work" without requiring any further code changes.
+config PLATFORM_EC_CONSOLE_CMD_I2C_PORTMAP
+ bool "Console command: i2c_portmap"
+ default y
+ depends on PLATFORM_EC_I2C
+ help
+ Enable the 'i2c_portmap' console command. This comamnd is used to
+ display the mapping of the I2C ports defined by the named-i2c-ports
+ node to the physical port and remote port indexes.
+
config PLATFORM_EC_SMBUS_PEC
bool "Packet error checking support for SMBus"
help