diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-07-12 02:19:04 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-05 05:31:00 -0400 |
commit | 9c8dc1a88c760ec121a260afc9583ec9239497ef (patch) | |
tree | 52ce5661f9490d4a045e4d1c7f94fcbb80edd76f /arch | |
parent | ab7a3379f5f9e760e4b7421fdf28d829bfba73aa (diff) |
ARM: S5PV210: Fix on MAX_PHYSMEM_BITS on S5PV210/S5PC110.
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/memory.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-s5pv210/include/mach/memory.h b/arch/arm/mach-s5pv210/include/mach/memory.h index 379117e27600..d503e0c4ce4f 100644 --- a/arch/arm/mach-s5pv210/include/mach/memory.h +++ b/arch/arm/mach-s5pv210/include/mach/memory.h | |||
@@ -16,8 +16,13 @@ | |||
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PHYS_OFFSET UL(0x20000000) |
17 | #define CONSISTENT_DMA_SIZE (SZ_8M + SZ_4M + SZ_2M) | 17 | #define CONSISTENT_DMA_SIZE (SZ_8M + SZ_4M + SZ_2M) |
18 | 18 | ||
19 | /* Maximum of 256MiB in one bank */ | 19 | /* |
20 | #define MAX_PHYSMEM_BITS 32 | 20 | * Sparsemem support |
21 | * Physical memory can be located from 0x20000000 to 0x7fffffff, | ||
22 | * so MAX_PHYSMEM_BITS is 31. | ||
23 | */ | ||
24 | |||
25 | #define MAX_PHYSMEM_BITS 31 | ||
21 | #define SECTION_SIZE_BITS 28 | 26 | #define SECTION_SIZE_BITS 28 |
22 | 27 | ||
23 | #endif /* __ASM_ARCH_MEMORY_H */ | 28 | #endif /* __ASM_ARCH_MEMORY_H */ |