Commit f529350f authored by Alexander Potashev's avatar Alexander Potashev
Browse files

RT106080. stm-som: Enable LCD splashscreen on STM-SOM

parent a9240c8a
......@@ -311,6 +311,61 @@
*/
#define CONFIG_MONITOR_IS_IN_RAM 1
/*
* Framebuffer configuration
*/
#define CONFIG_LCD
#ifdef CONFIG_LCD
#define CONFIG_DMAMEM_TAG
#if defined(CONFIG_DMAMEM_TAG)
/* Memory for framebuffer: 32-bit 480x272 */
#define CONFIG_DMAMEM_SZ_ALL 0x80000
#define CONFIG_DMAMEM_SZ_FB CONFIG_DMAMEM_SZ_ALL
#define CONFIG_DMAMEM_BASE (CONFIG_SYS_RAM_BASE + \
(CONFIG_SYS_RAM_SIZE / 2) - \
CONFIG_DMAMEM_SZ_ALL)
#define CONFIG_FB_ADDR CONFIG_DMAMEM_BASE
#endif /* CONFIG_DMAMEM_TAG */
#define CONFIG_VIDEO_STM32F4_LTDC
#define CONFIG_STM32_LTDC_PIXCLK (9 * 1000 * 1000)
#define LCD_EMCRAFT_IOT_LCD
#define CONFIG_SPLASH_SCREEN
#define CONFIG_SPLASH_SCREEN_ALIGN
#define CONFIG_SETUP_VIDEOLFB_TAG
#define CONFIG_SETUP_MTDSPLASHPART_TAG
#define CONFIG_MTD_SPLASH_PART_START 0x40000
#define CONFIG_MTD_SPLASH_PART_LEN 0x80000
#define CONFIG_BMP
#undef CONFIG_CMD_BMP
#define CONFIG_BMP_24BPP
#define LCD_BPP LCD_COLOR32
#ifdef LCD_EMCRAFT_IOT_LCD
# define CONFIG_STM32F4_LTDC_XRES 480
# define CONFIG_STM32F4_LTDC_YRES 272
# define CONFIG_STM32F4_LTDC_BPP LCD_BPP
# define CONFIG_STM32F4_LTDC_LEFT_MARGIN 2
# define CONFIG_STM32F4_LTDC_HSYNC_LEN 41
# define CONFIG_STM32F4_LTDC_RIGHT_MARGIN 2
# define CONFIG_STM32F4_LTDC_UPPER_MARGIN 2
# define CONFIG_STM32F4_LTDC_VSYNC_LEN 10
# define CONFIG_STM32F4_LTDC_LOWER_MARGIN 2
#elif defined(CONFIG_VIDEO_STM32F4_LTDC)
# error "STM32F4x9 LTDC is enabled but no LCD configured"
#endif
#endif /* CONFIG_LCD */
/*
* Enable all those monitor commands that are needed
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment