summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/trogdor/board.c9
-rw-r--r--board/trogdor/board.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/board/trogdor/board.c b/board/trogdor/board.c
index c9367cca9c..5e966c75cf 100644
--- a/board/trogdor/board.c
+++ b/board/trogdor/board.c
@@ -381,6 +381,15 @@ void board_reset_pd_mcu(void)
msleep(PS8805_FW_INIT_DELAY_MS);
}
+void board_set_tcpc_power_mode(int port, int mode)
+{
+ /* Ignore the "mode" to turn the chip on. We can only do a reset. */
+ if (mode)
+ return;
+
+ board_reset_pd_mcu();
+}
+
int board_vbus_sink_enable(int port, int enable)
{
/* Both ports are controlled by PPC SN5S330 */
diff --git a/board/trogdor/board.h b/board/trogdor/board.h
index 915375d719..f44e08aaca 100644
--- a/board/trogdor/board.h
+++ b/board/trogdor/board.h
@@ -102,7 +102,6 @@
/*
* TODO(b/145723652): Add back the following CONFIG's after we enable
* the PD software sync to update the PS8805 firmware.
- *
* #define CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE
* #define CONFIG_USB_PD_TCPC_LOW_POWER
*/
@@ -236,6 +235,7 @@ int board_is_sourcing_vbus(int port);
int board_vbus_sink_enable(int port, int enable);
/* Reset all TCPCs. */
void board_reset_pd_mcu(void);
+void board_set_tcpc_power_mode(int port, int mode);
#endif /* !defined(__ASSEMBLER__) */