summaryrefslogtreecommitdiff
path: root/board/scarlet/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/scarlet/board.c')
-rw-r--r--board/scarlet/board.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c
index 797d828e83..8b0dc686bd 100644
--- a/board/scarlet/board.c
+++ b/board/scarlet/board.c
@@ -238,6 +238,9 @@ static void board_init(void)
/* Enable TCPC alert interrupts */
gpio_enable_interrupt(GPIO_USB_C0_PD_INT_L);
+ /* Enable charger interrupts */
+ gpio_enable_interrupt(GPIO_CHARGER_INT_L);
+
/* Enable reboot / shutdown control inputs from AP */
gpio_enable_interrupt(GPIO_WARM_RESET_REQ);
gpio_enable_interrupt(GPIO_AP_OVERTEMP);
@@ -462,3 +465,13 @@ int tablet_get_mode(void)
/* Always in tablet mode */
return 1;
}
+
+void usb_charger_set_switches(int port, enum usb_switch setting)
+{
+ /*
+ * There is no USB2 switch anywhere on this board. But based
+ * on the discussion in b:65446459, RK3399's USB PHY is powered
+ * off when USB charging port detection is going on, so things
+ * should mostly work without a USB2 switch.
+ */
+}