diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-06-23 12:25:30 -0400 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-07-07 10:31:10 -0400 |
commit | f58d59f6c59397b8a1381207c58189034b904879 (patch) | |
tree | 4e51bc29707110bd2aca7f049f265219cb79b389 /arch/arm/mm/proc-sa1100.S | |
parent | 5973ba5886366bbcc7c911911d151b9ae13f2edb (diff) |
ARM: mm: proc-sa1100: Use the new processor struct macros
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'arch/arm/mm/proc-sa1100.S')
-rw-r--r-- | arch/arm/mm/proc-sa1100.S | 84 |
1 files changed, 17 insertions, 67 deletions
diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index 184a9c997e36..c7e08cab55a8 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S | |||
@@ -236,59 +236,28 @@ sa1100_crval: | |||
236 | __INITDATA | 236 | __INITDATA |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * Purpose : Function pointers used to access above functions - all calls | ||
240 | * come through these | ||
241 | */ | ||
242 | |||
243 | /* | ||
244 | * SA1100 and SA1110 share the same function calls | 239 | * SA1100 and SA1110 share the same function calls |
245 | */ | 240 | */ |
246 | .type sa1100_processor_functions, #object | ||
247 | ENTRY(sa1100_processor_functions) | ||
248 | .word v4_early_abort | ||
249 | .word legacy_pabort | ||
250 | .word cpu_sa1100_proc_init | ||
251 | .word cpu_sa1100_proc_fin | ||
252 | .word cpu_sa1100_reset | ||
253 | .word cpu_sa1100_do_idle | ||
254 | .word cpu_sa1100_dcache_clean_area | ||
255 | .word cpu_sa1100_switch_mm | ||
256 | .word cpu_sa1100_set_pte_ext | ||
257 | .word cpu_sa1100_suspend_size | ||
258 | .word cpu_sa1100_do_suspend | ||
259 | .word cpu_sa1100_do_resume | ||
260 | .size sa1100_processor_functions, . - sa1100_processor_functions | ||
261 | |||
262 | .section ".rodata" | ||
263 | |||
264 | .type cpu_arch_name, #object | ||
265 | cpu_arch_name: | ||
266 | .asciz "armv4" | ||
267 | .size cpu_arch_name, . - cpu_arch_name | ||
268 | 241 | ||
269 | .type cpu_elf_name, #object | 242 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) |
270 | cpu_elf_name: | 243 | define_processor_functions sa1100, dabort=v4_early_abort, pabort=legacy_pabort, suspend=1 |
271 | .asciz "v4" | ||
272 | .size cpu_elf_name, . - cpu_elf_name | ||
273 | 244 | ||
274 | .type cpu_sa1100_name, #object | 245 | .section ".rodata" |
275 | cpu_sa1100_name: | ||
276 | .asciz "StrongARM-1100" | ||
277 | .size cpu_sa1100_name, . - cpu_sa1100_name | ||
278 | 246 | ||
279 | .type cpu_sa1110_name, #object | 247 | string cpu_arch_name, "armv4" |
280 | cpu_sa1110_name: | 248 | string cpu_elf_name, "v4" |
281 | .asciz "StrongARM-1110" | 249 | string cpu_sa1100_name, "StrongARM-1100" |
282 | .size cpu_sa1110_name, . - cpu_sa1110_name | 250 | string cpu_sa1110_name, "StrongARM-1110" |
283 | 251 | ||
284 | .align | 252 | .align |
285 | 253 | ||
286 | .section ".proc.info.init", #alloc, #execinstr | 254 | .section ".proc.info.init", #alloc, #execinstr |
287 | 255 | ||
288 | .type __sa1100_proc_info,#object | 256 | .macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req |
289 | __sa1100_proc_info: | 257 | .type __\name\()_proc_info,#object |
290 | .long 0x4401a110 | 258 | __\name\()_proc_info: |
291 | .long 0xfffffff0 | 259 | .long \cpu_val |
260 | .long \cpu_mask | ||
292 | .long PMD_TYPE_SECT | \ | 261 | .long PMD_TYPE_SECT | \ |
293 | PMD_SECT_BUFFERABLE | \ | 262 | PMD_SECT_BUFFERABLE | \ |
294 | PMD_SECT_CACHEABLE | \ | 263 | PMD_SECT_CACHEABLE | \ |
@@ -301,32 +270,13 @@ __sa1100_proc_info: | |||
301 | .long cpu_arch_name | 270 | .long cpu_arch_name |
302 | .long cpu_elf_name | 271 | .long cpu_elf_name |
303 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT | 272 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT |
304 | .long cpu_sa1100_name | 273 | .long \cpu_name |
305 | .long sa1100_processor_functions | 274 | .long sa1100_processor_functions |
306 | .long v4wb_tlb_fns | 275 | .long v4wb_tlb_fns |
307 | .long v4_mc_user_fns | 276 | .long v4_mc_user_fns |
308 | .long v4wb_cache_fns | 277 | .long v4wb_cache_fns |
309 | .size __sa1100_proc_info, . - __sa1100_proc_info | 278 | .size __\name\()_proc_info, . - __\name\()_proc_info |
279 | .endm | ||
310 | 280 | ||
311 | .type __sa1110_proc_info,#object | 281 | sa1100_proc_info sa1100, 0x4401a110, 0xfffffff0, cpu_sa1100_name |
312 | __sa1110_proc_info: | 282 | sa1100_proc_info sa1110, 0x6901b110, 0xfffffff0, cpu_sa1110_name |
313 | .long 0x6901b110 | ||
314 | .long 0xfffffff0 | ||
315 | .long PMD_TYPE_SECT | \ | ||
316 | PMD_SECT_BUFFERABLE | \ | ||
317 | PMD_SECT_CACHEABLE | \ | ||
318 | PMD_SECT_AP_WRITE | \ | ||
319 | PMD_SECT_AP_READ | ||
320 | .long PMD_TYPE_SECT | \ | ||
321 | PMD_SECT_AP_WRITE | \ | ||
322 | PMD_SECT_AP_READ | ||
323 | b __sa1100_setup | ||
324 | .long cpu_arch_name | ||
325 | .long cpu_elf_name | ||
326 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT | ||
327 | .long cpu_sa1110_name | ||
328 | .long sa1100_processor_functions | ||
329 | .long v4wb_tlb_fns | ||
330 | .long v4_mc_user_fns | ||
331 | .long v4wb_cache_fns | ||
332 | .size __sa1110_proc_info, . - __sa1110_proc_info | ||