From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 28 Jun 2020 17:55:13 +0800 Subject: [PATCH v3 10/35] acpi: Support generation of a GPIO/irq for a device In-Reply-To: <20200613205459.v3.10.I9acfc65b118312ed0c6884f00ccea3def3cb3b32@changeid> References: <20200614025523.40183-1-sjg@chromium.org> <20200613205459.v3.10.I9acfc65b118312ed0c6884f00ccea3def3cb3b32@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jun 14, 2020 at 10:55 AM Simon Glass wrote: > > 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 > Reviewed-by: Wolfgang Wallner > --- > > Changes in v3: > - Fix 'an GPIO is found' typo > > include/acpi/acpi_device.h | 15 ++++++++++++++ > lib/acpi/acpi_device.c | 26 ++++++++++++++++++++++++ > test/dm/acpigen.c | 41 ++++++++++++++++++++++++++++++++++++++ > 3 files changed, 82 insertions(+) > Reviewed-by: Bin Meng