pyro: modify led pin setting at hibernate state.

HW change led power rail, so the battery led and logo led will
light in hibernate state. I modify battery led pin (gpio84,
gpioC4) and logo led pin (pwm3) setting in hibernate, let them
will not light in hibernate.

BUG=none
BRANCH=reef
TEST=make buildall

Change-Id: I6c75694cf92fe05b5afc0d2a399e15c5bff6b7f8
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/425563
Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com>
Tested-by: Bruce Wan <Bruce.Wan@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Bruce
2017-01-09 15:49:24 +08:00
committed by chrome-bot
parent 72b1fd9213
commit 690ab41d89

View File

@@ -750,8 +750,8 @@ void board_hibernate_late(void)
int i;
const uint32_t hibernate_pins[][2] = {
/* Turn off LEDs in hibernate */
{GPIO_BAT_LED_GREEN, GPIO_INPUT | GPIO_PULL_UP},
{GPIO_BAT_LED_AMBER, GPIO_INPUT | GPIO_PULL_UP},
{GPIO_BAT_LED_GREEN, GPIO_INPUT | GPIO_PULL_DOWN},
{GPIO_BAT_LED_AMBER, GPIO_INPUT | GPIO_PULL_DOWN},
{GPIO_LID_OPEN, GPIO_INT_RISING | GPIO_PULL_DOWN},
/*
@@ -768,6 +768,7 @@ void board_hibernate_late(void)
gpio_set_flags(hibernate_pins[i][0], hibernate_pins[i][1]);
gpio_config_module(MODULE_KEYBOARD_SCAN, 0);
gpio_config_module(MODULE_PWM, 0);
/*
* Calling gpio_config_module sets disabled alternate function pins to