Cliff Huang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84103?usp=email )
Change subject: soc/intel/common/block/acpi: Add GPE1 blocks to ACPI FADT table ......................................................................
soc/intel/common/block/acpi: Add GPE1 blocks to ACPI FADT table
Use CONFIG_SOC_INTEL_COMMON_BLOCK_ACPI_GPE1 to enable GPE1 block. This will include GPE1 blocks to FADT with their info.
BUG=362310295 TEST=boot to OS and check that FADT table include GPE1. FADT should have: GPE1 Block Address : 00001810 GPE1 Block Length : 18 GPE1 Base Offset : 80
Signed-off-by: Cliff Huang cliff.huang@intel.com Change-Id: Ia6928c35b86f4a2243d58597b17b2a3a5f54271e --- M src/soc/intel/common/block/acpi/Kconfig M src/soc/intel/common/block/acpi/acpi.c 2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/84103/1
diff --git a/src/soc/intel/common/block/acpi/Kconfig b/src/soc/intel/common/block/acpi/Kconfig index 36b47a3..2404ddf 100644 --- a/src/soc/intel/common/block/acpi/Kconfig +++ b/src/soc/intel/common/block/acpi/Kconfig @@ -76,4 +76,10 @@ Define the slp_s0_residency frequency to be reported in the LPIT ACPI table.
+config SOC_INTEL_COMMON_BLOCK_ACPI_GPE1 + bool "Include GPE1" + help + Include GPE1 STS and EN registers in FADT. + Requires define GPE1_STS(0) and GPE1_REG_MAX from the SOC header. + endif diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c index 1faf433..bb31086 100644 --- a/src/soc/intel/common/block/acpi/acpi.c +++ b/src/soc/intel/common/block/acpi/acpi.c @@ -107,6 +107,11 @@ /* GPE0 STS/EN pairs each 32 bits wide. */ fadt->gpe0_blk_len = 2 * GPE0_REG_MAX * sizeof(uint32_t);
+#if CONFIG(SOC_INTEL_COMMON_BLOCK_ACPI_GPE1) + fadt->gpe1_blk = pmbase + GPE1_STS(0); + fadt->gpe1_blk_len = 2 * GPE1_REG_MAX * sizeof(uint32_t); + fadt->gpe1_base = fadt->gpe0_blk_len / 2 * 8; +#endif fill_fadt_extended_pm_io(fadt);
fadt->flags |= ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |