diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-12-14 20:49:59 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-01-08 13:09:36 +0000 |
commit | 6759ad39ad7d669f8fe712b6dcbb927092043497 (patch) | |
tree | 22d457a55347fe24689a06febd8ef555ea59e5d7 /src/mainboard/emulation | |
parent | 3526b9fcaf33c6c7725fa7f0bd901be8ca122a2a (diff) |
arch/x86: introduce HAVE_CONFIGURABLE_APMC_SMI_PORT
Introduce the HAVE_CONFIGURABLE_APMC_SMI_PORT Kconfig option that when
not selected will result in a default implementation of
pm_acpi_smi_cmd_port to be included in the build that returns APM_CNT.
SoCs that provide their own pm_acpi_smi_cmd_port implementation, need to
select this Kconfig option.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Iaceb61b0f2a630d7afe2e0780b6a2a9806ea62f9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79566
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r-- | src/mainboard/emulation/qemu-q35/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-q35/smi.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/mainboard/emulation/qemu-q35/Makefile.inc b/src/mainboard/emulation/qemu-q35/Makefile.inc index f4a89be06f..bc73edcbbb 100644 --- a/src/mainboard/emulation/qemu-q35/Makefile.inc +++ b/src/mainboard/emulation/qemu-q35/Makefile.inc @@ -20,5 +20,4 @@ all-y += ../qemu-i440fx/bootmode.c ramstage-$(CONFIG_CHROMEOS) += chromeos.c -smm-y += smi.c smm-y += memmap.c diff --git a/src/mainboard/emulation/qemu-q35/smi.c b/src/mainboard/emulation/qemu-q35/smi.c deleted file mode 100644 index 5d8d48295c..0000000000 --- a/src/mainboard/emulation/qemu-q35/smi.c +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <cpu/x86/smm.h> - -/* The X86 qemu target uses AMD64 save states but the APM port is not configurable. */ -uint16_t pm_acpi_smi_cmd_port(void) -{ - return APM_CNT; -} |