diff options
author | Eugene Myers <edmyers@tycho.nsa.gov> | 2021-06-16 07:55:58 -0400 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2023-06-10 03:19:55 +0000 |
commit | 60004e276ab0a5845f0652c7d8dd40ed7c5ab1b9 (patch) | |
tree | 2d219b293c8bf55faf409fe25966873911481011 /src/soc/intel/apollolake/pmutil.c | |
parent | 6ffb50080a2978cbffe952bee4b6c6b7877c4224 (diff) | |
download | coreboot-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/apollolake/pmutil.c')
-rw-r--r-- | src/soc/intel/apollolake/pmutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index 559adad405a3..8151afc08d11 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -246,3 +246,9 @@ int vbnv_cmos_failed(void) return rtc_failure; } + +/* STM Support */ +uint16_t get_pmbase(void) +{ + return (uint16_t) ACPI_BASE_ADDRESS; +} |