From 47b393a17d8c911601a5044bb41de3eb3215f458 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Fri, 13 Oct 2023 16:18:56 +0000 Subject: soc/amd/mendocino: Update FSP-S UPD to pass boot logo A new FSP-S UPD is added to allow passing a buffer containing boot logo in BMP format. Update the FSP-S UPD and add a SoC specific callback to populate the UPD. BUG=b:294055390 TEST=Build and boot to OS in Skyrim. Pass the BMP logo buffer through the UPD to FSP-S. Ensure that the concerned driver in FSP-S handles the buffer. Change-Id: Ie522956b6dfe2400ef91d43c80f2adc6d52c8415 Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/78817 Reviewed-by: Matt DeVillier Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/soc/amd/mendocino/fsp_s_params.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc') diff --git a/src/soc/amd/mendocino/fsp_s_params.c b/src/soc/amd/mendocino/fsp_s_params.c index ce450e8d1f..e1eff328fe 100644 --- a/src/soc/amd/mendocino/fsp_s_params.c +++ b/src/soc/amd/mendocino/fsp_s_params.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -52,3 +53,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) if (!acpi_is_wakeup_s3()) payload_preload(); } + +void soc_load_logo(FSPS_UPD *supd) +{ + uint32_t logo_size; + bmp_load_logo(&supd->FspsConfig.logo_bmp_buffer, &logo_size); +} -- cgit v1.2.3