summaryrefslogtreecommitdiff
path: root/board/woomax/board.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-11-23 15:04:49 -0800
committerScott Collyer <scollyer@google.com>2021-11-23 15:04:49 -0800
commit817cf2223b0b33c91ca6e369b644cbc4d6c361e3 (patch)
treef698bbab73d87af25f9fdc2d49f50a0c25111a79 /board/woomax/board.h
parent6da8436a8ce04a7f88f80049a10638e1b8f6439d (diff)
parent0349a5b6d95308141754523708a2d11d8bacce4c (diff)
downloadchrome-ec-817cf2223b0b33c91ca6e369b644cbc4d6c361e3.tar.gz
Merge remote-tracking branch 'cros/main' into firmware-gwc-fsi
Change-Id: Id9b5b5cb1db7428cd9f12452d73842d8c1f2705a
Diffstat (limited to 'board/woomax/board.h')
-rw-r--r--board/woomax/board.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/woomax/board.h b/board/woomax/board.h
index d81c82f181..f5289f2bd1 100644
--- a/board/woomax/board.h
+++ b/board/woomax/board.h
@@ -194,15 +194,19 @@ static inline bool ec_config_has_mst_hub_rtd2141b(void)
HAS_MST_HUB_RTD2141B);
}
-/*
+/**
+ * @warning Callers must use gpio_or_ioex_set_level to handle the return result
+ * since either type of signal can be returned.
+ *
* USB-C0 always uses USB_C0_HPD (= DP3_HPD).
* USB-C1 OPT1 DB uses DP2_HPD.
* USB-C1 OPT3 DB uses DP1_HPD via RTD2141B MST hub to drive AP
* HPD, EC drives MST hub HPD input from USB-PD messages.
+ *
+ * @return GPIO (gpio_signal) or IOEX (ioex_signal)
*/
-
-enum gpio_signal board_usbc_port_to_hpd_gpio(int port);
-#define PORT_TO_HPD(port) board_usbc_port_to_hpd_gpio(port)
+int board_usbc_port_to_hpd_gpio_or_ioex(int port);
+#define PORT_TO_HPD(port) board_usbc_port_to_hpd_gpio_or_ioex(port)
extern const struct usb_mux usbc0_pi3dpx1207_usb_retimer;
extern const struct usb_mux usbc1_ps8802;