diff options
author | Kapil Porwal <kapilporwal@google.com> | 2023-07-10 11:29:40 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-07-15 12:47:12 +0000 |
commit | 9a127bf2d1f7dcb6e4dcc749e228989e46443fe4 (patch) | |
tree | 605555e42a9b53581202841b6967104b2225c7af /src/ec/google/chromeec | |
parent | c2c5801dcd06fece4ea477c22c2eca3ecbed3a04 (diff) |
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 <kapilporwal@google.com>
Change-Id: Ia04ff470961831237fe851f7ae3feaa5623d4b4a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76368
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/ec/google/chromeec')
-rw-r--r-- | src/ec/google/chromeec/ec.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |