From 86024954dfa06af9a9a7e5f19ab5aae32eb14909 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 3 Feb 2021 23:44:28 +0100 Subject: soc/amd/cezanne: select ACPI support and make the compiler happy Follow-up patches will add more functionality. Signed-off-by: Felix Held Signed-off-by: Raul E Rangel Change-Id: I9b806569154e46418fa7d4fa35575a0acfec9132 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50273 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/cezanne/Kconfig | 1 + src/soc/amd/cezanne/Makefile.inc | 2 ++ src/soc/amd/cezanne/acpi.c | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/soc/amd/cezanne/acpi.c (limited to 'src') diff --git a/src/soc/amd/cezanne/Kconfig b/src/soc/amd/cezanne/Kconfig index 64c3d54f95..82ab3c40c3 100644 --- a/src/soc/amd/cezanne/Kconfig +++ b/src/soc/amd/cezanne/Kconfig @@ -16,6 +16,7 @@ config SOC_SPECIFIC_OPTIONS select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH select FSP_COMPRESS_FSP_M_LZMA select FSP_COMPRESS_FSP_S_LZMA + select HAVE_ACPI_TABLES select HAVE_CF9_RESET select HAVE_SMI_HANDLER select IDT_IN_EVERY_STAGE diff --git a/src/soc/amd/cezanne/Makefile.inc b/src/soc/amd/cezanne/Makefile.inc index 2bb9fb10bf..d395089242 100644 --- a/src/soc/amd/cezanne/Makefile.inc +++ b/src/soc/amd/cezanne/Makefile.inc @@ -24,6 +24,7 @@ romstage-y += reset.c romstage-y += romstage.c romstage-y += uart.c +ramstage-y += acpi.c ramstage-y += chip.c ramstage-y += cpu.c ramstage-y += fch.c @@ -37,6 +38,7 @@ ramstage-y += uart.c smm-y += smihandler.c CPPFLAGS_common += -I$(src)/soc/amd/cezanne/include +CPPFLAGS_common += -I$(src)/soc/amd/cezanne/acpi CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/cezanne $(call strip_quotes,$(CONFIG_FSP_M_CBFS))-options := -b $(CONFIG_FSP_M_ADDR) diff --git a/src/soc/amd/cezanne/acpi.c b/src/soc/amd/cezanne/acpi.c new file mode 100644 index 0000000000..94ca81ba12 --- /dev/null +++ b/src/soc/amd/cezanne/acpi.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* ACPI - create the Fixed ACPI Description Tables (FADT) */ + +#include + +unsigned long acpi_fill_madt(unsigned long current) +{ + /* TODO */ + return current; +} + +/* + * Reference section 5.2.9 Fixed ACPI Description Table (FADT) + * in the ACPI 3.0b specification. + */ +void acpi_fill_fadt(acpi_fadt_t *fadt) +{ + /* TODO */ +} -- cgit v1.2.3