summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2016-07-06 19:37:00 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-19 18:33:36 -0700
commit87a071941b89e3f7fd3eb329b682e60b3fbd6c73 (patch)
treed82c7b76924dea16c7c9d4de69b591be3a9ddfe6 /core
parentc0f6ac5e02cdb7a25f593af6dce7b0eea71d996d (diff)
downloadchrome-ec-87a071941b89e3f7fd3eb329b682e60b3fbd6c73.tar.gz
mkbp: Add support for buttons and switches.
Currently, the matrix keyboard protocol does not have support for handling non-matrixed keys. This commit adds support for buttons which do not appear in the keyboard matrix as well as switches. Additionally, the keyboard FIFO is now just a general MKBP events FIFO which MKBP events are free to use. Now, buttons and switches wil join the key matrix event. BUG=chrome-os-partner:54988 BUG=chrome-os-partner:54976 BUG=chromium:626863 BRANCH=None TEST=Flash kevin, and verify that keyboard is still functional. TEST=make -j buildall CQ-DEPEND=CL:358926 Change-Id: If4ada904cbd5d77823a0710d4671484b198c9d91 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/358633 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/host/host_exe.lds5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds
index 3ea0a706e4..6cdb172045 100644
--- a/core/host/host_exe.lds
+++ b/core/host/host_exe.lds
@@ -19,6 +19,11 @@ SECTIONS {
*(.rodata.hcmds)
__hcmds_end = .;
+ . = ALIGN(4);
+ __mkbp_evt_srcs = .;
+ KEEP(*(.rodata.evtsrcs))
+ __mkbp_evt_srcs_end = .;
+
. = ALIGN(8);
__hooks_init = .;
*(.rodata.HOOK_INIT)