starlabs: Convert EC_GPE_SCI to Kconfig

Convert EC_GPI_SCI to Kconfig option with default value of
0x50 that is used by most boards.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I8d47ebe76394fe1bcb217e0c6211db1566f82189
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60229
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Sean Rhodes 2021-12-19 21:22:15 +00:00 committed by Felix Held
parent 187bec7ac0
commit 58f6a5d744
4 changed files with 9 additions and 3 deletions

View File

@ -55,3 +55,7 @@ config EC_STARLABS_MERLIN
config EC_VARIANT_DIR config EC_VARIANT_DIR
string string
default "merlin" if EC_STARLABS_MERLIN default "merlin" if EC_STARLABS_MERLIN
config EC_GPE_SCI
hex
default 0x50

View File

@ -10,7 +10,7 @@ Scope (\_SB.PCI0.LPCB)
{ {
Name (_HID, EisaId ("PNP0C09")) Name (_HID, EisaId ("PNP0C09"))
Name (_UID, 0x01) Name (_UID, 0x01)
Name (_GPE, EC_GPE_SCI) Name (_GPE, CONFIG_EC_GPE_SCI)
Name (ECAV, 0x00) Name (ECAV, 0x00)
Name (ECTK, 0x01) Name (ECTK, 0x01)
Name (B2ST, 0x00) Name (B2ST, 0x00)

View File

@ -40,6 +40,10 @@ config DIMM_SPD_SIZE
config DRIVER_TPM_SPI_CHIP config DRIVER_TPM_SPI_CHIP
default 2 default 2
config EC_GPE_SCI
default 0x6e if BOARD_STARLABS_STARBOOK_TGL
default 0x50
config EC_STARLABS_ADD_ITE_BIN config EC_STARLABS_ADD_ITE_BIN
default y default y

View File

@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#define EC_GPE_SCI 0x6e
#include <acpi/acpi.h> #include <acpi/acpi.h>
DefinitionBlock( DefinitionBlock(
"dsdt.aml", "dsdt.aml",