]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: S5PV210: Fix on MAX_PHYSMEM_BITS on S5PV210/S5PC110.
authorKukjin Kim <kgene.kim@samsung.com>
Mon, 12 Jul 2010 06:19:04 +0000 (15:19 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 5 Aug 2010 09:31:00 +0000 (18:31 +0900)
This patch fixes on MAX_PHYSMEM_BITS for Sparsemem on S5PV210/S5PC110.
Because physical memory can be located from 0x20000000 to 0x7fffffff,
so MAX_PHYSMEM_BITS is 31 and not 32.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5pv210/include/mach/memory.h

index 379117e2760094d9a4d8241bcc811785b001b874..d503e0c4ce4f24cb22be05543674f03902d78755 100644 (file)
 #define PHYS_OFFSET            UL(0x20000000)
 #define CONSISTENT_DMA_SIZE    (SZ_8M + SZ_4M + SZ_2M)
 
-/* Maximum of 256MiB in one bank */
-#define MAX_PHYSMEM_BITS       32
+/*
+ * Sparsemem support
+ * Physical memory can be located from 0x20000000 to 0x7fffffff,
+ * so MAX_PHYSMEM_BITS is 31.
+ */
+
+#define MAX_PHYSMEM_BITS       31
 #define SECTION_SIZE_BITS      28
 
 #endif /* __ASM_ARCH_MEMORY_H */