Display the STMicroelectronics logo.

Signed-off-by: Dario Binacchi <dario.binac...@amarulasolutions.com>
---

 board/st/stm32mp1/stm32mp1.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 1a1b1844c8c0..c8c2a83b2acf 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -32,7 +32,10 @@
 #include <remoteproc.h>
 #include <reset.h>
 #include <syscon.h>
+#include <splash.h>
+#include <st_logo_data.h>
 #include <usb.h>
+#include <video.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
@@ -684,6 +687,15 @@ 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()) {
+                       ulong logo =
+                               (ulong)stmicroelectronics_uboot_logo_8bit_rle;
+                       bmp_display(logo, BMP_ALIGN_CENTER, BMP_ALIGN_CENTER);
+               }
+       }
+
        return 0;
 }
 
-- 
2.32.0

Reply via email to