summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/morphius/board.c8
-rw-r--r--board/morphius/gpio.inc1
2 files changed, 6 insertions, 3 deletions
diff --git a/board/morphius/board.c b/board/morphius/board.c
index 3fc99830a9..55474c950f 100644
--- a/board/morphius/board.c
+++ b/board/morphius/board.c
@@ -291,9 +291,11 @@ enum gpio_signal board_usbc_port_to_hpd_gpio(int port)
* this will be removed when version_2 hardware is retired.
*/
else if (ec_config_has_mst_hub_rtd2141b())
- return (board_ver >= 3)
- ? IOEX_USB_C1_HPD_IN_DB
- : GPIO_EC_DP1_HPD;
+ return (board_ver >= 4)
+ ? GPIO_USB_C1_HPD_IN_DB_V1
+ : (board_ver == 3)
+ ? IOEX_USB_C1_HPD_IN_DB
+ : GPIO_EC_DP1_HPD;
/* USB-C1 OPT1 DB uses DP2_HPD. */
return GPIO_DP2_HPD;
diff --git a/board/morphius/gpio.inc b/board/morphius/gpio.inc
index a42c5179e1..4cc12a423f 100644
--- a/board/morphius/gpio.inc
+++ b/board/morphius/gpio.inc
@@ -56,6 +56,7 @@ GPIO(EC_PS2_RESET_V0, PIN(3, 2), GPIO_OUT_LOW) /* Trackpoint reset pin V0*/
GPIO(EC_PS2_RESET_V1, PIN(4, 5), GPIO_OUT_LOW) /* Trackpoint reset pin V1 */
GPIO(EC_H1_PACKET_MODE, PIN(8, 6), GPIO_OUT_LOW) /* H1 Packet Mode */
GPIO(FAN_ID, PIN(8, 2), GPIO_INPUT) /* Fan ID*/
+GPIO(USB_C1_HPD_IN_DB_V1, PIN(B, 1), GPIO_OUT_LOW) /* C1 HPD V1 */
UNIMPLEMENTED(NO_HPD)