|
|
|
[PATCH 1/1] arm pxa: enable defining 1-Gbyte memory map layout for PXA27x. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Signed-off-by: Rodolfo Giometti <giometti@xxxxxxxx> --- arch/arm/mach-pxa/Kconfig | 6 ++++++ arch/arm/mach-pxa/include/mach/memory.h | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 8eea730..212ff7d 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -421,6 +421,12 @@ config PXA3xx help Select code specific to PXA3xx variants +config ARCH_PXA_1GB_MMAP + bool + depends on PXA27x + help + Select PXA27x 1-Gbyte memory map + config PXA_SHARP_C7xx bool select PXA_SSP diff --git a/arch/arm/mach-pxa/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h index f626730..c5c2c71 100644 --- a/arch/arm/mach-pxa/include/mach/memory.h +++ b/arch/arm/mach-pxa/include/mach/memory.h @@ -17,6 +17,22 @@ */ #define PHYS_OFFSET UL(0xa0000000) +#ifdef CONFIG_ARCH_PXA_1GB_MMAP + +/* + * The nodes are matched with the physical SDRAM banks as follows: + * + * node 0: 0x80000000-0x8fffffff --> 0xa0000000-0xafffffff + * node 1: 0x90000000-0x9fffffff --> 0xb0000000-0xbfffffff + * node 2: 0xa0000000-0xafffffff --> 0xc0000000-0xcfffffff + * node 3: 0xb0000000-0xbfffffff --> 0xd0000000-0xdfffffff + * + * This needs a node mem size of 28 bits. + */ +#define NODE_MEM_SIZE_BITS 28 + +#else + /* * The nodes are matched with the physical SDRAM banks as follows: * @@ -29,6 +45,8 @@ */ #define NODE_MEM_SIZE_BITS 26 +#endif + #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) void cmx2xx_pci_adjust_zones(int node, unsigned long *size, unsigned long *holes); -- 1.5.6.3 ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |