diff options
author | Edward Hill <ecgh@chromium.org> | 2018-04-13 13:10:45 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-19 19:28:58 -0700 |
commit | a51e6428d897efb72a06670c0c49b6d7a5b05d9f (patch) | |
tree | f3c5e1d26bf026b5385a98c1e587a120282d5dc1 /board/grunt | |
parent | e5d961ae9673486f905d82a3dc7a85b1a28ef7e3 (diff) | |
download | chrome-ec-a51e6428d897efb72a06670c0c49b6d7a5b05d9f.tar.gz |
grunt: Send sensor MKBP events using host event
Add CONFIG_MKBP_EVENT and CONFIG_MKBP_USE_HOST_EVENT
to send sensor events to AP.
BUG=b:77342604
BRANCH=none
TEST=view sensors in AIDA64 Android app in ARC++
Change-Id: I3687072903d251bccb2cdf7670b0780a906dd22d
Signed-off-by: Edward Hill <ecgh@chromium.org>
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1012457
Diffstat (limited to 'board/grunt')
-rw-r--r-- | board/grunt/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/grunt/board.h b/board/grunt/board.h index 10ad79bbfd..0e6123ab74 100644 --- a/board/grunt/board.h +++ b/board/grunt/board.h @@ -8,6 +8,14 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +/* + * By default, enable all console messages excepted HC, ACPI and event: + * The sensor stack is generating a lot of activity. + */ +#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_EVENTS) | CC_MASK(CC_LPC))) +#undef CONFIG_HOSTCMD_DEBUG_MODE +#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF + /* Optional features */ #define CONFIG_HIBERNATE_PSL #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands. */ @@ -126,6 +134,8 @@ #define I2C_PORT_ACCEL I2C_PORT_SENSOR /* Sensors */ +#define CONFIG_MKBP_EVENT +#define CONFIG_MKBP_USE_HOST_EVENT #define CONFIG_ACCELGYRO_BMI160 #define CONFIG_ACCELGYRO_BMI160_INT_EVENT TASK_EVENT_CUSTOM(4) #define CONFIG_ACCEL_INTERRUPTS |