summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-07-08 13:39:05 -0600
committerCommit Bot <commit-bot@chromium.org>2021-07-08 22:40:56 +0000
commitab89e99cafc7c1f9b0336162b480c77e0a4af96c (patch)
treeee246f566203d9abe56a175e398a7e773c657bd0 /zephyr
parent42f5279c008f451db480716162d8cc5a657bc93a (diff)
downloadchrome-ec-ab89e99cafc7c1f9b0336162b480c77e0a4af96c.tar.gz
zephyr: add support for CONSOLE_CMD_MFALLOW
Add Kconfig option to control the CONSOLE_CMD_MFALLOW cros-ec option. BUG=b:193159000 BRANCH=none TEST=make buildall TEST=zmake testalll Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0f9296cfc72d52c26e6d012b5aaf68c449df2669 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3016955 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr')
-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 */