From 690ab41d892cfe5b71ef1d4ffc658884f35184e5 Mon Sep 17 00:00:00 2001 From: Bruce Date: Mon, 9 Jan 2017 15:49:24 +0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/425563 Commit-Ready: Bruce Wan Tested-by: Bruce Wan Reviewed-by: Aaron Durbin --- board/pyro/board.c | 5 +++-- 1 file 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