summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-11-25 18:38:21 -0800
committerCommit Bot <commit-bot@chromium.org>2020-12-10 03:16:49 +0000
commit38981368658817aa15152d5c3aa61e56a9541580 (patch)
tree212ac529bfe2eebb996fd5c50a956fd4c5358f18 /board
parentd9b7ea8ff23a744e7a5e0f28fe7ca0e36ef11a9d (diff)
downloadchrome-ec-38981368658817aa15152d5c3aa61e56a9541580.tar.gz
PCHG: Send device event to host
This patch makes PCHG send EC_HOST_EVENT_DEVICE on every state machine cycle. The host is expected to retrieve the device event mask through EC_CMD_DEVICE_EVENT and updates port status if the mask has EC_DEVICE_EVENT_WLC. BUG=b:173235954 BRANCH=Trogdor TEST=Enabled and disabled EC_DEVICE_EVENT_WLC via deviceevent command and verified the sysfs node is updated. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I9dece6bc35599db3d6ae30452fd8e97bbaeab9af Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2579722 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/coachz/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/coachz/board.h b/board/coachz/board.h
index d94c267f34..76480b892b 100644
--- a/board/coachz/board.h
+++ b/board/coachz/board.h
@@ -17,6 +17,7 @@
#define CONFIG_CMD_GPIO_EXTENDED
#define CONFIG_CMD_POWERINDEBUG
#define CONFIG_I2C_DEBUG
+#define CONFIG_DEVICE_EVENT
/* Internal SPI flash on NPCX7 */
#define CONFIG_FLASH_SIZE (512 * 1024) /* 512KB internal spi flash */