mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Blackfin: support boards with no external memory
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -92,7 +92,11 @@
|
||||
# define CONFIG_SYS_MAX_RAM_SIZE (CONFIG_MEM_SIZE * 1024 * 1024)
|
||||
#endif
|
||||
#ifndef CONFIG_SYS_MONITOR_BASE
|
||||
# define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_MAX_RAM_SIZE - CONFIG_SYS_MONITOR_LEN)
|
||||
# if CONFIG_SYS_MAX_RAM_SIZE
|
||||
# define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_MAX_RAM_SIZE - CONFIG_SYS_MONITOR_LEN)
|
||||
# else
|
||||
# define CONFIG_SYS_MONITOR_BASE 0
|
||||
# endif
|
||||
#endif
|
||||
#ifndef CONFIG_SYS_MALLOC_BASE
|
||||
# define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
|
||||
@@ -114,7 +118,8 @@
|
||||
#endif
|
||||
|
||||
/* Check to make sure everything fits in external RAM */
|
||||
#if ((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) > CONFIG_SYS_MAX_RAM_SIZE)
|
||||
#if CONFIG_SYS_MAX_RAM_SIZE && \
|
||||
((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) > CONFIG_SYS_MAX_RAM_SIZE)
|
||||
# error Memory Map does not fit into configuration
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user