linux-mips
[Top] [All Lists]

[PATCH 1/3] MIPS: Alchemy: use 64MB RAM as minimum for devboards

To: Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 1/3] MIPS: Alchemy: use 64MB RAM as minimum for devboards
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Sat, 21 Jan 2012 18:13:13 +0100
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=uyHfO1ir7FPcevJpabYYStNy0PQ1TDoqyB13jamPHdg=; b=t6f4pEY6QUe0jgsdrPaC6cwjPzPivuLtd2lTbN9voUFyCJD5v0do1J8WrXiH9sf8P1 NeQ6Ke2XsfFM/gaN+/kLFc9eoCpHpd1eqMe0nbXcWH9mq3OI/nt+nD1d7mTqGYFq1EfL qd/jdEhm4C8CXzdEOyGGgpGilqcJTZ5KbQUoM=
In-reply-to: <1327165995-27425-1-git-send-email-manuel.lauss@googlemail.com>
References: <1327165995-27425-1-git-send-email-manuel.lauss@googlemail.com>
Sender: linux-mips-bounce@linux-mips.org
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>
---
 arch/mips/alchemy/devboards/prom.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/arch/mips/alchemy/devboards/prom.c 
b/arch/mips/alchemy/devboards/prom.c
index 93a2210..57320f2 100644
--- a/arch/mips/alchemy/devboards/prom.c
+++ b/arch/mips/alchemy/devboards/prom.c
@@ -33,15 +33,6 @@
 #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);
 }
-- 
1.7.8.4


<Prev in Thread] Current Thread [Next in Thread>