From 9a127bf2d1f7dcb6e4dcc749e228989e46443fe4 Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Mon, 10 Jul 2023 11:29:40 +0000 Subject: ec/google/chromeec: Skip TCSS `wait_for_connection` for AP mode entry Skip TCSS `wait_for_connection` for AP initiated mode entry. BUG=b:247670186 TEST=Verify display over TCSS and its impact on boot time for google/rex Signed-off-by: Kapil Porwal Change-Id: Ia04ff470961831237fe851f7ae3feaa5623d4b4a Reviewed-on: https://review.coreboot.org/c/coreboot/+/76368 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/ec/google/chromeec/ec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ec/google/chromeec') diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index effce6e586..ef82867e8b 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -1352,6 +1352,11 @@ int google_chromeec_wait_for_displayport(long timeout_ms) struct stopwatch sw; int ret = 0; + if (google_chromeec_check_feature(EC_FEATURE_TYPEC_REQUIRE_AP_MODE_ENTRY)) { + printk(BIOS_INFO, "AP Mode Entry enabled, skip waiting for DisplayPort connection\n"); + return -1; + } + printk(BIOS_INFO, "Waiting for DisplayPort\n"); stopwatch_init_msecs_expire(&sw, timeout_ms); while (1) { -- cgit v1.2.3