summaryrefslogtreecommitdiff
path: root/board/oak/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/oak/board.c')
-rw-r--r--board/oak/board.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/board/oak/board.c b/board/oak/board.c
index 8893ed17fc..5468ae61a3 100644
--- a/board/oak/board.c
+++ b/board/oak/board.c
@@ -161,13 +161,6 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
};
/**
- * Store the state of our USB data switches so that they can be restored
- * after pericom reset.
- */
-static int usb_switch_state[CONFIG_USB_PD_PORT_COUNT];
-static struct mutex usb_switch_lock[CONFIG_USB_PD_PORT_COUNT];
-
-/**
* Store the current DP hardware route.
*/
static int dp_hw_port = PD_PORT_NONE;
@@ -301,25 +294,6 @@ void board_set_charge_limit(int charge_ma)
CONFIG_CHARGER_INPUT_CURRENT));
}
-/**
- * Set type-C port USB2.0 switch state.
- *
- * @param port the type-C port to change
- * @param setting enum usb_switch
- */
-void board_set_usb_switches(int port, enum usb_switch setting)
-{
- /* If switch is not charging, then return */
- if (setting == usb_switch_state[port])
- return;
-
- mutex_lock(&usb_switch_lock[port]);
- if (setting != USB_SWITCH_RESTORE)
- usb_switch_state[port] = setting;
- pi3usb9281_set_switches(port, usb_switch_state[port]);
- mutex_unlock(&usb_switch_lock[port]);
-}
-
static void hpd_irq_deferred(void)
{
gpio_set_level(GPIO_USB_DP_HPD, 1);