diff options
author | Enrico Granata <egranata@chromium.org> | 2018-09-28 15:51:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 05:19:35 -0700 |
commit | d2d6f36adeab90692916b378839d71a09967fc5c (patch) | |
tree | 8fa9bc2f3281f14d70fb0dd41c80809c4aa2e3fc /include/mkbp_event.h | |
parent | 3b4fc2b09524444b6d892c90d6c5d3150c94686a (diff) | |
download | chrome-ec-d2d6f36adeab90692916b378839d71a09967fc5c.tar.gz |
mkbp: add support for board-specific host notification
On Nocturne, we want to be able to decide whether MKBP events should be
notified to the AP via host_set_single_event or gpio_set_level based
upon runtime board-version detection instead of a static compile-time flag.
Add support for this by marking the function that raises the actual IRQ
to the host as weak, so that individual boards can override it with their
own version.
BRANCH=None
BUG=b:112366846, b:112112483, b:112111610
TEST=see CL:1161546 for details
Signed-off-by: Enrico Granata <egranata@chromium.org>
Change-Id: Ide5ec12fbc6fea3cf23069f376066f225e1887b3
Reviewed-on: https://chromium-review.googlesource.com/1247000
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include/mkbp_event.h')
-rw-r--r-- | include/mkbp_event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mkbp_event.h b/include/mkbp_event.h index 3764c40d5b..3639ffb326 100644 --- a/include/mkbp_event.h +++ b/include/mkbp_event.h @@ -28,6 +28,9 @@ extern uint32_t mkbp_last_event_time; */ int mkbp_send_event(uint8_t event_type); +void send_mkbp_event_gpio(int active); +void send_mkbp_event_host(int active); + /* * The struct to store the event source definition. The get_data routine is * responsible for returning the event data when queried by the AP. The |