summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorKapil Porwal <kapilporwal@google.com>2023-07-10 11:37:26 +0000
committerSubrata Banik <subratabanik@google.com>2023-07-15 12:47:51 +0000
commit2ba4b1bebea4321cc4998ac5bf51a9e97795157e (patch)
tree9002e8befded4312cd719dd6f2596678133b6693 /src/include/device
parent1d85464df80eaefeef06df9a74018ed93f67e19d (diff)
ec/google/chromeec: Split wait-loop for DP and HPD flags
Split wait-loop for DP and HPD flags as below - - google_chromeec_wait_for_hpd - google_chromeec_wait_for_dp_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: I3e565d6134f6433930916071e94d56d92dc6cb06 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76370 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/usbc_mux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/device/usbc_mux.h b/src/include/device/usbc_mux.h
index 0648a74f66..cf109b7fe8 100644
--- a/src/include/device/usbc_mux.h
+++ b/src/include/device/usbc_mux.h
@@ -55,6 +55,15 @@ struct usbc_dp_ops {
int (*enter_dp_mode)(int port);
/*
+ * Wait up to `timeout_ms` for DP mode entry on a given port.
+ *
+ * Return value:
+ * -1 = timeout
+ * 0 = success
+ */
+ int (*wait_for_dp_mode_entry)(int port, long timeout_ms);
+
+ /*
* Wait up to `timeout_ms` for HPD on a given port.
*
* Return value: