summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/src/usbc_config.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-09-07 11:24:50 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-12 16:13:29 +0000
commita079f7033f3ee0674705ba126048369468a8571b (patch)
treed20946c5eccbeffaf998f152ce967a28ca6be442 /zephyr/projects/skyrim/src/usbc_config.c
parent09cfcbbf5f93753f689e7cf1b47b63f17c3e9f36 (diff)
downloadchrome-ec-a079f7033f3ee0674705ba126048369468a8571b.tar.gz
Skyrim: Move PPCs to devicetree
Move the PPC configuration structure into the devicetree for all skyrim variants. BRANCH=None BUG=b:244457125 TEST=on skyrim, ensure both C0 and C1 still work for sourcing and sinking Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id02c5201c229b62737fcaa427c0dcae7ab1da4cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880671 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/projects/skyrim/src/usbc_config.c')
-rw-r--r--zephyr/projects/skyrim/src/usbc_config.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/zephyr/projects/skyrim/src/usbc_config.c b/zephyr/projects/skyrim/src/usbc_config.c
index 851dc33560..96afe531cc 100644
--- a/zephyr/projects/skyrim/src/usbc_config.c
+++ b/zephyr/projects/skyrim/src/usbc_config.c
@@ -83,21 +83,6 @@ static void usb_fault_interrupt_disable(void)
DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, usb_fault_interrupt_disable,
HOOK_PRIO_DEFAULT);
-struct ppc_config_t ppc_chips[] = {
- [USBC_PORT_C0] = {
- /* Device does not talk I2C */
- .drv = &aoz1380_drv
- },
-
- [USBC_PORT_C1] = {
- .i2c_port = I2C_PORT_TCPC1,
- .i2c_addr_flags = NX20P3483_ADDR1_FLAGS,
- .drv = &nx20p348x_drv
- },
-};
-BUILD_ASSERT(ARRAY_SIZE(ppc_chips) == CONFIG_USB_PD_PORT_MAX_COUNT);
-unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips);
-
/*
* .init is not necessary here because it has nothing
* to do. Primary mux will handle mux state so .get is