diff options
author | Al Semjonovs <asemjonovs@google.com> | 2022-05-11 11:27:33 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-17 21:55:34 +0000 |
commit | ffa5f4544b4ef58f7fe2e0bf03d0a95ed933452a (patch) | |
tree | cde83b317d63f9d5bb5458a035d800b3ae3f62a3 /board/brya | |
parent | e76f9c57195bc4a4dcfef2ebeeb8f4f35f32112a (diff) | |
download | chrome-ec-ffa5f4544b4ef58f7fe2e0bf03d0a95ed933452a.tar.gz |
zephyr: tcpc: Add NCT38xx TCPC driver into common TCPC shim
Add NCT38xx TCPC driver into the common zephyr TCPC shim
BUG=b:231291434
BRANCH=NONE
TEST=Attach USBC devices to each port on DUT and make sure
connection is established.
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: Idaf55e772f51263cd45cf97490c5d56da9d0adf1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3645318
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'board/brya')
-rw-r--r-- | board/brya/usbc_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/brya/usbc_config.c b/board/brya/usbc_config.c index 03fa596fbf..135a55f1b2 100644 --- a/board/brya/usbc_config.c +++ b/board/brya/usbc_config.c @@ -49,6 +49,7 @@ enum ioex_port { }; #endif /* CONFIG_ZEPHYR */ +#ifndef CONFIG_ZEPHYR /* USBC TCPC configuration */ const struct tcpc_config_t tcpc_config[] = { [USBC_PORT_C0] = { @@ -85,6 +86,7 @@ const struct tcpc_config_t tcpc_config[] = { }; BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == USBC_PORT_COUNT); BUILD_ASSERT(CONFIG_USB_PD_PORT_MAX_COUNT == USBC_PORT_COUNT); +#endif /* !CONFIG_ZEPHYR */ /******************************************************************************/ /* USB-A charging control */ |