summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/broadwell/pmutil.c
diff options
context:
space:
mode:
authorEugene Myers <edmyers@tycho.nsa.gov>2021-06-16 07:55:58 -0400
committerStefan Reinauer <stefan.reinauer@coreboot.org>2023-06-10 03:19:55 +0000
commit60004e276ab0a5845f0652c7d8dd40ed7c5ab1b9 (patch)
tree2d219b293c8bf55faf409fe25966873911481011 /src/soc/intel/broadwell/pmutil.c
parent6ffb50080a2978cbffe952bee4b6c6b7877c4224 (diff)
downloadcoreboot-60004e276ab0a5845f0652c7d8dd40ed7c5ab1b9.tar.gz
coreboot-60004e276ab0a5845f0652c7d8dd40ed7c5ab1b9.tar.bz2
coreboot-60004e276ab0a5845f0652c7d8dd40ed7c5ab1b9.zip
soc/intel: Add get_pmbase
Originally a part of security/intel/stm. Add get_pmbase to the intel platform setup code. get_pmbase is used by the coreboot STM setup functions to ensure that the pmbase is accessable by the SMI handler during runtime. The pmbase has to be accounted for in the BIOS resource list so that the SMI handler is allowed this access. Original-Change-Id: If6f6295c5eba9eb20e57ab56e7f965c8879e93d2 Original-Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov> Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/37990 Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com> Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Change-Id: I7f9ef32946a17aa0bbcbc375bc34b48e62620694 Signed-off-by: Eugene Myers <edmyers@tycho.nsa.gov> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55621 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/intel/broadwell/pmutil.c')
-rw-r--r--src/soc/intel/broadwell/pmutil.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/broadwell/pmutil.c b/src/soc/intel/broadwell/pmutil.c
index 00db6156ec56..2445dfacf6bc 100644
--- a/src/soc/intel/broadwell/pmutil.c
+++ b/src/soc/intel/broadwell/pmutil.c
@@ -458,3 +458,9 @@ int vboot_platform_is_resuming(void)
return acpi_sleep_from_pm1(inl(ACPI_BASE_ADDRESS + PM1_CNT)) == ACPI_S3;
}
+
+/* STM Support */
+uint16_t get_pmbase(void)
+{
+ return (uint16_t) ACPI_BASE_ADDRESS;
+}