diff options
author | Simon Glass <sjg@chromium.org> | 2021-06-04 16:07:01 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-15 18:38:21 +0000 |
commit | f6f0ec7de7056ff6e0d72b5af7709bbfc42ec226 (patch) | |
tree | 98694c839915c1d656b35b6d696f74a873416e2e | |
parent | b5753903cb8948d88bc4d91ea81cb3e7bfc42520 (diff) | |
download | chrome-ec-f6f0ec7de7056ff6e0d72b5af7709bbfc42ec226.tar.gz |
zephyr: Ensure that CONFIG_USBC_PPC can be defined
At present the Kconfig for this option never makes it through to the
EC build. This does not seem to cause ill effects, but it does create
a different between the configs enabled in ECOS and Zephyr, when
CONFIG_PLATFORM_EC_USBC_PPC is defined. Fix it by adding a
suitable #define.
BUG=b:189855648
BRANCH=none
TEST=with other CLs, build asurada for Zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ifd2dd9ee63d1575effd99376f6ea5fbd1baac5a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941887
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 0310e77070..a7f54ed806 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -932,6 +932,11 @@ #define CONFIG_USB_PD_PORT_MAX_COUNT CONFIG_PLATFORM_EC_USB_PD_PORT_MAX_COUNT #endif +#undef CONFIG_USBC_PPC +#ifdef CONFIG_PLATFORM_EC_USBC_PPC +#define CONFIG_USBC_PPC +#endif + #undef CONFIG_USBC_PPC_SN5S330 #ifdef CONFIG_PLATFORM_EC_USBC_PPC_SN5S330 #define CONFIG_USBC_PPC_SN5S330 |