soc/amd/common/include/psp_efs: rename new PSP directory EFS entry
commit4bdea41713180865c7a2457a8b20beefead68a59
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 16 Feb 2023 23:31:43 +0000 (17 00:31 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 20 Feb 2023 15:39:30 +0000 (20 15:39 +0000)
tree037e2507185700cf30cefcd23f8d4d3d8e74e352
parentc36b70caa7864e49ebc587e6e19c4b5165253d4d
soc/amd/common/include/psp_efs: rename new PSP directory EFS entry

The EFS entry at offset 0x14 can point to either the first level PSP
directory table or to the PSP combo directory structure that was used
before the introduction of the AMD A/B recovery scheme. This scheme is
not to be confused with the VBOOT scheme. The PSP verstage code checks
if the header this entry points to begins with the PSP_COOKIE, which
indicates the entry is a first level PSP directory table. Due to that,
the EFS entry at offset 0x14 is always expected to point to a PSP
directory table, so rename combo_psp_directory to new_psp_directory to
match the actual usage. This EFS entry that points to the PSP directory
table is called new_psp_directory, since the entry at EFS offset 0x10
was used on some early AMD chips to point to the older PSP directory
table and that one is already called psp_directory. amdfwtool uses the
same naming scheme for those two PSP directory table pointers.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I10f19ee63f8d422433dba64402d84fd6bb9e0f9e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73083
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/amd/common/block/include/amdblocks/psp_efs.h
src/soc/amd/common/psp_verstage/psp_verstage.c