summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/acpi
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-11-23 10:19:28 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-11-25 11:08:12 +0000
commita7190ef2ec2081a5415d3078360a04f013face9f (patch)
tree9b96fcd04f6bb2a25ff90093ebe90bee3f2f8115 /src/soc/amd/common/acpi
parentbaa72db1b259f28b815662eba94c1ea601d0b718 (diff)
downloadcoreboot-a7190ef2ec2081a5415d3078360a04f013face9f.tar.gz
coreboot-a7190ef2ec2081a5415d3078360a04f013face9f.tar.bz2
coreboot-a7190ef2ec2081a5415d3078360a04f013face9f.zip
soc/amd/common/block/include/gpio_defs: de-duplicate pin status bit defs
De-duplicate the definitions for the pin status bit and use this new definition in both the C and the ACPI code. TEST=Timeless build results in identical image for amd/mandolin. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I8b0fe7dbec5dac176cdfa9690862433f202fb552 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59595 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/common/acpi')
-rw-r--r--src/soc/amd/common/acpi/gpio_bank_lib.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/acpi/gpio_bank_lib.asl b/src/soc/amd/common/acpi/gpio_bank_lib.asl
index 5a13d8da4434..579ff6888a17 100644
--- a/src/soc/amd/common/acpi/gpio_bank_lib.asl
+++ b/src/soc/amd/common/acpi/gpio_bank_lib.asl
@@ -159,7 +159,7 @@ Method (GRXS, 1, Serialized)
{
VAL0, 32
}
- Local0 = (GPIO_INPUT_VALUE & VAL0) >> GPIO_INPUT_SHIFT
+ Local0 = (GPIO_PIN_STS & VAL0) >> GPIO_PIN_STS_SHIFT
Return (Local0)
}