summaryrefslogtreecommitdiff
path: root/board/banshee/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/banshee/board.c')
-rw-r--r--board/banshee/board.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/board/banshee/board.c b/board/banshee/board.c
index 611686f88d..73363e8935 100644
--- a/board/banshee/board.c
+++ b/board/banshee/board.c
@@ -16,7 +16,6 @@
#include "hooks.h"
#include "driver/als_tcs3400.h"
#include "driver/charger/isl9241.h"
-#include "driver/retimer/bb_retimer.h"
#include "fw_config.h"
#include "hooks.h"
#include "keyboard_customization.h"
@@ -36,39 +35,15 @@
#define CPRINTF(format, args...) cprintf(CC_CHARGER, format, ##args)
#define CPRINTS(format, args...) cprints(CC_CHARGER, format, ##args)
-/*
- * USBA card connect to chromebook the USB_3_CONNECTION
- * bit would be enable.
- * It will increase BBR power consumption, so clear
- * USB3_Connection bit in S0ix and enable when return S0.
- */
-void set_bb_retimer_usb3_state(bool enable)
-{
- mux_state_t mux_state = 0;
-
- for (int i = 0; i < CONFIG_USB_PD_PORT_MAX_COUNT; i++) {
- const struct usb_mux *mux = usb_muxes[i].mux;
-
- mux_state = usb_mux_get(i);
-
- if ((mux_state & USB_PD_MUX_USB_ENABLED)) {
- bb_retimer_set_usb3(mux, enable);
- }
- }
-}
-
/* Called on AP S3 -> S0 transition */
static void board_chipset_resume(void)
{
- if (chipset_in_state(CHIPSET_STATE_ON))
- set_bb_retimer_usb3_state(true);
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT);
/* Called on AP S0 -> S3 transition */
static void board_chipset_suspend(void)
{
- set_bb_retimer_usb3_state(false);
}
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);