diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-05-07 13:08:54 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-10 00:14:33 +0200 |
commit | c59518e15949b3403df5c5b0c2c48ea0e5bea24b (patch) | |
tree | 97ecc044caaeaba7ddde166ab82273d22ab59f38 /lib_ppc/board.c | |
parent | 273c37d843d5b581090378016cd12dd9c586907b (diff) |
ppc: Cleanup get_effective_memsize() use
Removed duplicated effective memory size calculation code.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r-- | lib_ppc/board.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 1b8a8721a3..4956403cce 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -453,18 +453,7 @@ void board_init_f (ulong bootflag) */ gd->ram_size -= CFG_MEM_TOP_HIDE; -#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(); -#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 #ifndef CONFIG_ALT_LB_ADDR |