mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
Ryu: Add dynamic USB pullup support
Ryu Proto 3 has a FET to control the D+ USB pullup. This change enables control of that FET using the board specific USB connect and disconnect functions. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I60cd4d36c19f235800980edc53003490589627c7 Reviewed-on: https://chromium-review.googlesource.com/234395 Trybot-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
9ce66a98b2
commit
3725b32aa5
@@ -187,14 +187,10 @@ void ccd_board_disconnect(void)
|
||||
|
||||
void usb_board_connect(void)
|
||||
{
|
||||
/*
|
||||
* TODO(robotboy): Enable DP pullup for Proto 3, Proto 2 doesn't have
|
||||
* the DP pullup, so case closed debug will only work on a Proto 2 if
|
||||
* the board is reworked, and this function is updated.
|
||||
*/
|
||||
gpio_set_level(GPIO_USB_PU_EN_L, 0);
|
||||
}
|
||||
|
||||
void usb_board_disconnect(void)
|
||||
{
|
||||
/* TODO(robotboy): Disable DP pullup for Proto 3 */
|
||||
gpio_set_level(GPIO_USB_PU_EN_L, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user