diff options
Diffstat (limited to 'arch/arm/common/sa1111.c')
-rw-r--r-- | arch/arm/common/sa1111.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 39a6eea300a2..d0d6e6d2d649 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/io.h> | 32 | #include <asm/io.h> |
33 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
34 | #include <asm/mach/irq.h> | 34 | #include <asm/mach/irq.h> |
35 | #include <asm/sizes.h> | ||
35 | 36 | ||
36 | #include <asm/hardware/sa1111.h> | 37 | #include <asm/hardware/sa1111.h> |
37 | 38 | ||
@@ -132,6 +133,17 @@ static struct sa1111_dev_info sa1111_devices[] = { | |||
132 | }, | 133 | }, |
133 | }; | 134 | }; |
134 | 135 | ||
136 | void __init sa1111_adjust_zones(int node, unsigned long *size, unsigned long *holes) | ||
137 | { | ||
138 | unsigned int sz = SZ_1M >> PAGE_SHIFT; | ||
139 | |||
140 | if (node != 0) | ||
141 | sz = 0; | ||
142 | |||
143 | size[1] = size[0] - sz; | ||
144 | size[0] = sz; | ||
145 | } | ||
146 | |||
135 | /* | 147 | /* |
136 | * SA1111 interrupt support. Since clearing an IRQ while there are | 148 | * SA1111 interrupt support. Since clearing an IRQ while there are |
137 | * active IRQs causes the interrupt output to pulse, the upper levels | 149 | * active IRQs causes the interrupt output to pulse, the upper levels |