From a079f7033f3ee0674705ba126048369468a8571b Mon Sep 17 00:00:00 2001 From: Diana Z Date: Wed, 7 Sep 2022 11:24:50 -0600 Subject: 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 Change-Id: Id02c5201c229b62737fcaa427c0dcae7ab1da4cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880671 Reviewed-by: Keith Short Code-Coverage: Zoss --- zephyr/projects/skyrim/src/usbc_config.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'zephyr/projects/skyrim/src/usbc_config.c') 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 -- cgit v1.2.1