summaryrefslogtreecommitdiff
path: root/zephyr/projects/corsola
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2022-01-26 15:44:24 +0100
committerCommit Bot <commit-bot@chromium.org>2022-01-28 13:19:22 +0000
commit1cf4b4d1c66894fdd5c81d5efa9768c2261bcd17 (patch)
tree547c999f9d5cbd100f9edc20e24b3a1478a1a0b2 /zephyr/projects/corsola
parentab86400d69b231e9a1121ebf177f166cafcf2dd0 (diff)
downloadchrome-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/projects/corsola')
-rw-r--r--zephyr/projects/corsola/gpio_krabby.dts12
1 files changed, 6 insertions, 6 deletions
diff --git a/zephyr/projects/corsola/gpio_krabby.dts b/zephyr/projects/corsola/gpio_krabby.dts
index 6682f240a3..1debeebc6a 100644
--- a/zephyr/projects/corsola/gpio_krabby.dts
+++ b/zephyr/projects/corsola/gpio_krabby.dts
@@ -226,12 +226,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 {