summaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/devicetree.cb
diff options
context:
space:
mode:
authorShaunak Saha <shaunak.saha@intel.com>2016-07-06 15:50:48 -0700
committerAaron Durbin <adurbin@chromium.org>2016-07-12 20:39:37 +0200
commit066e0f392378fbb7e1628af937e88f86e1279158 (patch)
treef2bb3649450f36100863b43cdcf7713fe09651f1 /src/mainboard/google/reef/devicetree.cb
parent6e5c5a15bc9fe709943598ede0eb52f9766cbb02 (diff)
downloadcoreboot-066e0f392378fbb7e1628af937e88f86e1279158.tar.xz
google/reef: Add GPE routing settings
This patch sets the devicetree for gpe0_dw configuration and also configures the GPIO lines for SCI. EC_SCI_GPI is configured to proper value. BUG = chrome-os-partner:53438 TEST = Toggle pch_sci_l from ec console using gpioset command and see that the sci counter increases in /sys/firmware/acpi/interrupt and also 9 in /proc/interrupt Change-Id: If258bece12768edb1e612c982514ce95c756c438 Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15556 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/reef/devicetree.cb')
-rw-r--r--src/mainboard/google/reef/devicetree.cb9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/devicetree.cb b/src/mainboard/google/reef/devicetree.cb
index 33fa46e967..98e413b7d2 100644
--- a/src/mainboard/google/reef/devicetree.cb
+++ b/src/mainboard/google/reef/devicetree.cb
@@ -36,6 +36,15 @@ chip soc/intel/apollolake
# 0x1C[6:0] stands for 28*125 = 3500 pSec delay for HS200
register "emmc_rx_cmd_data_cntl2" = "0x1001C"
+ # GPE configuration
+ # Note that GPE events called out in ASL code rely on this
+ # route, i.e., if this route changes then the affected GPE
+ # offset bits also need to be changed. This sets the PMC register
+ # GPE_CFG fields.
+ register "gpe0_dw1" = "PMC_GPE_N_31_0"
+ register "gpe0_dw2" = "PMC_GPE_N_63_32"
+ register "gpe0_dw3" = "PMC_GPE_SW_31_0"
+
device domain 0 on
device pci 00.0 on end # - Host Bridge
device pci 00.1 on end # - DPTF