]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Support generation of a GPIO/irq for a device
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:47 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit4ebc940b39b6a43de9d1fa74653321cd6fdb4d3a
tree879e368605d9dae2a7cf4ba960711554c9b28eba
parenta9e0a077df5509c3d4b49e745c746c38a4f9a7a1
acpi: Support generation of a GPIO/irq for a device

Some devices use interrupts but some use GPIOs. Since these are fully
specified in the device tree we can automatically produce the correct ACPI
descriptor for a device.

Add a function to handle this.

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>
include/acpi/acpi_device.h
lib/acpi/acpi_device.c
test/dm/acpigen.c