diff options
author | Simon Glass <sjg@chromium.org> | 2021-11-19 23:24:06 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2021-12-27 01:33:26 +0300 |
commit | e567122b3253156009aeb6eda1a3d82962877367 (patch) | |
tree | 937684c447a7a7a8fb3cade4310bef799b0068c3 /board/coreboot | |
parent | d8bf49fa20bf1bf8b94e574a651e117da21a632c (diff) | |
download | u-boot-e567122b3253156009aeb6eda1a3d82962877367.tar.xz |
x86: coreboot: Support getting a logo from virtio
Enable this feature so that a splash screen can be provided.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/coreboot')
-rw-r--r-- | board/coreboot/coreboot/coreboot.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c index 11294d6e87..3b90ae7538 100644 --- a/board/coreboot/coreboot/coreboot.c +++ b/board/coreboot/coreboot/coreboot.c @@ -4,10 +4,11 @@ */ #include <common.h> -#include <asm/cb_sysinfo.h> -#include <asm/global_data.h> +#include <splash.h> #include <init.h> #include <smbios.h> +#include <asm/cb_sysinfo.h> +#include <asm/global_data.h> int board_early_init_r(void) { @@ -65,3 +66,18 @@ fallback: return checkboard(); } #endif + +static struct splash_location coreboot_splash_locations[] = { + { + .name = "virtio_fs", + .storage = SPLASH_STORAGE_VIRTIO, + .flags = SPLASH_STORAGE_RAW, + .devpart = "0", + }, +}; + +int splash_screen_prepare(void) +{ + return splash_source_load(coreboot_splash_locations, + ARRAY_SIZE(coreboot_splash_locations)); +} |