summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/Kconfig10
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 2f4a653fea..07f09ae46e 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -484,6 +484,16 @@ config PLATFORM_EC_CONSOLE_CMD_I2C_PORTMAP
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_CONSOLE_CMD_I2C_SPEED
+ bool "Console command: i2cspeed"
+ default n
+ depends on PLATFORM_EC_I2C
+ help
+ Enable the 'i2cspeed' console command. This comamnd is used to
+ display an I2C port's bus speed. Additionally, for ports with
+ the DYNAMIC_SPEED port flag set, the speed can be set. In all
+ cases, the bus speed is in units of kHz.
+
config PLATFORM_EC_SMBUS_PEC
bool "Packet error checking support for SMBus"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index a19a2e1775..04d2ca1d5d 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -169,6 +169,11 @@
#define CONFIG_I2C_PASSTHRU_RESTRICTED
#endif
+#undef CONFIG_CMD_I2C_SPEED
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_I2C_SPEED
+#define CONFIG_CMD_I2C_SPEED
+#endif
+
#undef CONFIG_BATTERY_PRESENT_CUSTOM
#ifdef CONFIG_PLATFORM_EC_BATTERY_PRESENT_CUSTOM
#define CONFIG_BATTERY_PRESENT_CUSTOM