Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6997/1: ep93xx: increase NR_BANKS to 16 for support of 128MB RAM

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>

authored by

Petr Štetiar and committed by
Russell King
24daa15a 140d5dc1

+5 -1
+5 -1
arch/arm/include/asm/setup.h
··· 192 192 /* 193 193 * Memory map description 194 194 */ 195 - #define NR_BANKS 8 195 + #ifdef CONFIG_ARCH_EP93XX 196 + # define NR_BANKS 16 197 + #else 198 + # define NR_BANKS 8 199 + #endif 196 200 197 201 struct membank { 198 202 phys_addr_t start;