mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
eve: Do not attempt to set 1.5A USB config
The EC attempts to limit USB ports to 1.5A if a device is plugged into both ports, but this ends up with no power to the ports instead. Until this can be debugged with the right equipment just pretend we can do 3A to both ports so factory tests can pass. BUG=chrome-os-partner:61431 BRANCH=none TEST=plug device into both ports on P1 board and see that they work Change-Id: Icd4430d0026dc323e56b7ce88b9d8e79e6e825c5 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/424453
This commit is contained in:
committed by
chrome-bot
parent
0775e5ae06
commit
bf3f8ca53f
@@ -67,8 +67,9 @@ int board_vbus_source_enabled(int port)
|
||||
static void board_vbus_update_source_current(int port)
|
||||
{
|
||||
enum gpio_signal gpio = port ? GPIO_USB_C1_5V_EN : GPIO_USB_C0_5V_EN;
|
||||
/* TODO(crosbug.com/p/61431): do not attempt to set 1.5A config */
|
||||
int flags = (vbus_rp[port] == TYPEC_RP_1A5 && vbus_en[port]) ?
|
||||
(GPIO_INPUT | GPIO_PULL_UP) : (GPIO_OUTPUT | GPIO_PULL_UP);
|
||||
(GPIO_OUTPUT | GPIO_PULL_UP) : (GPIO_OUTPUT | GPIO_PULL_UP);
|
||||
|
||||
/*
|
||||
* Driving USB_Cx_5V_EN high, actually put a 16.5k resistance
|
||||
|
||||
Reference in New Issue
Block a user