]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: Add a method to convert a GPIO to ACPI
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:44 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit2912686c08c33aff5269512de962dffb35fbee7c
tree63cb8bf65f09084ce34c62d4c3da14ce69e860b7
parentff715c6f4f7a3181fcc6a45907bb8bf0c8c6f08f
gpio: Add a method to convert a GPIO to ACPI

When generating ACPI tables we need to convert GPIOs in U-Boot to the ACPI
structures required by ACPI. This is a SoC-specific conversion and cannot
be handled by generic code, so add a new GPIO method to do the conversion.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/gpio/gpio-uclass.c
drivers/gpio/sandbox.c
include/acpi/acpi_device.h
include/asm-generic/gpio.h
test/dm/gpio.c