diff options
author | Nick Vaccaro <nvaccaro@chromium.org> | 2017-05-04 20:17:42 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-09 21:44:03 -0700 |
commit | e9215ba711d337e4cfc9524c4ef07b03a813c8fb (patch) | |
tree | 02b56ba3ffa440b40db38da3be2808ab1c3fc0f4 /include | |
parent | 14a3a3ac23bc5b03a4d884106a8cb4a75d861fb7 (diff) | |
download | chrome-ec-e9215ba711d337e4cfc9524c4ef07b03a813c8fb.tar.gz |
common: allow report disabling of host events
Adds a mechanism that allows a board to disable interrupting the AP /
kernel when the status of any one of the EC_HOST_EVENTS included in
CONFIG_HOST_EVENT_REPORT_MASK changes state. Default state enables
reporting of all events; a board can override this by defining
CONFIG_HOST_EVENT_REPORT_MASK in its board.h file.
NOTE: The host_set_events() and host_clear_events() routines no longer
interrupt the AP if none of the host events the AP is interested in
changed state.
BRANCH=none
BUG=chromium:637061
TEST=make buildall passes
Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org>
Change-Id: I678fb9d9dab6890848b94b314efd711842b1fd48
Reviewed-on: https://chromium-review.googlesource.com/502078
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index 93d0aa593b..1058750fa0 100644 --- a/include/config.h +++ b/include/config.h @@ -1256,7 +1256,6 @@ #undef CONFIG_GESTURE_SIGMO_EVENT - /* Do we want to detect the lid angle? */ #undef CONFIG_LID_ANGLE @@ -1323,6 +1322,9 @@ */ #undef CONFIG_HOST_COMMAND_STATUS +/* clear bit(s) to mask reporting of an EC_HOST_EVENT_XXX event(s) */ +#define CONFIG_HOST_EVENT_REPORT_MASK 0xffffffff + /* * The host commands are sorted in the .rodata.hcmds section so use the binary * search algorithm to match a command to its handler |