diff options
author | Eran Mitrani <mitrani@google.com> | 2024-06-03 17:23:32 -0700 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2024-06-21 19:59:39 +0000 |
commit | 5fccf367b8a70f841c1e8e2b806d5e7ae3f17092 (patch) | |
tree | 3fb603ab5705a21cb79b6a95171f1903ef66ace5 /payloads/libpayload | |
parent | e9b741c2bdfafbfc70fba9ec1d6fe847d2cae664 (diff) |
libpayload: add cse_*info pointer to lib_sysinfo
Set a pointer in lib_sysinfo for CSE_BP_INFO and CSE_INFO.
BUG=b:343022317
TEST=Verified CBMEM data in depthcharge on Screebo
Signed-off-by: Eran Mitrani <mitrani@google.com>
Change-Id: I3aa64d1e439a0596e732a3c0608d60913cefd19f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82790
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/include/sysinfo.h | 2 | ||||
-rw-r--r-- | payloads/libpayload/libc/coreboot.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h index d5f507377c..cbfc7bf91b 100644 --- a/payloads/libpayload/include/sysinfo.h +++ b/payloads/libpayload/include/sysinfo.h @@ -114,6 +114,8 @@ struct sysinfo_t { uintptr_t acpi_cnvs; uintptr_t acpi_rsdp; uintptr_t smbios; + uintptr_t cse_bp_info; + uintptr_t cse_info; #define UNDEFINED_STRAPPING_ID (~0) #define UNDEFINED_FW_CONFIG ~((uint64_t)0) diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c index 3c49484064..7873426473 100644 --- a/payloads/libpayload/libc/coreboot.c +++ b/payloads/libpayload/libc/coreboot.c @@ -262,6 +262,12 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info) case CBMEM_ID_MEM_CHIP_INFO: info->mem_chip_base = cbmem_entry->address; break; + case CBMEM_ID_CSE_BP_INFO: + info->cse_bp_info = cbmem_entry->address; + break; + case CBMEM_ID_CSE_INFO: + info->cse_info = cbmem_entry->address; + break; default: break; } |