summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce <Bruce.Wan@quantatw.com>2017-01-09 15:49:24 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-09 23:47:34 -0800
commit690ab41d892cfe5b71ef1d4ffc658884f35184e5 (patch)
treecd88815a096b4a85dcc5bee78376727b6a7d9848
parent72b1fd92132c8e346895b490753a2aca401ef88a (diff)
downloadchrome-ec-690ab41d892cfe5b71ef1d4ffc658884f35184e5.tar.gz
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>
-rw-r--r--board/pyro/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/pyro/board.c b/board/pyro/board.c
index da92264951..5a9175d95a 100644
--- a/board/pyro/board.c
+++ b/board/pyro/board.c
@@ -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