summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/gpio.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2016-05-16 13:43:11 -0700
committerDuncan Laurie <dlaurie@google.com>2016-05-21 06:02:11 +0200
commit66bd65d0f7b11bbb8dd4db73bfa95f0c51addddc (patch)
tree08c0a3e8986b8cb2002b26168207462eee127a72 /src/soc/intel/skylake/gpio.c
parent3a39f44fc42cf02be898279036ebf066d4f72caf (diff)
downloadcoreboot-66bd65d0f7b11bbb8dd4db73bfa95f0c51addddc.tar.xz
skylake: Add handler for finding ACPI path for GPIO
Add a handler for the Intel Skylake SOC to return the ACPI path for GPIOs. Since all GPIOs are handled by the same controller they all have the same ACPI path and this is a simple handler that just returns a pointer to the GPIO device that is defined in the DSDT. Change-Id: I24ff3a6f2479d9e7eeace65d49e2f6c2e070f3e9 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://review.coreboot.org/14843 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/skylake/gpio.c')
-rw-r--r--src/soc/intel/skylake/gpio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/gpio.c b/src/soc/intel/skylake/gpio.c
index db4b8c3ce6..a7d88326d1 100644
--- a/src/soc/intel/skylake/gpio.c
+++ b/src/soc/intel/skylake/gpio.c
@@ -398,3 +398,8 @@ void gpio_set(gpio_t gpio_num, int value)
write32(&dw_regs[0], reg);
/* GPIO port ids support posted write semantics. */
}
+
+const char *gpio_acpi_path(gpio_t gpio_num)
+{
+ return "\\_SB.PCI0.GPIO";
+}