summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/acpi/cros_ec.asl13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl
index b46c18741a..1159f9f49a 100644
--- a/src/ec/google/chromeec/acpi/cros_ec.asl
+++ b/src/ec/google/chromeec/acpi/cros_ec.asl
@@ -9,10 +9,17 @@ Device (CREC)
Name (_PRW, Package () { EC_ENABLE_WAKE_PIN, 0x5 })
#endif
+#ifdef EC_SYNC_IRQ_WAKE_CAPABLE
+ #define EC_SYNC_SHARE_TYPE ExclusiveAndWake
+#else
+ #define EC_SYNC_SHARE_TYPE Exclusive
+#endif
+
#ifdef EC_ENABLE_SYNC_IRQ
Name (_CRS, ResourceTemplate ()
{
- Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive)
+ Interrupt (ResourceConsumer, Level, ActiveLow,
+ EC_SYNC_SHARE_TYPE)
{
EC_SYNC_IRQ
}
@@ -22,8 +29,8 @@ Device (CREC)
#ifdef EC_ENABLE_SYNC_IRQ_GPIO
Name (_CRS, ResourceTemplate ()
{
- GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x0000,
- "\\_SB.GPIO", 0x00, ResourceConsumer, ,)
+ GpioInt (Level, ActiveLow, EC_SYNC_SHARE_TYPE, PullDefault,
+ 0x0000, "\\_SB.GPIO", 0x00, ResourceConsumer, ,)
{
EC_SYNC_IRQ
}