Attention is currently required from: Jason Glenesk, Raul Rangel, Matt DeVillier, Fred Reitberger, Felix Held.
Grzegorz Bernacki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74269 )
Change subject: mendocino: Print content of version file ......................................................................
mendocino: Print content of version file
This commit adds printing content of 'fsp_version' file at ramstage.
BUG=b:224780134 TEST=Tested on Skyrim device
Change-Id: I8df54b74cd987b4a3be635932d38ea178d0b0311 Signed-off-by: Grzegorz Bernacki bernacki@google.com --- M src/soc/amd/mendocino/Makefile.inc A src/soc/amd/mendocino/fsp_version.c 2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/74269/1
diff --git a/src/soc/amd/mendocino/Makefile.inc b/src/soc/amd/mendocino/Makefile.inc index 665eb9e..5a5f902 100644 --- a/src/soc/amd/mendocino/Makefile.inc +++ b/src/soc/amd/mendocino/Makefile.inc @@ -31,6 +31,7 @@ ramstage-y += mca.c ramstage-y += root_complex.c ramstage-y += xhci.c +ramstage-$(CONFIG_FSP_VERSION_FILE) += fsp_version.c
smm-y += gpio.c smm-y += smihandler.c diff --git a/src/soc/amd/mendocino/fsp_version.c b/src/soc/amd/mendocino/fsp_version.c new file mode 100644 index 0000000..b445f1cb --- /dev/null +++ b/src/soc/amd/mendocino/fsp_version.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <bootstate.h> +#include <cbfs.h> + +static void print_blob_version(void *arg) +{ + char *version; + size_t size; + version = cbfs_map("fsp_version", &size); + + if (!version) { + return; + } + + printk(BIOS_INFO, "FSP blob version:\n"); + printk(BIOS_INFO, "%.*s", (int)size, version); +} + +BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_ENTRY, print_blob_version, NULL);