[coreboot-gerrit] Patch merged into coreboot/master: gpio: Add a function to map GPIO to ACPI path

gerrit at coreboot.org gerrit at coreboot.org
Sat May 21 06:01:59 CEST 2016


the following patch was just integrated into master:
commit 3a39f44fc42cf02be898279036ebf066d4f72caf
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Mon May 9 16:09:25 2016 -0700

    gpio: Add a function to map GPIO to ACPI path
    
    Add a new function "gpio_acpi_path()" that can be implemented by
    SoC/board code to provide a mapping from a "gpio_t" pin to a
    controller by returning the ACPI path for the controller that owns
    this particular GPIO.
    
    This is implemented separately from the "acpi_name" handler as many
    SOCs do not have a specific device that handles GPIOs (or may have
    many devices and the only way to know which is the opaque gpio_t)
    and the current GPIO library does not have any association with the
    device tree.
    
    If not implemented (many SoCs do not implement the GPIO library
    abstraction at all in coreboot) then the default handler will return
    NULL and the caller knows it cannot determine this reliably.
    
    Change-Id: Iaa0ff6c8c058f00cddf0909c4b7405a0660d4cfb
    Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
    Reviewed-on: https://review.coreboot.org/14842
    Reviewed-by: Aaron Durbin <adurbin at chromium.org>
    Tested-by: build bot (Jenkins)


See https://review.coreboot.org/14842 for details.

-gerrit



More information about the coreboot-gerrit mailing list