Commit c808f9f0 authored by Sergei Poselenov's avatar Sergei Poselenov

RM 1375. STM32: Move DMA memory region to the end of RAM.

parent 31e468b5
......@@ -326,7 +326,7 @@
#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_SYS_RAM_SIZE - \
CONFIG_DMAMEM_SZ_ALL)
#define CONFIG_FB_ADDR CONFIG_DMAMEM_BASE
......
......@@ -125,7 +125,7 @@
# define CONFIG_DMAMEM_SZ_ALL (1 << 20) /* 1MB */
# define CONFIG_DMAMEM_SZ_FB (640 * 1024)
# define CONFIG_DMAMEM_BASE (CONFIG_SYS_RAM_BASE + \
(CONFIG_SYS_RAM_SIZE / 2) - \
CONFIG_SYS_RAM_SIZE - \
CONFIG_DMAMEM_SZ_ALL)
#endif
......
......@@ -149,7 +149,7 @@
# define CONFIG_DMAMEM_SZ_ALL (1 << 20) /* 1MB */
# define CONFIG_DMAMEM_SZ_FB (640 * 1024)
# define CONFIG_DMAMEM_BASE (CONFIG_SYS_RAM_BASE + \
(CONFIG_SYS_RAM_SIZE / 2) - \
CONFIG_SYS_RAM_SIZE - \
CONFIG_DMAMEM_SZ_ALL)
#endif
......
......@@ -143,7 +143,7 @@
# 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_SYS_RAM_SIZE - \
CONFIG_DMAMEM_SZ_ALL)
#define CONFIG_ARMCORTEXM3_SOC_INIT
......
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