提交 ee93916e 编写于 作者: R Russell King 提交者: Russell King

[ARM] mm: switch SA1100 to use sparsemem

Tested on Assabet, and Assabet with Neponset's SDRAM at 3328M phys.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 07f841b7
...@@ -479,9 +479,7 @@ config ARCH_RPC ...@@ -479,9 +479,7 @@ config ARCH_RPC
config ARCH_SA1100 config ARCH_SA1100
bool "SA1100-based" bool "SA1100-based"
select ISA select ISA
select ARCH_DISCONTIGMEM_ENABLE
select ARCH_SPARSEMEM_ENABLE select ARCH_SPARSEMEM_ENABLE
select ARCH_SELECT_MEMORY_MODEL
select ARCH_MTD_XIP select ARCH_MTD_XIP
select GENERIC_GPIO select GENERIC_GPIO
select GENERIC_TIME select GENERIC_TIME
......
...@@ -41,22 +41,20 @@ void sa1111_adjust_zones(int node, unsigned long *size, unsigned long *holes); ...@@ -41,22 +41,20 @@ void sa1111_adjust_zones(int node, unsigned long *size, unsigned long *holes);
/* /*
* Because of the wide memory address space between physical RAM banks on the * Because of the wide memory address space between physical RAM banks on the
* SA1100, it's much convenient to use Linux's NUMA support to implement our * SA1100, it's much convenient to use Linux's SparseMEM support to implement
* memory map representation. Assuming all memory nodes have equal access * our memory map representation. Assuming all memory nodes have equal access
* characteristics, we then have generic discontiguous memory support. * characteristics, we then have generic discontiguous memory support.
* *
* Of course, all this isn't mandatory for SA1100 implementations with only * The sparsemem banks are matched with the physical memory bank addresses
* one used memory bank. For those, simply undefine CONFIG_DISCONTIGMEM. * which are incidentally the same as virtual addresses.
*
* The nodes are matched with the physical memory bank addresses which are
* incidentally the same as virtual addresses.
* *
* node 0: 0xc0000000 - 0xc7ffffff * node 0: 0xc0000000 - 0xc7ffffff
* node 1: 0xc8000000 - 0xcfffffff * node 1: 0xc8000000 - 0xcfffffff
* node 2: 0xd0000000 - 0xd7ffffff * node 2: 0xd0000000 - 0xd7ffffff
* node 3: 0xd8000000 - 0xdfffffff * node 3: 0xd8000000 - 0xdfffffff
*/ */
#define NODE_MEM_SIZE_BITS 27 #define MAX_PHYSMEM_BITS 32
#define SECTION_SIZE_BITS 27
/* /*
* Cache flushing area - SA1100 zero bank * Cache flushing area - SA1100 zero bank
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册