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>
This commit is contained in:
Angel Pons 2020-09-28 00:51:15 +02:00 committed by Patrick Georgi
parent 871f62c376
commit 1a43de16bb
1 changed files with 2 additions and 2 deletions

View File

@ -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))