Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18177
-gerrit
commit 86ebacca980a05de6b1ffbeaccc72b8a0de2783e Author: Shelley Chen shchen@chromium.org Date: Fri Jan 13 09:40:39 2017 -0800
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: 25654e214f0ab8685d445ced62612a02be851126 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 --- payloads/libpayload/drivers/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/payloads/libpayload/drivers/keyboard.c b/payloads/libpayload/drivers/keyboard.c index 6431336..23c8780 100644 --- a/payloads/libpayload/drivers/keyboard.c +++ b/payloads/libpayload/drivers/keyboard.c @@ -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; }