MIPS: Alchemy: use 64MB RAM as minimum for devboards
authorManuel Lauss <manuel.lauss@googlemail.com>
Sat, 21 Jan 2012 17:13:13 +0000 (18:13 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 23 Jul 2012 12:53:37 +0000 (13:53 +0100)
YAMON on all devboards provides the "memsize" envvar; in the unlikely
case that it can't be parsed just assume 64MB, which all boards have
at least.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3286/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/devboards/prom.c

index 93a22107cc41fc2d39fdf2c000ce25b47b84ead6..57320f205fc438787a77635987d484de6a2a4e3b 100644 (file)
 #include <asm/mach-au1x00/au1000.h>
 #include <prom.h>
 
-#if defined(CONFIG_MIPS_DB1000) || \
-    defined(CONFIG_MIPS_PB1100) || \
-    defined(CONFIG_MIPS_PB1500)
-#define ALCHEMY_BOARD_DEFAULT_MEMSIZE  0x04000000
-
-#else  /* Au1550/Au1200-based develboards */
-#define ALCHEMY_BOARD_DEFAULT_MEMSIZE  0x08000000
-#endif
-
 void __init prom_init(void)
 {
        unsigned char *memsize_str;
@@ -54,7 +45,7 @@ void __init prom_init(void)
        prom_init_cmdline();
        memsize_str = prom_getenv("memsize");
        if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize))
-               memsize = ALCHEMY_BOARD_DEFAULT_MEMSIZE;
+               memsize = 64 << 20; /* all devboards have at least 64MB RAM */
 
        add_memory_region(0, memsize, BOOT_MEM_RAM);
 }
This page took 0.026484 seconds and 5 git commands to generate.