mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
eve: Set KBD_KS02 to pull-down when hibernating
cr50 has an internal pull-down on this pin so the EC should match it to prevent leakage. BUG=chrome-os-partner:58666 BRANCH=none TEST=build and boot on eve and verify hibernate enter/exit Change-Id: I3eba0661211d356783c0c710f0d7d5fe11fd6c26 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/415225 Reviewed-by: Scott Collyer <scollyer@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
bd237603ce
commit
fffc34706d
@@ -575,8 +575,10 @@ void board_hibernate_late(void)
|
||||
* while hibernating we want to enable GPIO_PULL_UP as well.
|
||||
*/
|
||||
gpio_set_flags_by_mask(0x2, 0x03, GPIO_INPUT | GPIO_PULL_UP);
|
||||
gpio_set_flags_by_mask(0x1, 0xFF, GPIO_INPUT | GPIO_PULL_UP);
|
||||
gpio_set_flags_by_mask(0x1, 0x7F, GPIO_INPUT | GPIO_PULL_UP);
|
||||
gpio_set_flags_by_mask(0x0, 0xE0, GPIO_INPUT | GPIO_PULL_UP);
|
||||
/* KBD_KS02 needs to have a pull-down enabled to match cr50 */
|
||||
gpio_set_flags_by_mask(0x1, 0x80, GPIO_INPUT | GPIO_PULL_DOWN);
|
||||
}
|
||||
|
||||
void board_hibernate(void)
|
||||
|
||||
Reference in New Issue
Block a user