summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/variants/baseboard/brya/include/baseboard/ec.h10
-rw-r--r--src/mainboard/google/brya/variants/baseboard/hades/include/baseboard/ec.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/baseboard/brya/include/baseboard/ec.h b/src/mainboard/google/brya/variants/baseboard/brya/include/baseboard/ec.h
index ef156f135d..8ca2dbd386 100644
--- a/src/mainboard/google/brya/variants/baseboard/brya/include/baseboard/ec.h
+++ b/src/mainboard/google/brya/variants/baseboard/brya/include/baseboard/ec.h
@@ -7,6 +7,13 @@
#include <ec/google/chromeec/ec_commands.h>
#include <baseboard/gpio.h>
+#if CONFIG(INCLUDE_NVIDIA_GPU_ASL)
+ #define VARIANT_EC_SCI_EVENTS \
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_GPU)
+#else
+ #define VARIANT_EC_SCI_EVENTS 0
+#endif
+
#define MAINBOARD_EC_SCI_EVENTS \
(EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
@@ -22,7 +29,8 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_MKBP) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE) |\
- EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_MUX))
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_MUX) |\
+ VARIANT_EC_SCI_EVENTS)
#define MAINBOARD_EC_SMI_EVENTS \
(EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED))
/* EC can wake from S5 with lid or power button */
diff --git a/src/mainboard/google/brya/variants/baseboard/hades/include/baseboard/ec.h b/src/mainboard/google/brya/variants/baseboard/hades/include/baseboard/ec.h
index 41091462fd..122cc0cbe8 100644
--- a/src/mainboard/google/brya/variants/baseboard/hades/include/baseboard/ec.h
+++ b/src/mainboard/google/brya/variants/baseboard/hades/include/baseboard/ec.h
@@ -16,6 +16,7 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_CRITICAL) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_STATUS) |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_GPU) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_THRESHOLD) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_START) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_STOP) |\