libpayload: drivers/keyboard: report power button events
Power button events are usually dropped because the button is not in
the keyboard matrix range. Add condition to forward it like other keys.
BUG=chrome-os-partner:61275
BRANCH=None
TEST=reboot and make sure power button selection
in depthcharge's detachable menus is processed on reef.
Change-Id: I86897fa8d73a56533ef62bba05458ac3d339237e
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 25654e214f
Original-Change-Id: I516a0043bd7730789728d5c5498d0a0f30a2acac
Original-Signed-off-by: Shelley Chen <shchen@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/428199
Original-Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://review.coreboot.org/18177
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
0f6d10ba8f
commit
674e971dc4
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <libpayload.h>
|
||||
|
||||
#define I8042_CMD_DIS_KB 0xad
|
||||
#define POWER_BUTTON 0x90
|
||||
|
||||
struct layout_maps {
|
||||
const char *country;
|
||||
|
|
@ -255,6 +256,9 @@ int keyboard_getchar(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (ch == 0x5e)
|
||||
ret = POWER_BUTTON;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue