ec/roda/it8518/acpi: Don't hard-code GPE offset

The GPE offset of 16 is PCH specific.

Built roda/rw11 with `BUILD_TIMELESS=1` and coreboot.rom remains the
same.

Change-Id: I4ec38fc28d2436f84a090bb4ab38f20612cfd795
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56080
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Nico Huber 2021-06-24 12:58:52 +00:00 committed by Nico Huber
parent df060bc362
commit 8e0d1936a2
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ Device (EC0)
{ {
Name (_HID, EISAID ("PNP0C09")) // ACPI Embedded Controller Name (_HID, EISAID ("PNP0C09")) // ACPI Embedded Controller
Name (_UID, 1) Name (_UID, 1)
Name (_GPE, Add(EC_SCI_GPI, 16)) // GPE for Runtime SCI Name (_GPE, EC_SCI_GPI)
Name (PWRS, 1) Name (PWRS, 1)
Name (LIDS, 1) Name (LIDS, 1)

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#define EC_SCI_GPI 7 #define EC_SCI_GPI (16 + 7)
#include <ec/roda/it8518/acpi/ec.asl> #include <ec/roda/it8518/acpi/ec.asl>