aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/ec_acpi.c
diff options
context:
space:
mode:
authorDivya Sasidharan <divya.s.sasidharan@intel.com>2019-10-22 13:41:15 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-10-14 05:37:40 +0000
commit49d74de9690b448e16497483365a94f500f97e7f (patch)
tree6bf50a6826e3c57542dd21eba0a7efa9258ea2a5 /src/ec/google/chromeec/ec_acpi.c
parent9faab3122e13d767bd95dd0887235a368e94d573 (diff)
src/ec/google/chromeec: Get Type-C Mux info from EC (TCPM)
EC being the TCPM decides the mux configuration after negotiating with the port partner on the Type-C port. The APIs added here will give the current essential mux state information for a given port. BUG=None BRANCH=None TEST=Built coreboot image and verified that using this patch mux is being set for display during boot Change-Id: If994a459288ef31b0e6da8c6cdfd0ce3a0303981 Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com> Signed-off-by: Brandon Breitenstein <brandon.breitenstein@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42078 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/ec_acpi.c')
-rw-r--r--src/ec/google/chromeec/ec_acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c
index 8a76805407..b7683167af 100644
--- a/src/ec/google/chromeec/ec_acpi.c
+++ b/src/ec/google/chromeec/ec_acpi.c
@@ -144,7 +144,8 @@ static bool match_connector(DEVTREE_CONST struct device *dev)
static void fill_ssdt_typec_device(const struct device *dev)
{
int rv;
- int i, num_ports;
+ int i;
+ unsigned int num_ports;
struct device *usb2_port;
struct device *usb3_port;
struct device *usb4_port;