summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/acpi/gpio.asl
diff options
context:
space:
mode:
authorShaunak Saha <shaunak.saha@intel.com>2016-07-07 14:48:21 -0700
committerAaron Durbin <adurbin@chromium.org>2016-07-12 20:37:57 +0200
commit7f149c7bb4744459c775c32c71fe222c792cea19 (patch)
tree736c9741f4e136e3fb86000554a6a691bd1bd261 /src/soc/intel/apollolake/acpi/gpio.asl
parente51e1045e46dfccbffc2e4ab81ac023038c4e293 (diff)
downloadcoreboot-7f149c7bb4744459c775c32c71fe222c792cea19.tar.xz
soc/intel/apollolake: Add handler for SCI
This patch adds the handler to enable bit for gpio_tier1_sci_en. gpio_tier1_sci_en enables the setting of the GPIO_TIER1_SCI_STS bit to generate a wake event and/or an SCI or SMI#. We are setting the bit for gpio_tier1_sci_en from the ASL code as OS clears this bit if set from BIOS. As per ACPI spec _GPE is defined as the Named Object that evaluates to either an integer or a package. If _GPE evaluates to an integer, the value is the bit assignment of the SCI interrupt within the GPEx_STS register of a GPE block described in the FADT that the embedded controller will trigger. FADT right now has no mechanism to acheive the same. Change-Id: I1e1bd3f5c89a5e6bea2d1858569a9d30e6da78fe Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15578 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/acpi/gpio.asl')
-rw-r--r--src/soc/intel/apollolake/acpi/gpio.asl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/acpi/gpio.asl b/src/soc/intel/apollolake/acpi/gpio.asl
index 4bf04428eb..f2a7e76f20 100644
--- a/src/soc/intel/apollolake/acpi/gpio.asl
+++ b/src/soc/intel/apollolake/acpi/gpio.asl
@@ -142,3 +142,13 @@ scope (\_SB) {
}
}
}
+
+Scope(\_GPE)
+{
+ /* Dummy method for the Tier 1 GPIO SCI enable bit. When kernel reads
+ * _L0F in scope GPE it sets bit for gpio_tier1_sci_en in acpi enable
+ * register at 0x430. For APL acpi enable register DW0 i.e., ACPI
+ * GPE0a_EN at 0x430 is reserved.
+ */
+ Method(_L0F, 0) {}
+}