[coreboot-gerrit] New patch to review for coreboot: broadwell: Add handler for finding ACPI path for GPIO

Duncan Laurie (dlaurie@google.com) gerrit at coreboot.org
Mon May 16 22:50:50 CEST 2016


Duncan Laurie (dlaurie at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14844

-gerrit

commit a34361ae503bba9af740c13e4bdc0edf88df4022
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Mon May 16 13:45:37 2016 -0700

    broadwell: Add handler for finding ACPI path for GPIO
    
    Add a handler for the Intel Broadwell 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: I288f9dd5f5c7b2679e4746557fb7047ba0e9c7ce
    Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
---
 src/soc/intel/broadwell/gpio.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/soc/intel/broadwell/gpio.c b/src/soc/intel/broadwell/gpio.c
index 3cbc60d..db99cc8 100644
--- a/src/soc/intel/broadwell/gpio.c
+++ b/src/soc/intel/broadwell/gpio.c
@@ -18,6 +18,7 @@
 #include <arch/io.h>
 #include <device/device.h>
 #include <device/pci.h>
+#include <gpio.h>
 #include <soc/gpio.h>
 #include <soc/iomap.h>
 #include <soc/pm.h>
@@ -193,3 +194,8 @@ int gpio_is_native(int gpio_num)
 {
 	return !(inl(GPIO_BASE_ADDRESS + GPIO_CONFIG0(gpio_num)) & 1);
 }
+
+const char *gpio_acpi_path(gpio_t gpio_num)
+{
+	return "\\_SB.PCI0.LPCB.GPIO";
+}



More information about the coreboot-gerrit mailing list