]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32mp1: add splash screen with stmicroelectronics logo
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 10 Jul 2023 11:30:59 +0000 (13:30 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 16 Aug 2023 13:35:55 +0000 (15:35 +0200)
Display the STMicroelectronics logo with features VIDEO_LOGO and
SPLASH_SCREEN on STMicroelectronics boards.

With CONFIG_SYS_VENDOR = "st", the logo st.bmp is selected, loaded at the
address indicated by splashimage and centered with "splashpos=m,m".

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
MAINTAINERS
configs/stm32mp15_basic_defconfig
configs/stm32mp15_defconfig
configs/stm32mp15_trusted_defconfig
include/configs/stm32mp15_st_common.h
tools/logos/st.bmp [new file with mode: 0644]

index bf851cffd6b99d3bf5b4520b6e6feff24c2602ea..523c17ebae4f772f648e6542abcba4f79aa7f75c 100644 (file)
@@ -633,6 +633,7 @@ F:  include/dt-bindings/clock/stm32mp*
 F:     include/dt-bindings/pinctrl/stm32-pinfunc.h
 F:     include/dt-bindings/reset/stm32mp*
 F:     include/stm32_rcc.h
+F:     tools/logos/st.bmp
 F:     tools/stm32image.c
 N:     stm
 N:     stm32
index 424ae5dbdfafa30d303be700049001f239f66105..9ea5aaa7145ab928dd9a170405d88af018fa587d 100644 (file)
@@ -171,6 +171,7 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_VIDEO=y
+CONFIG_VIDEO_LOGO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
 CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
@@ -178,6 +179,8 @@ CONFIG_VIDEO_STM32=y
 CONFIG_VIDEO_STM32_DSI=y
 CONFIG_VIDEO_STM32_MAX_XRES=1280
 CONFIG_VIDEO_STM32_MAX_YRES=800
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
index 2700b5c49910a4e5ba48cfd8b3f14987b9567fdf..4d0a81f8a871e37753db16f1b1271818459c3b87 100644 (file)
@@ -147,6 +147,7 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_VIDEO=y
+CONFIG_VIDEO_LOGO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
 CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
@@ -154,6 +155,8 @@ CONFIG_VIDEO_STM32=y
 CONFIG_VIDEO_STM32_DSI=y
 CONFIG_VIDEO_STM32_MAX_XRES=1280
 CONFIG_VIDEO_STM32_MAX_YRES=800
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
index 5b94e0c6d2e78b39c07aa51a6d88be3fd87a2603..0a7d8624858d7f4b0fb18ca9a6767297925da7cb 100644 (file)
@@ -147,6 +147,7 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0483
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5720
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_VIDEO=y
+CONFIG_VIDEO_LOGO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
 CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
@@ -154,6 +155,8 @@ CONFIG_VIDEO_STM32=y
 CONFIG_VIDEO_STM32_DSI=y
 CONFIG_VIDEO_STM32_MAX_XRES=1280
 CONFIG_VIDEO_STM32_MAX_YRES=800
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
index b45982a35b8ca410712508626187e716ed983f3e..60838cb0e3f06c492101bbebc745ff75501cbbd0 100644 (file)
@@ -10,7 +10,9 @@
 
 #define STM32MP_BOARD_EXTRA_ENV \
        "usb_pgood_delay=2000\0" \
-       "console=ttySTM0\0"
+       "console=ttySTM0\0" \
+       "splashimage=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+       "splashpos=m,m\0"
 
 #include <configs/stm32mp15_common.h>
 
diff --git a/tools/logos/st.bmp b/tools/logos/st.bmp
new file mode 100644 (file)
index 0000000..f59d3c5
Binary files /dev/null and b/tools/logos/st.bmp differ