summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2021-10-18 15:35:28 +1100
committerPatrick Georgi <pgeorgi@google.com>2021-11-02 08:17:32 +0000
commitfab6e44a95e8217818254d69de4ba648bfa9e8ed (patch)
tree1248e73764761e8020971ce4720e8e85ca0b76bd /src/soc/amd/common/block
parentcb3745c407f0c19bfcab06b05549ad20948efff9 (diff)
psp_verstage: convert relative address in EFS2
Addresses in AMD fw table with EFS gen2 are relative addresses, but PSP doesn't accept relative addresses in update_psp_bios_dir(). Check for EFS gen2 and convert them as needed. BUG=b:194263115 TEST=build and boot on guybrush and shuboz Signed-off-by: Kangheui Won <khwon@chromium.org> Change-Id: I95813beba7278480e6640599fcf7445923259361 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58316 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/psp_efs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/psp_efs.h b/src/soc/amd/common/block/include/amdblocks/psp_efs.h
index 1a6059a1be..a3996cbf3b 100644
--- a/src/soc/amd/common/block/include/amdblocks/psp_efs.h
+++ b/src/soc/amd/common/block/include/amdblocks/psp_efs.h
@@ -29,6 +29,8 @@ struct second_gen_efs { /* todo: expand for Server products */
uint32_t reserved:31;
} __attribute__((packed));
+#define EFS_SECOND_GEN 0
+
/* Copied from coreboot/util/amdfwtool.h */
struct embedded_firmware {
uint32_t signature; /* 0x55aa55aa */