ARM: 6997/1: ep93xx: increase NR_BANKS to 16 for support of 128MB RAM
authorPetr Štetiar <ynezz@true.cz>
Sat, 9 Jul 2011 13:18:36 +0000 (14:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 22 Jul 2011 09:16:27 +0000 (10:16 +0100)
I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
init code complains about small NR_BANKS number and only lower 64MB is
accessible.

Cc: Ryan Mallon <ryan@bluewatersys.com>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/setup.h

index ee2ad8ae07af7d4006d82a474cb2282654cb986a..b13720d2c98a21278075a015d40144b7beca4800 100644 (file)
@@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
 /*
  * Memory map description
  */
-#define NR_BANKS 8
+#ifdef CONFIG_ARCH_EP93XX
+# define NR_BANKS 16
+#else
+# define NR_BANKS 8
+#endif
 
 struct membank {
        phys_addr_t start;
This page took 0.036217 seconds and 5 git commands to generate.