arch/x86/acpigen: Add support for interacting with GPIOs

Hardware / Coreboot - Furquan Shaikh [chromium.org] - 24 October 2016 10:44 UTC

Since reading/toggling of GPIOs is platform-dependent task, provide an interface with common functions to generate ACPI AML code for manipulating GPIOs: 1. acpigen_soc_read_rx_gpio 2. acpigen_soc_get_tx_gpio 3. acpigen_soc_set_tx_gpio 4. acpigen_soc_clear_tx_gpio

Provide weak implementations of above functions. These functions are expected to be implemented by every SoC that uses ACPI. This allows drivers to easily generate ACPI AML code to interact GPIOs.

BUG=chrome-os-partner:55988

Change-Id: I3564f15a1cb50e6ca6132638447529648589aa0e

0a48aee arch/x86/acpigen: Add support for interacting with GPIOs
src/arch/x86/acpigen.c | 29 +++++++++++++++++++++++++++++
src/arch/x86/include/arch/acpigen.h | 22 ++++++++++++++++++++++
2 files changed, 51 insertions(+)

Upstream: review.coreboot.org


  • Share