[PATCH v2] board: stm32mp1: add splash screen on dk2
Dario Binacchi
dario.binacchi at amarulasolutions.com
Tue Jul 4 19:31:21 CEST 2023
Display the STMicroelectronics logo.
Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
---
Changes in v2:
- move "splash.h" and "st_logo_data.h" headers before "syscon.h" in order
to keep includes sorted alphabetically.
- remove "logo" variable and pass "(ulong)stmicroelectronics_uboot_logo_8bit_rle"
directly to the bmp_display() function.
board/st/stm32mp1/stm32mp1.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 1a1b1844c8c0..ebd3948d519c 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -31,8 +31,11 @@
#include <phy.h>
#include <remoteproc.h>
#include <reset.h>
+#include <splash.h>
+#include <st_logo_data.h>
#include <syscon.h>
#include <usb.h>
+#include <video.h>
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
@@ -684,6 +687,14 @@ int board_init(void)
fw_images[0].fw_name = u"STM32MP-FIP";
fw_images[0].image_index = 1;
#endif
+
+ if (IS_ENABLED(CONFIG_CMD_BMP)) {
+ if (board_is_stm32mp15x_dk2()) {
+ bmp_display((ulong)stmicroelectronics_uboot_logo_8bit_rle,
+ BMP_ALIGN_CENTER, BMP_ALIGN_CENTER);
+ }
+ }
+
return 0;
}
--
2.32.0
More information about the U-Boot
mailing list