diff options
author | Nick Vaccaro <nvaccaro@chromium.org> | 2017-05-11 16:24:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-20 15:00:37 -0700 |
commit | 2ef78186c980120560123b149d7092a51edbeb98 (patch) | |
tree | d6a5a037d17693a04d25dff8737f23d65ec7ec73 | |
parent | 8b9576749b885dfc6f0e66850f9f17b1f13dda1d (diff) | |
download | chrome-ec-2ef78186c980120560123b149d7092a51edbeb98.tar.gz |
kevin: disable reporting of unneeded host events
Disable reporting of EC events to the linux kernel that are not used
by kevin's kernel.
BRANCH=none
BUG=chromium:637061
TEST=make buildall passes, lid close puts AP into suspend, lid open
turns on display
Change-Id: I7841294aec0853f4820a262ec14e8ad6037e1060
Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/503536
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/kevin/board.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/kevin/board.h b/board/kevin/board.h index b72534acc0..7b4e6e3024 100644 --- a/board/kevin/board.h +++ b/board/kevin/board.h @@ -234,6 +234,21 @@ EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_RTC)) +/* + * Define the host events which are to be reported to the kernel. + * + * Linux 4.4 kernel uses EC_HOST_EVENT_PD_MCU, EC_HOST_EVENT_USB_MUX, + * and EC_HOST_EVENT_RTC and all enabled WAKE events. + * + * Linux 3.18 kernel uses EC_HOST_EVENT_PD_MCU and all enabled WAKE events. + */ +#undef CONFIG_HOST_EVENT_REPORT_MASK +#define CONFIG_HOST_EVENT_REPORT_MASK \ + (CONFIG_MKBP_WAKEUP_MASK |\ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU) |\ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_RTC) |\ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_MUX)) + #ifndef __ASSEMBLER__ enum adc_channel { |