1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <bootsplash.h>
8 #include <vendorcode/google/chromeos/chromeos.h>
10 static const struct cbmem_entry
*logo_entry
;
12 #if !CONFIG(HAVE_CUSTOM_BMP_LOGO)
13 const char *bmp_logo_filename(void)
19 void bmp_load_logo(uint32_t *logo_ptr
, uint32_t *logo_size
)
23 /* CBMEM is locked for S3 resume path. */
24 if (acpi_is_wakeup_s3())
27 logo_entry
= cbmem_entry_add(CBMEM_ID_FSP_LOGO
, 1 * MiB
);
31 logo_buffer
= cbmem_entry_start(logo_entry
);
35 *logo_size
= cbfs_load(bmp_logo_filename(), logo_buffer
, 1 * MiB
);
37 *logo_ptr
= (uintptr_t)logo_buffer
;
40 void bmp_release_logo(void)
43 cbmem_entry_remove(logo_entry
);