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>
This commit is contained in:
parent
455141636f
commit
92eac5848f
3 changed files with 3286 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -79,4 +79,14 @@
|
|||
#endif
|
||||
/* For SPL ends */
|
||||
|
||||
/* For splashcreen */
|
||||
#ifdef CONFIG_DM_VIDEO
|
||||
#define CONFIG_VIDEO_BMP_RLE8
|
||||
#define CONFIG_BMP_16BPP
|
||||
#define CONFIG_BMP_24BPP
|
||||
#define CONFIG_BMP_32BPP
|
||||
#define CONFIG_SPLASH_SCREEN
|
||||
#define CONFIG_SPLASH_SCREEN_ALIGN
|
||||
#endif
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
|
3267
include/st_logo_data.h
Normal file
3267
include/st_logo_data.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue