summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authoryannick fertre <yannick.fertre@st.com>2018-03-02 15:59:28 +0100
committerAnatolij Gustschin <agust@denx.de>2018-03-19 11:01:04 +0100
commit92eac5848ff792a236270235b200a3257d5d7e26 (patch)
tree9790c9cfe6c4ea5dc195e8b6499b95b0200b1f20 /board
parent455141636f38ca6c544961c43192b744bc967791 (diff)
stm32f7: board: add splash screen
Support several pixel format (8bits, 16bits, 24bits & 32bits). Add new file st_logo_data.h which contains logo stmicroelectronics_uboot_logo_8bit_rle.bmp. Signed-off-by: yannick fertre <yannick.fertre@st.com>
Diffstat (limited to 'board')
-rw-r--r--board/st/stm32f746-disco/stm32f746-disco.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 05b316fe90..c4f263332c 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -7,8 +7,12 @@
#include <common.h>
#include <dm.h>
+#include <lcd.h>
#include <ram.h>
#include <spl.h>
+#include <splash.h>
+#include <st_logo_data.h>
+#include <video.h>
#include <asm/io.h>
#include <asm/armv7m.h>
#include <asm/arch/stm32.h>
@@ -153,5 +157,10 @@ int board_init(void)
STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL;
#endif
+#if defined(CONFIG_CMD_BMP)
+ bmp_display((ulong)stmicroelectronics_uboot_logo_8bit_rle,
+ BMP_ALIGN_CENTER, BMP_ALIGN_CENTER);
+#endif /* CONFIG_CMD_BMP */
+
return 0;
}