mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-03 21:49:32 +00:00
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:
committed by
chrome-bot
parent
c9e0e4d578
commit
0e9cd95664
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user