From aeb50ed7d2c9b10b8e029ae52441517d82ebfc47 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 16 May 2016 13:43:11 -0700 Subject: [PATCH] UPSTREAM: 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. BUG=None BRANCH=None TEST=None Change-Id: I24ff3a6f2479d9e7eeace65d49e2f6c2e070f3e9 Original-Signed-off-by: Duncan Laurie Original-Reviewed-on: https://review.coreboot.org/14843 Original-Reviewed-by: Aaron Durbin Original-Tested-by: build bot (Jenkins) Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/346992 Commit-Ready: Martin Roth Tested-by: Martin Roth Reviewed-by: Martin Roth --- src/soc/intel/skylake/gpio.c | 5 +++++ 1 file changed, 5 insertions(+) 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"; +}