ppc: Cleanup get_effective_memsize() use
authorMarian Balakowicz <m8@semihalf.com>
Wed, 7 May 2008 11:08:54 +0000 (13:08 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 9 May 2008 22:14:33 +0000 (00:14 +0200)
Removed duplicated effective memory size calculation code.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
lib_ppc/board.c

index 1b8a8721a3e4e0f08b1b7f35d8697f37742272dc..4956403cce8d1439dbd5f41fd10fede6021a107a 100644 (file)
@@ -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