diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-07 12:40:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-16 05:57:35 -0400 |
commit | be370302742ff9948f2a42b15cb2ba174d97b930 (patch) | |
tree | 977bfa71c1e1483c22a40d85dfd3b233e5ac5d06 /arch/arm/mach-pxa | |
parent | 7961239599de71130c852ecfa9a4140f3f60547b (diff) |
ARM: Remove DISCONTIGMEM support
Everything should now be using sparsemem rather than discontigmem, so
remove the code supporting discontigmem from ARM.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/eseries.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/generic.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/memory.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 1 |
7 files changed, 1 insertions, 19 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 3d1dcb9ac08f..95234fb4fcf8 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -715,7 +715,6 @@ static void __init fixup_corgi(struct machine_desc *desc, | |||
715 | sharpsl_save_param(); | 715 | sharpsl_save_param(); |
716 | mi->nr_banks=1; | 716 | mi->nr_banks=1; |
717 | mi->bank[0].start = 0xa0000000; | 717 | mi->bank[0].start = 0xa0000000; |
718 | mi->bank[0].node = 0; | ||
719 | if (machine_is_corgi()) | 718 | if (machine_is_corgi()) |
720 | mi->bank[0].size = (32*1024*1024); | 719 | mi->bank[0].size = (32*1024*1024); |
721 | else | 720 | else |
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index 96ed13081639..a0ab3082a000 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -34,7 +34,6 @@ void __init eseries_fixup(struct machine_desc *desc, | |||
34 | { | 34 | { |
35 | mi->nr_banks=1; | 35 | mi->nr_banks=1; |
36 | mi->bank[0].start = 0xa0000000; | 36 | mi->bank[0].start = 0xa0000000; |
37 | mi->bank[0].node = 0; | ||
38 | if (machine_is_e800()) | 37 | if (machine_is_e800()) |
39 | mi->bank[0].size = (128*1024*1024); | 38 | mi->bank[0].size = (128*1024*1024); |
40 | else | 39 | else |
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index 890fb90a672f..c6305c5b8a72 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h | |||
@@ -26,8 +26,7 @@ extern unsigned int get_clk_frequency_khz(int info); | |||
26 | 26 | ||
27 | #define SET_BANK(__nr,__start,__size) \ | 27 | #define SET_BANK(__nr,__start,__size) \ |
28 | mi->bank[__nr].start = (__start), \ | 28 | mi->bank[__nr].start = (__start), \ |
29 | mi->bank[__nr].size = (__size), \ | 29 | mi->bank[__nr].size = (__size) |
30 | mi->bank[__nr].node = (((unsigned)(__start) - PHYS_OFFSET) >> 27) | ||
31 | 30 | ||
32 | #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) | 31 | #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) |
33 | 32 | ||
diff --git a/arch/arm/mach-pxa/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h index f626730ee42e..81fd4a081c82 100644 --- a/arch/arm/mach-pxa/include/mach/memory.h +++ b/arch/arm/mach-pxa/include/mach/memory.h | |||
@@ -17,18 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | #define PHYS_OFFSET UL(0xa0000000) | 18 | #define PHYS_OFFSET UL(0xa0000000) |
19 | 19 | ||
20 | /* | ||
21 | * The nodes are matched with the physical SDRAM banks as follows: | ||
22 | * | ||
23 | * node 0: 0xa0000000-0xa3ffffff --> 0xc0000000-0xc3ffffff | ||
24 | * node 1: 0xa4000000-0xa7ffffff --> 0xc4000000-0xc7ffffff | ||
25 | * node 2: 0xa8000000-0xabffffff --> 0xc8000000-0xcbffffff | ||
26 | * node 3: 0xac000000-0xafffffff --> 0xcc000000-0xcfffffff | ||
27 | * | ||
28 | * This needs a node mem size of 26 bits. | ||
29 | */ | ||
30 | #define NODE_MEM_SIZE_BITS 26 | ||
31 | |||
32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) | 20 | #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) |
33 | void cmx2xx_pci_adjust_zones(int node, unsigned long *size, | 21 | void cmx2xx_pci_adjust_zones(int node, unsigned long *size, |
34 | unsigned long *holes); | 22 | unsigned long *holes); |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index f4abdaafdac4..bc2758b54446 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -463,7 +463,6 @@ static void __init fixup_poodle(struct machine_desc *desc, | |||
463 | sharpsl_save_param(); | 463 | sharpsl_save_param(); |
464 | mi->nr_banks=1; | 464 | mi->nr_banks=1; |
465 | mi->bank[0].start = 0xa0000000; | 465 | mi->bank[0].start = 0xa0000000; |
466 | mi->bank[0].node = 0; | ||
467 | mi->bank[0].size = (32*1024*1024); | 466 | mi->bank[0].size = (32*1024*1024); |
468 | } | 467 | } |
469 | 468 | ||
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index c1048a35f187..51756c723557 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -847,7 +847,6 @@ static void __init fixup_spitz(struct machine_desc *desc, | |||
847 | sharpsl_save_param(); | 847 | sharpsl_save_param(); |
848 | mi->nr_banks = 1; | 848 | mi->nr_banks = 1; |
849 | mi->bank[0].start = 0xa0000000; | 849 | mi->bank[0].start = 0xa0000000; |
850 | mi->bank[0].node = 0; | ||
851 | mi->bank[0].size = (64*1024*1024); | 850 | mi->bank[0].size = (64*1024*1024); |
852 | } | 851 | } |
853 | 852 | ||
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 7512b822c6ca..83cc3a18c2e9 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -948,7 +948,6 @@ static void __init fixup_tosa(struct machine_desc *desc, | |||
948 | sharpsl_save_param(); | 948 | sharpsl_save_param(); |
949 | mi->nr_banks=1; | 949 | mi->nr_banks=1; |
950 | mi->bank[0].start = 0xa0000000; | 950 | mi->bank[0].start = 0xa0000000; |
951 | mi->bank[0].node = 0; | ||
952 | mi->bank[0].size = (64*1024*1024); | 951 | mi->bank[0].size = (64*1024*1024); |
953 | } | 952 | } |
954 | 953 | ||