UPSTREAM: 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. BUG=None BRANCH=None TEST=None Change-Id: I00fad1cafec2f2d63dce9f7779063be0532649c7 Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Original-Reviewed-on: https://review.coreboot.org/15520 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/358587 Reviewed-by: Martin Roth <martinroth@chromium.org>
This commit is contained in:
parent
2cb5236ffb
commit
4a3f465f60
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue