Skip to content
Snippets Groups Projects
Commit 9c666a7d authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

ppc: Allow boards to specify how much memory they can map


For historical reasons we limited the stack to 256M because some boards
could only map that much via BATS.  However newer boards are capable of
mapping more memory (for example 85xx is capble of doing up to 2G).

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent a6f5f317
No related branches found
No related tags found
No related merge requests found
...@@ -433,7 +433,18 @@ void board_init_f (ulong bootflag) ...@@ -433,7 +433,18 @@ void board_init_f (ulong bootflag)
*/ */
len = (ulong)&_end - CFG_MONITOR_BASE; len = (ulong)&_end - CFG_MONITOR_BASE;
#ifndef CONFIG_MAX_MEM_MAPPED
#define CONFIG_MAX_MEM_MAPPED (256 << 20)
#endif
#ifndef CONFIG_VERY_BIG_RAM
addr = CFG_SDRAM_BASE + get_effective_memsize(); addr = CFG_SDRAM_BASE + get_effective_memsize();
#else
/* only allow stack below 256M */
addr = CFG_SDRAM_BASE +
(gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
CONFIG_MAX_MEM_MAPPED : get_effective_memsize();
#endif
#ifdef CONFIG_LOGBUFFER #ifdef CONFIG_LOGBUFFER
#ifndef CONFIG_ALT_LB_ADDR #ifndef CONFIG_ALT_LB_ADDR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment