1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <bootsplash.h>
9 static const struct cbmem_entry
*logo_entry
;
11 void bmp_load_logo(uint32_t *logo_ptr
, uint32_t *logo_size
)
15 /* CBMEM is locked for S3 resume path. */
16 if (acpi_is_wakeup_s3())
19 logo_entry
= cbmem_entry_add(CBMEM_ID_FSP_LOGO
, 1 * MiB
);
23 logo_buffer
= cbmem_entry_start(logo_entry
);
27 *logo_size
= cbfs_load("logo.bmp", logo_buffer
, 1 * MiB
);
29 *logo_ptr
= (uintptr_t)logo_buffer
;
32 void bmp_release_logo(void)
35 cbmem_entry_remove(logo_entry
);