mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
scarlet: remove USB-A control pins
No USB-A ports on Scarlet. BUG=chrome-os-partner:62207, b:62307687 CQ-DEPEND=CL:524980 BRANCH=gru TEST=make BOARD=scarlet TEST=manually test on gru, USB-A ports don't work anymore. Change-Id: If8a802067e942e8b73ee7f10285d0752b263727f Reviewed-on: https://chromium-review.googlesource.com/434502 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/524977 Commit-Ready: Philip Chen <philipchen@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org>
This commit is contained in:
@@ -543,22 +543,6 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
|
||||
#endif /* defined(HAS_TASK_MOTIONSENSE) */
|
||||
|
||||
static void usb_charge_resume(void)
|
||||
{
|
||||
/* Turn on USB-A ports on as we go into S0 from S3. */
|
||||
gpio_set_level(GPIO_USB_A_EN, 1);
|
||||
gpio_set_level(GPIO_USB_A_CHARGE_EN, 1);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_RESUME, usb_charge_resume, HOOK_PRIO_DEFAULT);
|
||||
|
||||
static void usb_charge_shutdown(void)
|
||||
{
|
||||
/* Turn off USB-A ports as we go back to S5. */
|
||||
gpio_set_level(GPIO_USB_A_CHARGE_EN, 0);
|
||||
gpio_set_level(GPIO_USB_A_EN, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, usb_charge_shutdown, HOOK_PRIO_DEFAULT);
|
||||
|
||||
#define PWM_DISPLIGHT_SYSJUMP_TAG 0x5044 /* "PD" */
|
||||
#define PWM_HOOK_VERSION 1
|
||||
|
||||
|
||||
@@ -107,11 +107,9 @@ GPIO(SPI_SENSOR_CS_L, PIN(9, 4), GPIO_OUT_HIGH | GPIO_OPEN_DRAIN)
|
||||
GPIO(USB_C0_DISCHARGE, PIN(0, 3), GPIO_OUT_LOW)
|
||||
GPIO(USB_C1_DISCHARGE, PIN(B, 1), GPIO_OUT_LOW)
|
||||
|
||||
GPIO(USB_A_EN, PIN(C, 3), GPIO_OUT_LOW)
|
||||
GPIO(USB_A_CHARGE_EN, PIN(8, 4), GPIO_OUT_LOW)
|
||||
GPIO(GPIOB6_NC, PIN(B, 6), GPIO_INPUT | GPIO_PULL_UP)
|
||||
|
||||
/* Scarlet LEDs */
|
||||
GPIO(POWER_LED, PIN(B, 6), GPIO_OUT_LOW)
|
||||
GPIO(BAT_LED_GREEN, PIN(4, 4), GPIO_OUT_HIGH | GPIO_OPEN_DRAIN)
|
||||
GPIO(BAT_LED_RED, PIN(8, 0), GPIO_OUT_HIGH | GPIO_OPEN_DRAIN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user