reef: Fix FAFT failure for firmware_ECUsbPorts

Modify USB enable GPIO name to comply with FAFT test.
It uses this name format USB%d_ENABLE to power
on/off all the USB ports.

BRANCH=none
BUG=none
TEST=on Reef FAFT test firmware_ECUsbPorts passes

Change-Id: I9b3b5d1668acfca5505dcff6708800f409555040
Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/386854
Commit-Ready: Divya S Sasidharan <divya.s.sasidharan@intel.com>
Tested-by: Divya S Sasidharan <divya.s.sasidharan@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Divya Sasidharan
2016-09-16 14:20:38 -07:00
committed by chrome-bot
parent f4cd079d05
commit 5818cdc728
3 changed files with 5 additions and 5 deletions

View File

@@ -613,7 +613,7 @@ static void enable_input_devices(void)
static void board_chipset_startup(void)
{
/* Enable USB-A port. */
gpio_set_level(GPIO_EN_USB_A_5V, 1);
gpio_set_level(GPIO_USB1_ENABLE, 1);
hook_call_deferred(&enable_input_devices_data, 0);
}
@@ -639,7 +639,7 @@ DECLARE_HOOK(HOOK_CHIPSET_RESUME, drive_sys_rst_odl_high, HOOK_PRIO_DEFAULT);
static void board_chipset_shutdown(void)
{
/* Disable USB-A port. */
gpio_set_level(GPIO_EN_USB_A_5V, 0);
gpio_set_level(GPIO_USB1_ENABLE, 0);
hook_call_deferred(&enable_input_devices_data, 0);
/* FIXME(dhendrix): Drive USB_PD_RST_ODL low to prevent

View File

@@ -61,8 +61,8 @@
/* USB-A config */
#define CONFIG_USB_PORT_POWER_SMART
#define CONFIG_USB_PORT_POWER_SMART_SIMPLE
#define GPIO_USB1_ENABLE GPIO_EN_USB_A_5V
#define GPIO_USB2_ENABLE GPIO_EN_USB_A_5V
#undef CONFIG_USB_PORT_POWER_SMART_PORT_COUNT
#define CONFIG_USB_PORT_POWER_SMART_PORT_COUNT 1
#define GPIO_USB_ILIM_SEL GPIO_USB_A_CHARGE_EN_L
#define GPIO_USB_CTL1 GPIO_EN_PP5000

View File

@@ -131,7 +131,7 @@ GPIO(PCH_RCIN_L, PIN(6, 1), GPIO_ODR_HIGH) /* SYS_RST_ODL */
GPIO(CHARGER_RST_ODL, PIN(C, 0), GPIO_ODR_HIGH)
GPIO(USB_A_CHARGE_EN_L, PIN(4, 2), GPIO_OUT_HIGH)
GPIO(EN_USB_TCPC_PWR, PIN(C, 3), GPIO_OUT_LOW)
GPIO(EN_USB_A_5V, PIN(4, 1), GPIO_OUT_LOW)
GPIO(USB1_ENABLE, PIN(4, 1), GPIO_OUT_LOW)
GPIO(USB_C0_PD_RST_L, PIN(0, 3), GPIO_OUT_LOW) /* USB_C0_PD_RST_L */
#if IS_PROTO == 0