diff options
-rw-r--r-- | board/ryu/board.c | 18 | ||||
-rw-r--r-- | common/case_closed_debug.c | 8 | ||||
-rw-r--r-- | include/case_closed_debug.h | 13 |
3 files changed, 2 insertions, 37 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c index 57e2d2e2ed..0307f3f91b 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -305,24 +305,6 @@ int extpower_is_present(void) return gpio_get_level(GPIO_CHGR_ACOK); } -/* - * Disconnect the USB lines from the AP, this enables manual control of the - * Pericom polarity switch and disconnects the USB 2.0 lines - */ -void ccd_board_connect(void) -{ - pi3usb9281_set_pins(0, 0x00); - pi3usb9281_set_switch_manual(0, 0); -} - -/* - * Reconnect the USB lines to the AP re-enabling automatic switching - */ -void ccd_board_disconnect(void) -{ - pi3usb9281_set_switch_manual(0, 1); -} - void usb_board_connect(void) { gpio_set_level(GPIO_USB_PU_EN_L, 0); diff --git a/common/case_closed_debug.c b/common/case_closed_debug.c index 270253b50e..a1f8522ccd 100644 --- a/common/case_closed_debug.c +++ b/common/case_closed_debug.c @@ -30,10 +30,8 @@ void ccd_set_mode(enum ccd_mode new_mode) if (new_mode == current_mode) return; - if (current_mode != CCD_MODE_DISABLED) { + if (current_mode != CCD_MODE_DISABLED) usb_release(); - ccd_board_disconnect(); - } current_mode = new_mode; @@ -43,8 +41,6 @@ void ccd_set_mode(enum ccd_mode new_mode) */ usb_console_enable(new_mode == CCD_MODE_ENABLED); - if (new_mode != CCD_MODE_DISABLED) { - ccd_board_connect(); + if (new_mode != CCD_MODE_DISABLED) usb_init(); - } } diff --git a/include/case_closed_debug.h b/include/case_closed_debug.h index 1884e545d9..5445022ec3 100644 --- a/include/case_closed_debug.h +++ b/include/case_closed_debug.h @@ -33,17 +33,4 @@ enum ccd_mode { */ void ccd_set_mode(enum ccd_mode new_mode); -/* - * Board provided function that should ensure that the debug USB port is ready - * for use by the case closed debug code. This could mean updating a MUX or - * switch to disconnect USB from the AP. - */ -void ccd_board_connect(void); - -/* - * Board provided function that releases the debug USB port, giving it back - * to the AP. - */ -void ccd_board_disconnect(void); - #endif /* INCLUDE_CASE_CLOSED_DEBUG_H */ |