summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/puff/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/puff/board.c b/board/puff/board.c
index ee98556e3a..d0415f7b62 100644
--- a/board/puff/board.c
+++ b/board/puff/board.c
@@ -41,6 +41,7 @@
#include "thermistor.h"
#include "uart.h"
#include "usb_charge.h"
+#include "usb_common.h"
#include "usb_pd.h"
#include "usbc_ppc.h"
#include "util.h"
@@ -508,6 +509,9 @@ void board_reset_pd_mcu(void)
gpio_set_level(GPIO_USB_C0_TCPC_RST, !level);
if (BOARD_TCPC_C0_RESET_POST_DELAY)
msleep(BOARD_TCPC_C0_RESET_POST_DELAY);
+ /* Reset any saved state for previous connections. */
+ pd_update_saved_port_flags(USB_PD_PORT_TCPC_0,
+ PD_BBRMFLG_EXPLICIT_CONTRACT, 0);
}
int board_set_active_charge_port(int port)