diff options
author | Rajat Jain <rajatja@google.com> | 2020-02-26 11:02:53 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-02 11:40:23 +0000 |
commit | 310623b2dd192a44caa1a3ee9471127ec3d6cf5e (patch) | |
tree | ae6d12ea8d2bba6366ddb42d39a75181c7a761fb /Documentation | |
parent | 4d9dd22bd1235717d623916f641ce69a6556a5b2 (diff) | |
download | coreboot-310623b2dd192a44caa1a3ee9471127ec3d6cf5e.tar.xz |
arch/x86/acpigen: Add new helper routines for XOR and get_rx_gpio
Add new helper function in the acpigen library, that use the underlying
soc routines.
Change-Id: I8d65699d3c806007a50adcb51c5d84567ce451b7
Signed-off-by: Rajat Jain <rajatja@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39145
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/acpi/gpio.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/acpi/gpio.md b/Documentation/acpi/gpio.md index d42042f36f..abde3a0d3d 100644 --- a/Documentation/acpi/gpio.md +++ b/Documentation/acpi/gpio.md @@ -73,6 +73,15 @@ calling the platform specific acpigen_soc_{set,clear}_tx_gpio functions internally. Thus, all the ACPI AML calling conventions for the platform functions apply to these helper functions as well. +3. Get Rx GPIO + int acpigen_get_rx_gpio(struct acpi_gpio gpio) + +This function takes as input, an struct acpi_gpio type and outputs +AML code to read the *logical* value of a gpio (after taking its +polarity into consideration), into the Local0 variable. It calls +the platform specific acpigen_soc_read_rx_gpio() to actually read +the raw Rx gpio value. + ## Implementation Details ACPI library in coreboot will provide weak definitions for all the |