From ab89e99cafc7c1f9b0336162b480c77e0a4af96c Mon Sep 17 00:00:00 2001 From: Keith Short Date: Thu, 8 Jul 2021 13:39:05 -0600 Subject: 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 Change-Id: I0f9296cfc72d52c26e6d012b5aaf68c449df2669 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3016955 Reviewed-by: Denis Brockus Commit-Queue: Denis Brockus --- zephyr/Kconfig.usbc | 10 ++++++++++ zephyr/shim/include/config_chip.h | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'zephyr') 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 [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 */ -- cgit v1.2.1