Commit 208a2587 authored by Sergei Miroshnichenko's avatar Sergei Miroshnichenko

RM#1054 config: stm32f769i: Set up DMA area and LCD

Orise Tech OTM8009A LCD: MB1166 board from the STM32F769I-DISCO kit.
parent ef31bb48
......@@ -140,13 +140,11 @@
* Note, SZ_ALL must be power of 2 (to program MPU correctly)!
*/
#define CONFIG_DMAMEM
#if defined(CONFIG_DMAMEM)
# define CONFIG_DMAMEM_SZ_ALL (1 << 20) /* 1MB */
# define CONFIG_DMAMEM_SZ_FB (640 * 1024)
# define CONFIG_DMAMEM_SZ_ALL (1 << 21) /* 2MB */
# define CONFIG_DMAMEM_SZ_FB (CONFIG_STM32F4_LTDC_XRES * CONFIG_STM32F4_LTDC_YRES * 4)
# define CONFIG_DMAMEM_BASE (CONFIG_SYS_RAM_BASE + \
(CONFIG_SYS_RAM_SIZE / 2) - \
CONFIG_DMAMEM_SZ_ALL)
#endif
#define CONFIG_ARMCORTEXM3_SOC_INIT
......@@ -271,7 +269,24 @@
*/
#define CONFIG_MONITOR_IS_IN_RAM 1
#undef CONFIG_LCD
#define CONFIG_LCD
#define CONFIG_STM32_LTDC_PIXCLK (27333 * 1000)
#define CONFIG_FB_ADDR CONFIG_DMAMEM_BASE
#define CONFIG_VIDEO_STM32F4_LTDC
#define LCD_BPP LCD_COLOR32
# define CONFIG_STM32F4_LTDC_XRES 800
# define CONFIG_STM32F4_LTDC_YRES 480
# 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
/*
* 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