summaryrefslogtreecommitdiff
path: root/include/keyboard_scan.h
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2013-03-11 11:30:40 -0700
committerChromeBot <chrome-bot@google.com>2013-03-13 11:14:55 -0700
commiteefc0ac8c5e3b167d902997e28324e5f57e0a932 (patch)
tree2c1d6bde44058cbafe35b7d9a75be79f8adabf67 /include/keyboard_scan.h
parentcb03fa5c63546f7a77ffe737ce053bb50c6a3906 (diff)
downloadchrome-ec-eefc0ac8c5e3b167d902997e28324e5f57e0a932.tar.gz
spring: stm32: Generate battery key when charging status changes.
In order to update charger status we have added a virtual keystroke to signal change to the kernel via the MKBP interface. CL creates the virtual key press and calls it from within the USB charging code. Signed-off-by: Todd Broch <tbroch@chromium.org> BUG=chrome-os-partner:17927 BRANCH=spring TEST=manual 1. Compile for daisy,snow,spring. 2. Test on spring. Change-Id: I0afa0fc82c96fa3fd8119523a113b5028c8f64a3 Reviewed-on: https://gerrit.chromium.org/gerrit/45126 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r--include/keyboard_scan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h
index 63384b10fb..8bdbd6905c 100644
--- a/include/keyboard_scan.h
+++ b/include/keyboard_scan.h
@@ -38,4 +38,7 @@ void keyboard_clear_state(void);
/* Enables/disables keyboard matrix scan. */
void keyboard_enable_scanning(int enable);
+/* Sends KEY_BATTERY keystroke */
+void keyboard_send_battery_key(void);
+
#endif /* __CROS_EC_KEYBOARD_SCAN_H */