diff options
Diffstat (limited to 'arch/blackfin/mm/init.c')
-rw-r--r-- | arch/blackfin/mm/init.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c index ec3141fefd20..4aab21f44096 100644 --- a/arch/blackfin/mm/init.c +++ b/arch/blackfin/mm/init.c | |||
@@ -164,11 +164,14 @@ void __init mem_init(void) | |||
164 | "(%uk init code, %uk kernel code, %uk data, %uk dma, %uk reserved)\n", | 164 | "(%uk init code, %uk kernel code, %uk data, %uk dma, %uk reserved)\n", |
165 | (unsigned long) freepages << (PAGE_SHIFT-10), _ramend >> 10, | 165 | (unsigned long) freepages << (PAGE_SHIFT-10), _ramend >> 10, |
166 | initk, codek, datak, DMA_UNCACHED_REGION >> 10, (reservedpages << (PAGE_SHIFT-10))); | 166 | initk, codek, datak, DMA_UNCACHED_REGION >> 10, (reservedpages << (PAGE_SHIFT-10))); |
167 | } | ||
168 | |||
169 | static int __init sram_init(void) | ||
170 | { | ||
171 | unsigned long tmp; | ||
167 | 172 | ||
168 | /* Initialize the blackfin L1 Memory. */ | 173 | /* Initialize the blackfin L1 Memory. */ |
169 | l1sram_init(); | 174 | bfin_sram_init(); |
170 | l1_data_sram_init(); | ||
171 | l1_inst_sram_init(); | ||
172 | 175 | ||
173 | /* Allocate this once; never free it. We assume this gives us a | 176 | /* Allocate this once; never free it. We assume this gives us a |
174 | pointer to the start of L1 scratchpad memory; panic if it | 177 | pointer to the start of L1 scratchpad memory; panic if it |
@@ -179,7 +182,10 @@ void __init mem_init(void) | |||
179 | tmp, (unsigned long)L1_SCRATCH_TASK_INFO); | 182 | tmp, (unsigned long)L1_SCRATCH_TASK_INFO); |
180 | panic("No L1, time to give up\n"); | 183 | panic("No L1, time to give up\n"); |
181 | } | 184 | } |
185 | |||
186 | return 0; | ||
182 | } | 187 | } |
188 | pure_initcall(sram_init); | ||
183 | 189 | ||
184 | static void __init free_init_pages(const char *what, unsigned long begin, unsigned long end) | 190 | static void __init free_init_pages(const char *what, unsigned long begin, unsigned long end) |
185 | { | 191 | { |