summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-09-16 21:12:00 +0800
committerIru Cai <mytbk920423@gmail.com>2020-09-17 00:16:17 +0800
commit84f48216870e39861dbd943cc83cbf7f0680aaa7 (patch)
tree38e940ec5189781d33dd94c45bf06cd98362775b
parentbb2c2a97523528ce2132a6a70918e3d852c87bff (diff)
downloadcoreboot-84f48216870e39861dbd943cc83cbf7f0680aaa7.tar.xz
ec/hp/kbc1126: Support using a different GPE
HP EliteBook Folio 9480m uses the HP KBC1126 EC ACPI interface, but with a different GPE, so add a Kconfig option to support using a different GPE. Change-Id: I3b78567e1387c96bf173e4370aa3c836bbddac0b Signed-off-by: Iru Cai <mytbk920423@gmail.com>
-rw-r--r--src/ec/hp/kbc1126/Kconfig5
-rw-r--r--src/ec/hp/kbc1126/acpi/ec.asl2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ec/hp/kbc1126/Kconfig b/src/ec/hp/kbc1126/Kconfig
index fa2414adbc..957fdd52d1 100644
--- a/src/ec/hp/kbc1126/Kconfig
+++ b/src/ec/hp/kbc1126/Kconfig
@@ -10,6 +10,11 @@ config EC_HP_KBC1126_ECFW_IN_CBFS
depends on EC_HP_KBC1126
default y
+config EC_HP_KBC1126_GPE
+ hex
+ depends on EC_HP_KBC1126
+ default 0x16
+
if EC_HP_KBC1126_ECFW_IN_CBFS
comment "Please select the following otherwise your laptop cannot be powered on."
diff --git a/src/ec/hp/kbc1126/acpi/ec.asl b/src/ec/hp/kbc1126/acpi/ec.asl
index e5752a802d..81bdff969a 100644
--- a/src/ec/hp/kbc1126/acpi/ec.asl
+++ b/src/ec/hp/kbc1126/acpi/ec.asl
@@ -4,7 +4,7 @@ Device (EC0)
{
Name (_HID, EISAID("PNP0C09"))
Name (_UID, 0)
- Name (_GPE, 0x16)
+ Name (_GPE, CONFIG_EC_HP_KBC1126_GPE)
Name (_CRS, ResourceTemplate ()
{