diff options
author | Vic Yang <victoryang@chromium.org> | 2014-10-20 23:31:28 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-24 01:37:58 +0000 |
commit | d1ed75815efe513449c653d28fe7bd3c53a3441d (patch) | |
tree | 48a256c4154ad8f195ef5447abce6eeb99e3fd42 /core/cortex-m | |
parent | be2ed33b1976e407d107b20e90441a194f7b5fb7 (diff) | |
download | chrome-ec-d1ed75815efe513449c653d28fe7bd3c53a3441d.tar.gz |
MKBP event signalling implementation
This implements a new API for EC modules to define MKBP event sources
and send MKBP event to the AP. Also, a new host command
EC_CMD_GET_NEXT_EVENT is added for the AP to query the pending MKBP
events. Each event type may have custom event data sent along with the
event.
BRANCH=None
BUG=chrome-os-partner:33194
TEST=Enable MKBP event on Ryu. Set a host event from EC console, run
'ectool nextevent', and see MKBP event 0x01 (HOST_EVENT) and the set
host event.
Signed-off-by: Vic Yang <victoryang@chromium.org>
Change-Id: I28a1b7e826bcc102bbe39016c9bb3e37d125664c
Reviewed-on: https://chromium-review.googlesource.com/224905
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/ec.lds.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index ad0de62289..9eda0bc8c9 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -58,6 +58,11 @@ SECTIONS KEEP(*(.rodata.hcmds)) __hcmds_end = .; + . = ALIGN(4); + __mkbp_evt_srcs = .; + KEEP(*(.rodata.evtsrcs)) + __mkbp_evt_srcs_end = .; + . = ALIGN(4); __hooks_init = .; KEEP(*(.rodata.HOOK_INIT)) |