diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-04-27 12:48:08 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-09 23:20:07 -0700 |
commit | e8982ea3cd66941e518b829a37834a534e71b3bc (patch) | |
tree | f0c54e0a9a710c52fef3651d426476c57aa7920a /board/chell | |
parent | 600df851c5565237a38f5ba0edda2beef8db618c (diff) | |
download | chrome-ec-e8982ea3cd66941e518b829a37834a534e71b3bc.tar.gz |
Allow lid-less configuration
power_button_x86.c and switch.c assume there is a lid switch. This
patch separate them so that a board with power button but with no
lid can be configured properly.
This patch also moves backlight control to the board directory
so that only the boards with a backlight turn it on/off when power
state changes.
BUG=none
BRANCH=none
TEST=boot fizz. make buildall.
Change-Id: If4070cdc4b1221fae68b35ec3497335d81f192fd
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/489602
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board/chell')
-rw-r--r-- | board/chell/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/chell/board.c b/board/chell/board.c index d08a81abba..9d34ea058a 100644 --- a/board/chell/board.c +++ b/board/chell/board.c @@ -402,6 +402,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, HOOK_PRIO_DEFAULT); /* Called on AP S3 -> S0 transition */ static void board_chipset_resume(void) { + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 1); gpio_set_level(GPIO_PP1800_DX_AUDIO_EN, 1); gpio_set_level(GPIO_PP1800_DX_DMIC_EN, 1); } @@ -410,6 +411,7 @@ DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); /* Called on AP S0 -> S3 transition */ static void board_chipset_suspend(void) { + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0); gpio_set_level(GPIO_PP1800_DX_AUDIO_EN, 0); gpio_set_level(GPIO_PP1800_DX_DMIC_EN, 0); } |