summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.usbc10
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 9e0bb36422..b2d48396fc 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -272,6 +272,16 @@ config PLATFORM_EC_USB_PD_PORT_MAX_COUNT
source_enabled[] so that plenty of ports are supported without this
configuration option?
+config PLATFORM_EC_CONSOLE_CMD_MFALLOW
+ bool "Console command: mfallow"
+ default y
+ help
+ Controls whether multi-function support is allowed for DP (Display
+ Port) connections. Default setting allows multi-function support when
+ the attached device also supports multi-function mode.
+
+ mfallow <port> [true | false]
+
config PLATFORM_EC_CONSOLE_CMD_PD
bool "Console command: pd"
default y
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 5dcf8f443d..672168bebf 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1687,4 +1687,9 @@
#define CONFIG_USB_PD_DP_HPD_GPIO_CUSTOM
#endif
+#undef CONSOLE_CMD_MFALLOW
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_MFALLOW
+#define CONSOLE_CMD_MFALLOW
+#endif
+
#endif /* __CROS_EC_CONFIG_CHIP_H */