Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 11ca3df5759a9ea87225355db21bea125ca3594c Mon Sep 17 00:00:00 2001
From: Alessandro Pecugi <alessandro.pecugi@seco.com>
Date: Thu, 5 Oct 2023 10:48:48 +0000
Subject: [PATCH 1/1] [RPI][SPLASH] enable splash and splashsource
- display the splash screen
- enable the splaspos environment variable to configure positioning of the splash image
- enable the splashsource library, which allows to load the logo image from a custom source (see README.splashprepare)
---
configs/rpi_arm64_defconfig | 6 ++++++
include/configs/rpi.h | 5 ++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/configs/rpi_arm64_defconfig b/configs/rpi_arm64_defconfig
index 06ae3e93b2..d7089b3f33 100644
--- a/configs/rpi_arm64_defconfig
+++ b/configs/rpi_arm64_defconfig
@@ -53,3 +53,9 @@ CONFIG_SYS_WHITE_ON_BLACK=y
CONFIG_CONSOLE_SCROLL_LINES=10
CONFIG_PHYS_TO_BUS=y
CONFIG_OF_LIBFDT_OVERLAY=y
+
+CONFIG_SPLASH_SCREEN=y
+CONFIG_CMD_BMP=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_SPLASH_SOURCE=y
+CONFIG_BMP_24BPP=y
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index 4c5c1ac31f..50d6bda3f4 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -174,7 +174,10 @@
ENV_DEVICE_SETTINGS \
ENV_DFU_SETTINGS \
ENV_MEM_LAYOUT_SETTINGS \
- BOOTENV
+ BOOTENV \
+ "splashpos=m,m\0" \
+ "splashimage=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+ "splashsource=mmc_fs\0"
#endif
--
2.25.1