amdfwtool: Add a union for combo and psp directory
For combo layout, this is for combo header. For non-combo layout, this is for PSP directory. Change-Id: Ie7b5aec6b511ad61972908d1d22a13aeb7dd73a9 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58557 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
@@ -1618,7 +1618,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (comboable)
|
if (comboable)
|
||||||
amd_romsig->combo_psp_directory = BUFF_TO_RUN(ctx, pspdir);
|
amd_romsig->new_psp_directory = BUFF_TO_RUN(ctx, pspdir);
|
||||||
else
|
else
|
||||||
amd_romsig->psp_directory = BUFF_TO_RUN(ctx, pspdir);
|
amd_romsig->psp_directory = BUFF_TO_RUN(ctx, pspdir);
|
||||||
|
|
||||||
|
@@ -88,7 +88,10 @@ typedef struct _embedded_firmware {
|
|||||||
uint32_t gec_entry;
|
uint32_t gec_entry;
|
||||||
uint32_t xhci_entry;
|
uint32_t xhci_entry;
|
||||||
uint32_t psp_directory;
|
uint32_t psp_directory;
|
||||||
uint32_t combo_psp_directory;
|
union {
|
||||||
|
uint32_t new_psp_directory;
|
||||||
|
uint32_t combo_psp_directory;
|
||||||
|
};
|
||||||
uint32_t bios0_entry; /* todo: add way to select correct entry */
|
uint32_t bios0_entry; /* todo: add way to select correct entry */
|
||||||
uint32_t bios1_entry;
|
uint32_t bios1_entry;
|
||||||
uint32_t bios2_entry;
|
uint32_t bios2_entry;
|
||||||
|
Reference in New Issue
Block a user