diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2016-06-30 09:34:24 -0700 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2016-07-02 01:20:02 +0200 |
commit | abdbed9cf3a1104bcd3a35fd5f3de3988d45fee5 (patch) | |
tree | 00879b0b03a31fcab89648083d531dfe2417fd7f | |
parent | 366cd21472bec6bbb412ebdad10df327a58eb00f (diff) |
soc/intel/skylake: Add function for gpio_t to ACPI pin translation
Add the function defined in gpio.h to translate a gpio_t into a
value for use in an ACPI GPIO pin table.
For skylake this just returns the gpio_t value as the pins are
translated directly and they are all in the same ACPI device.
Change-Id: I00fad1cafec2f2d63dce9f7779063be0532649c7
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/15520
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/soc/intel/skylake/gpio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/gpio.c b/src/soc/intel/skylake/gpio.c index 78495c6467..5b9babfde3 100644 --- a/src/soc/intel/skylake/gpio.c +++ b/src/soc/intel/skylake/gpio.c @@ -408,3 +408,8 @@ const char *gpio_acpi_path(gpio_t gpio_num) { return "\\_SB.PCI0.GPIO"; } + +uint16_t gpio_acpi_pin(gpio_t gpio_num) +{ + return gpio_num; +} |