diff options
Diffstat (limited to 'arch/arm/plat-omap/sram.c')
-rw-r--r-- | arch/arm/plat-omap/sram.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index b7bf09b1b412..e75718301b0f 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -11,7 +11,6 @@ | |||
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/config.h> | ||
15 | #include <linux/module.h> | 14 | #include <linux/module.h> |
16 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
17 | #include <linux/init.h> | 16 | #include <linux/init.h> |
@@ -158,14 +157,12 @@ static struct map_desc omap_sram_io_desc[] __initdata = { | |||
158 | { /* .length gets filled in at runtime */ | 157 | { /* .length gets filled in at runtime */ |
159 | .virtual = OMAP1_SRAM_VA, | 158 | .virtual = OMAP1_SRAM_VA, |
160 | .pfn = __phys_to_pfn(OMAP1_SRAM_PA), | 159 | .pfn = __phys_to_pfn(OMAP1_SRAM_PA), |
161 | .type = MT_DEVICE | 160 | .type = MT_MEMORY |
162 | } | 161 | } |
163 | }; | 162 | }; |
164 | 163 | ||
165 | /* | 164 | /* |
166 | * In order to use last 2kB of SRAM on 1611b, we must round the size | 165 | * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early. |
167 | * up to multiple of PAGE_SIZE. We cannot use ioremap for SRAM, as | ||
168 | * clock init needs SRAM early. | ||
169 | */ | 166 | */ |
170 | void __init omap_map_sram(void) | 167 | void __init omap_map_sram(void) |
171 | { | 168 | { |
@@ -185,8 +182,7 @@ void __init omap_map_sram(void) | |||
185 | omap_sram_io_desc[0].pfn = __phys_to_pfn(base); | 182 | omap_sram_io_desc[0].pfn = __phys_to_pfn(base); |
186 | } | 183 | } |
187 | 184 | ||
188 | omap_sram_io_desc[0].length = (omap_sram_size + PAGE_SIZE-1)/PAGE_SIZE; | 185 | omap_sram_io_desc[0].length = 1024 * 1024; /* Use section desc */ |
189 | omap_sram_io_desc[0].length *= PAGE_SIZE; | ||
190 | iotable_init(omap_sram_io_desc, ARRAY_SIZE(omap_sram_io_desc)); | 186 | iotable_init(omap_sram_io_desc, ARRAY_SIZE(omap_sram_io_desc)); |
191 | 187 | ||
192 | printk(KERN_INFO "SRAM: Mapped pa 0x%08lx to va 0x%08lx size: 0x%lx\n", | 188 | printk(KERN_INFO "SRAM: Mapped pa 0x%08lx to va 0x%08lx size: 0x%lx\n", |