summaryrefslogtreecommitdiff
path: root/src/soc/intel/icelake/acpi
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-09-28 00:51:15 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-09-30 10:14:07 +0000
commit1a43de16bbe9958d8cb2cb24f299a69028ce7d61 (patch)
tree0feb1b8d5ec66e88e631587af542d23cae4dc85f /src/soc/intel/icelake/acpi
parent871f62c376bb4b6095d16277384e267bca02b4f4 (diff)
soc/intel/icelake/acpi/gpio.asl: Correct GADD method
Some cases are inconsistent. Refer to the 495 series on-package PCH to confirm which GPIO pads are the first for each community and fix it. Change-Id: Ie4c4c12c6629478d754f55fa3fb75fa16eb01335 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45777 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Diffstat (limited to 'src/soc/intel/icelake/acpi')
-rw-r--r--src/soc/intel/icelake/acpi/gpio.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/icelake/acpi/gpio.asl b/src/soc/intel/icelake/acpi/gpio.asl
index 12a4e18737..6a8f824929 100644
--- a/src/soc/intel/icelake/acpi/gpio.asl
+++ b/src/soc/intel/icelake/acpi/gpio.asl
@@ -72,13 +72,13 @@ Method (GADD, 1, NotSerialized)
If ((Arg0 >= GPP_G0) && (Arg0 <= GPP_A23))
{
Local0 = PID_GPIOCOM0
- Local1 = Arg0 - GPP_A0
+ Local1 = Arg0 - GPP_G0
}
/* GPIO Community 1 */
If ((Arg0 >= GPP_H0) && (Arg0 <= GPP_F19))
{
Local0 = PID_GPIOCOM1
- Local1 = Arg0 - GPP_D0
+ Local1 = Arg0 - GPP_H0
}
/* GPIO Community 2 */
If ((Arg0 >= GPD0) && (Arg0 <= GPD11))