chell: Keep keyboard backlight off in hibernate

If pulled up the backlight will be at 100% brightness instead of off.

BUG=chrome-os-partner:48130
BRANCH=none
TEST=hibernate on chell, see keyboard backlight stay off

Change-Id: I30cd289b9492356407aa54e6a84b04add647bd9a
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/314936
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Duncan Laurie
2015-11-30 15:30:25 -08:00
committed by chrome-bot
parent c9e0e4d578
commit 0e9cd95664
2 changed files with 4 additions and 1 deletions

View File

@@ -365,9 +365,11 @@ uint32_t board_get_gpio_hibernate_state(uint32_t port, uint32_t pin)
GPIO_TO_PORT_MASK_PAIR(GPIO_PMIC_LDO_EN),
/* The GPIO to control RTCRST is active high. */
GPIO_TO_PORT_MASK_PAIR(GPIO_PCH_RTCRST),
/* Keep keyboard backlight off, GPIO34 pin is in PWM mode */
GPIO_TO_PORT_MASK_PAIR(GPIO_KEYBOARD_BACKLIGHT),
};
/* LED GPIOs should be driven low to turn off LEDs */
/* Some GPIOs should be driven low in hibernate */
for (i = 0; i < ARRAY_SIZE(out_low_gpios); ++i)
if (out_low_gpios[i][0] == port && out_low_gpios[i][1] == pin)
return GPIO_OUTPUT | GPIO_LOW;

View File

@@ -89,6 +89,7 @@ GPIO(BOARD_VERSION2, PIN(7), GPIO_INPUT)
GPIO(BOARD_VERSION3, PIN(10), GPIO_INPUT)
GPIO(KBD_KSO2, PIN(101), GPIO_KB_OUTPUT_COL2)
GPIO(PVT_CS0, PIN(146), GPIO_ODR_HIGH)
GPIO(KEYBOARD_BACKLIGHT, PIN(34), GPIO_OUT_LOW)
/*
* TODO(crosbug.com/p/40848): These LEDs should be under control of the mec1322