diff options
author | Michał Barnaś <mb@semihalf.com> | 2022-01-26 15:44:24 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-28 13:19:22 +0000 |
commit | 1cf4b4d1c66894fdd5c81d5efa9768c2261bcd17 (patch) | |
tree | 547c999f9d5cbd100f9edc20e24b3a1478a1a0b2 /zephyr/boards/riscv/asurada | |
parent | ab86400d69b231e9a1121ebf177f166cafcf2dd0 (diff) | |
download | chrome-ec-1cf4b4d1c66894fdd5c81d5efa9768c2261bcd17.tar.gz |
zephyr: remove HOST_EVENT_MASK macro
This macro was introduced as workaround to differences in host events
definitions between CrOS EC and Zephyr. Since zephyr macros define
masks, instead of offsets, it will be easier to define _NONE as 0,
instead of BIT(0) and rest of the fields as bit masks.
It will remove the differences between host-event-wakeup-mask and
event-wakeup-mask definitions in device tree. They use the same
compatible string, so there shouldn't be requirement about using
macro in only one of the definitions.
BUG=none
BRANCH=main
TEST=Same test as in commit that introduced this macro:
Suspend DUT with powerd_dbus_suspend, and make sure the EC command
"hostevent set 0x0000000002000000" wakes up the board.
Change-Id: Ie582ecd805b1999d09ec71b10cdeff0b5ac1ec82
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3417698
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/boards/riscv/asurada')
-rw-r--r-- | zephyr/boards/riscv/asurada/asurada.dts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zephyr/boards/riscv/asurada/asurada.dts b/zephyr/boards/riscv/asurada/asurada.dts index df768c7c5b..f51de2ff5b 100644 --- a/zephyr/boards/riscv/asurada/asurada.dts +++ b/zephyr/boards/riscv/asurada/asurada.dts @@ -25,12 +25,12 @@ ec-mkbp-host-event-wakeup-mask { compatible = "ec-wake-mask-event"; wakeup-mask = <( - HOST_EVENT_MASK(HOST_EVENT_AC_CONNECTED) | - HOST_EVENT_MASK(HOST_EVENT_AC_DISCONNECTED) | - HOST_EVENT_MASK(HOST_EVENT_LID_OPEN) | - HOST_EVENT_MASK(HOST_EVENT_POWER_BUTTON) | - HOST_EVENT_MASK(HOST_EVENT_HANG_DETECT) | - HOST_EVENT_MASK(HOST_EVENT_MODE_CHANGE))>; + HOST_EVENT_AC_CONNECTED | + HOST_EVENT_AC_DISCONNECTED | + HOST_EVENT_LID_OPEN | + HOST_EVENT_POWER_BUTTON | + HOST_EVENT_HANG_DETECT | + HOST_EVENT_MODE_CHANGE)>; }; ec-mkbp-event-wakeup-mask { |