From da6e9a047241fb414c24c3e7f5829d62df3c114c Mon Sep 17 00:00:00 2001 From: Prashant Malani Date: Thu, 21 Apr 2022 18:01:40 +0000 Subject: ec/google/chromeec: Add retimer handle to Type C conn Some platforms have retimers which can be configured via the EC. Add a handle to these retimer devices to the Type C connector device, using devicetree references. BUG=b:208883648 TEST=Verify disassembled SSDT on brya. BRANCH=None Signed-off-by: Prashant Malani Change-Id: Ic0480b08c6d6a7562cca57192e49b8ea2a33b51e Reviewed-on: https://review.coreboot.org/c/coreboot/+/63793 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/ec/google/chromeec/chip.h | 1 + src/ec/google/chromeec/ec_acpi.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/ec/google/chromeec') diff --git a/src/ec/google/chromeec/chip.h b/src/ec/google/chromeec/chip.h index 3915cf92e7..bb03e5731d 100644 --- a/src/ec/google/chromeec/chip.h +++ b/src/ec/google/chromeec/chip.h @@ -11,6 +11,7 @@ struct ec_google_chromeec_config { /* Pointer to PMC Mux connector for each Type-C port */ DEVTREE_CONST struct device *mux_conn[MAX_TYPEC_PORTS]; + DEVTREE_CONST struct device *retimer_conn[MAX_TYPEC_PORTS]; }; #endif /* EC_GOOGLE_CHROMEEC_CHIP_H */ diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 7f946264bd..69b10784b3 100644 --- a/src/ec/google/chromeec/ec_acpi.c +++ b/src/ec/google/chromeec/ec_acpi.c @@ -195,6 +195,7 @@ static void fill_ssdt_typec_device(const struct device *dev) .orientation_switch = config->mux_conn[i], .usb_role_switch = config->mux_conn[i], .mode_switch = config->mux_conn[i], + .retimer_switch = config->retimer_conn[i], .pld = &pld, }; -- cgit v1.2.3