proc-xscale.S 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. /*
  2. * linux/arch/arm/mm/proc-xscale.S
  3. *
  4. * Author: Nicolas Pitre
  5. * Created: November 2000
  6. * Copyright: (C) 2000, 2001 MontaVista Software Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * MMU functions for the Intel XScale CPUs
  13. *
  14. * 2001 Aug 21:
  15. * some contributions by Brett Gaines <brett.w.gaines@intel.com>
  16. * Copyright 2001 by Intel Corp.
  17. *
  18. * 2001 Sep 08:
  19. * Completely revisited, many important fixes
  20. * Nicolas Pitre <nico@cam.org>
  21. */
  22. #include <linux/linkage.h>
  23. #include <linux/init.h>
  24. #include <asm/assembler.h>
  25. #include <asm/procinfo.h>
  26. #include <asm/pgtable.h>
  27. #include <asm/pgtable-hwdef.h>
  28. #include <asm/page.h>
  29. #include <asm/ptrace.h>
  30. #include "proc-macros.S"
  31. /*
  32. * This is the maximum size of an area which will be flushed. If the area
  33. * is larger than this, then we flush the whole cache
  34. */
  35. #define MAX_AREA_SIZE 32768
  36. /*
  37. * the cache line size of the I and D cache
  38. */
  39. #define CACHELINESIZE 32
  40. /*
  41. * the size of the data cache
  42. */
  43. #define CACHESIZE 32768
  44. /*
  45. * Virtual address used to allocate the cache when flushed
  46. *
  47. * This must be an address range which is _never_ used. It should
  48. * apparently have a mapping in the corresponding page table for
  49. * compatibility with future CPUs that _could_ require it. For instance we
  50. * don't care.
  51. *
  52. * This must be aligned on a 2*CACHESIZE boundary. The code selects one of
  53. * the 2 areas in alternance each time the clean_d_cache macro is used.
  54. * Without this the XScale core exhibits cache eviction problems and no one
  55. * knows why.
  56. *
  57. * Reminder: the vector table is located at 0xffff0000-0xffff0fff.
  58. */
  59. #define CLEAN_ADDR 0xfffe0000
  60. /*
  61. * This macro is used to wait for a CP15 write and is needed
  62. * when we have to ensure that the last operation to the co-pro
  63. * was completed before continuing with operation.
  64. */
  65. .macro cpwait, rd
  66. mrc p15, 0, \rd, c2, c0, 0 @ arbitrary read of cp15
  67. mov \rd, \rd @ wait for completion
  68. sub pc, pc, #4 @ flush instruction pipeline
  69. .endm
  70. .macro cpwait_ret, lr, rd
  71. mrc p15, 0, \rd, c2, c0, 0 @ arbitrary read of cp15
  72. sub pc, \lr, \rd, LSR #32 @ wait for completion and
  73. @ flush instruction pipeline
  74. .endm
  75. /*
  76. * This macro cleans the entire dcache using line allocate.
  77. * The main loop has been unrolled to reduce loop overhead.
  78. * rd and rs are two scratch registers.
  79. */
  80. .macro clean_d_cache, rd, rs
  81. ldr \rs, =clean_addr
  82. ldr \rd, [\rs]
  83. eor \rd, \rd, #CACHESIZE
  84. str \rd, [\rs]
  85. add \rs, \rd, #CACHESIZE
  86. 1: mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  87. add \rd, \rd, #CACHELINESIZE
  88. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  89. add \rd, \rd, #CACHELINESIZE
  90. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  91. add \rd, \rd, #CACHELINESIZE
  92. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  93. add \rd, \rd, #CACHELINESIZE
  94. teq \rd, \rs
  95. bne 1b
  96. .endm
  97. .data
  98. clean_addr: .word CLEAN_ADDR
  99. .text
  100. /*
  101. * cpu_xscale_proc_init()
  102. *
  103. * Nothing too exciting at the moment
  104. */
  105. ENTRY(cpu_xscale_proc_init)
  106. mov pc, lr
  107. /*
  108. * cpu_xscale_proc_fin()
  109. */
  110. ENTRY(cpu_xscale_proc_fin)
  111. str lr, [sp, #-4]!
  112. mov r0, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  113. msr cpsr_c, r0
  114. bl xscale_flush_kern_cache_all @ clean caches
  115. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  116. bic r0, r0, #0x1800 @ ...IZ...........
  117. bic r0, r0, #0x0006 @ .............CA.
  118. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  119. ldr pc, [sp], #4
  120. /*
  121. * cpu_xscale_reset(loc)
  122. *
  123. * Perform a soft reset of the system. Put the CPU into the
  124. * same state as it would be if it had been reset, and branch
  125. * to what would be the reset vector.
  126. *
  127. * loc: location to jump to for soft reset
  128. */
  129. .align 5
  130. ENTRY(cpu_xscale_reset)
  131. mov r1, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  132. msr cpsr_c, r1 @ reset CPSR
  133. mrc p15, 0, r1, c1, c0, 0 @ ctrl register
  134. bic r1, r1, #0x0086 @ ........B....CA.
  135. bic r1, r1, #0x3900 @ ..VIZ..S........
  136. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  137. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches & BTB
  138. bic r1, r1, #0x0001 @ ...............M
  139. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  140. @ CAUTION: MMU turned off from this point. We count on the pipeline
  141. @ already containing those two last instructions to survive.
  142. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  143. mov pc, r0
  144. /*
  145. * cpu_xscale_do_idle()
  146. *
  147. * Cause the processor to idle
  148. *
  149. * For now we do nothing but go to idle mode for every case
  150. *
  151. * XScale supports clock switching, but using idle mode support
  152. * allows external hardware to react to system state changes.
  153. */
  154. .align 5
  155. ENTRY(cpu_xscale_do_idle)
  156. mov r0, #1
  157. mcr p14, 0, r0, c7, c0, 0 @ Go to IDLE
  158. mov pc, lr
  159. /* ================================= CACHE ================================ */
  160. /*
  161. * flush_user_cache_all()
  162. *
  163. * Invalidate all cache entries in a particular address
  164. * space.
  165. */
  166. ENTRY(xscale_flush_user_cache_all)
  167. /* FALLTHROUGH */
  168. /*
  169. * flush_kern_cache_all()
  170. *
  171. * Clean and invalidate the entire cache.
  172. */
  173. ENTRY(xscale_flush_kern_cache_all)
  174. mov r2, #VM_EXEC
  175. mov ip, #0
  176. __flush_whole_cache:
  177. clean_d_cache r0, r1
  178. tst r2, #VM_EXEC
  179. mcrne p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  180. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  181. mov pc, lr
  182. /*
  183. * flush_user_cache_range(start, end, vm_flags)
  184. *
  185. * Invalidate a range of cache entries in the specified
  186. * address space.
  187. *
  188. * - start - start address (may not be aligned)
  189. * - end - end address (exclusive, may not be aligned)
  190. * - vma - vma_area_struct describing address space
  191. */
  192. .align 5
  193. ENTRY(xscale_flush_user_cache_range)
  194. mov ip, #0
  195. sub r3, r1, r0 @ calculate total size
  196. cmp r3, #MAX_AREA_SIZE
  197. bhs __flush_whole_cache
  198. 1: tst r2, #VM_EXEC
  199. mcrne p15, 0, r0, c7, c5, 1 @ Invalidate I cache line
  200. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  201. mcr p15, 0, r0, c7, c6, 1 @ Invalidate D cache line
  202. add r0, r0, #CACHELINESIZE
  203. cmp r0, r1
  204. blo 1b
  205. tst r2, #VM_EXEC
  206. mcrne p15, 0, ip, c7, c5, 6 @ Invalidate BTB
  207. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  208. mov pc, lr
  209. /*
  210. * coherent_kern_range(start, end)
  211. *
  212. * Ensure coherency between the Icache and the Dcache in the
  213. * region described by start. If you have non-snooping
  214. * Harvard caches, you need to implement this function.
  215. *
  216. * - start - virtual start address
  217. * - end - virtual end address
  218. *
  219. * Note: single I-cache line invalidation isn't used here since
  220. * it also trashes the mini I-cache used by JTAG debuggers.
  221. */
  222. ENTRY(xscale_coherent_kern_range)
  223. bic r0, r0, #CACHELINESIZE - 1
  224. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  225. add r0, r0, #CACHELINESIZE
  226. cmp r0, r1
  227. blo 1b
  228. mov r0, #0
  229. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  230. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  231. mov pc, lr
  232. /*
  233. * coherent_user_range(start, end)
  234. *
  235. * Ensure coherency between the Icache and the Dcache in the
  236. * region described by start. If you have non-snooping
  237. * Harvard caches, you need to implement this function.
  238. *
  239. * - start - virtual start address
  240. * - end - virtual end address
  241. */
  242. ENTRY(xscale_coherent_user_range)
  243. bic r0, r0, #CACHELINESIZE - 1
  244. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  245. mcr p15, 0, r0, c7, c5, 1 @ Invalidate I cache entry
  246. add r0, r0, #CACHELINESIZE
  247. cmp r0, r1
  248. blo 1b
  249. mov r0, #0
  250. mcr p15, 0, r0, c7, c5, 6 @ Invalidate BTB
  251. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  252. mov pc, lr
  253. /*
  254. * flush_kern_dcache_page(void *page)
  255. *
  256. * Ensure no D cache aliasing occurs, either with itself or
  257. * the I cache
  258. *
  259. * - addr - page aligned address
  260. */
  261. ENTRY(xscale_flush_kern_dcache_page)
  262. add r1, r0, #PAGE_SZ
  263. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  264. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  265. add r0, r0, #CACHELINESIZE
  266. cmp r0, r1
  267. blo 1b
  268. mov r0, #0
  269. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  270. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  271. mov pc, lr
  272. /*
  273. * dma_inv_range(start, end)
  274. *
  275. * Invalidate (discard) the specified virtual address range.
  276. * May not write back any entries. If 'start' or 'end'
  277. * are not cache line aligned, those lines must be written
  278. * back.
  279. *
  280. * - start - virtual start address
  281. * - end - virtual end address
  282. */
  283. ENTRY(xscale_dma_inv_range)
  284. mrc p15, 0, r2, c0, c0, 0 @ read ID
  285. eor r2, r2, #0x69000000
  286. eor r2, r2, #0x00052000
  287. bics r2, r2, #1
  288. beq xscale_dma_flush_range
  289. tst r0, #CACHELINESIZE - 1
  290. bic r0, r0, #CACHELINESIZE - 1
  291. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  292. tst r1, #CACHELINESIZE - 1
  293. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  294. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  295. add r0, r0, #CACHELINESIZE
  296. cmp r0, r1
  297. blo 1b
  298. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  299. mov pc, lr
  300. /*
  301. * dma_clean_range(start, end)
  302. *
  303. * Clean the specified virtual address range.
  304. *
  305. * - start - virtual start address
  306. * - end - virtual end address
  307. */
  308. ENTRY(xscale_dma_clean_range)
  309. bic r0, r0, #CACHELINESIZE - 1
  310. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  311. add r0, r0, #CACHELINESIZE
  312. cmp r0, r1
  313. blo 1b
  314. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  315. mov pc, lr
  316. /*
  317. * dma_flush_range(start, end)
  318. *
  319. * Clean and invalidate the specified virtual address range.
  320. *
  321. * - start - virtual start address
  322. * - end - virtual end address
  323. */
  324. ENTRY(xscale_dma_flush_range)
  325. bic r0, r0, #CACHELINESIZE - 1
  326. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  327. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  328. add r0, r0, #CACHELINESIZE
  329. cmp r0, r1
  330. blo 1b
  331. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  332. mov pc, lr
  333. ENTRY(xscale_cache_fns)
  334. .long xscale_flush_kern_cache_all
  335. .long xscale_flush_user_cache_all
  336. .long xscale_flush_user_cache_range
  337. .long xscale_coherent_kern_range
  338. .long xscale_coherent_user_range
  339. .long xscale_flush_kern_dcache_page
  340. .long xscale_dma_inv_range
  341. .long xscale_dma_clean_range
  342. .long xscale_dma_flush_range
  343. ENTRY(cpu_xscale_dcache_clean_area)
  344. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  345. add r0, r0, #CACHELINESIZE
  346. subs r1, r1, #CACHELINESIZE
  347. bhi 1b
  348. mov pc, lr
  349. /* =============================== PageTable ============================== */
  350. #define PTE_CACHE_WRITE_ALLOCATE 0
  351. /*
  352. * cpu_xscale_switch_mm(pgd)
  353. *
  354. * Set the translation base pointer to be as described by pgd.
  355. *
  356. * pgd: new page tables
  357. */
  358. .align 5
  359. ENTRY(cpu_xscale_switch_mm)
  360. clean_d_cache r1, r2
  361. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  362. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  363. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  364. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  365. cpwait_ret lr, ip
  366. /*
  367. * cpu_xscale_set_pte(ptep, pte)
  368. *
  369. * Set a PTE and flush it out
  370. *
  371. * Errata 40: must set memory to write-through for user read-only pages.
  372. */
  373. .align 5
  374. ENTRY(cpu_xscale_set_pte)
  375. str r1, [r0], #-2048 @ linux version
  376. bic r2, r1, #0xff0
  377. orr r2, r2, #PTE_TYPE_EXT @ extended page
  378. eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY
  379. tst r3, #L_PTE_USER @ User?
  380. orrne r2, r2, #PTE_EXT_AP_URO_SRW @ yes -> user r/o, system r/w
  381. tst r3, #L_PTE_WRITE | L_PTE_DIRTY @ Write and Dirty?
  382. orreq r2, r2, #PTE_EXT_AP_UNO_SRW @ yes -> user n/a, system r/w
  383. @ combined with user -> user r/w
  384. @
  385. @ Handle the X bit. We want to set this bit for the minicache
  386. @ (U = E = B = W = 0, C = 1) or when write allocate is enabled,
  387. @ and we have a writeable, cacheable region. If we ignore the
  388. @ U and E bits, we can allow user space to use the minicache as
  389. @ well.
  390. @
  391. @ X = (C & ~W & ~B) | (C & W & B & write_allocate)
  392. @
  393. eor ip, r1, #L_PTE_CACHEABLE
  394. tst ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  395. #if PTE_CACHE_WRITE_ALLOCATE
  396. eorne ip, r1, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  397. tstne ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  398. #endif
  399. orreq r2, r2, #PTE_EXT_TEX(1)
  400. @
  401. @ Erratum 40: The B bit must be cleared for a user read-only
  402. @ cacheable page.
  403. @
  404. @ B = B & ~(U & C & ~W)
  405. @
  406. and ip, r1, #L_PTE_USER | L_PTE_WRITE | L_PTE_CACHEABLE
  407. teq ip, #L_PTE_USER | L_PTE_CACHEABLE
  408. biceq r2, r2, #PTE_BUFFERABLE
  409. tst r3, #L_PTE_PRESENT | L_PTE_YOUNG @ Present and Young?
  410. movne r2, #0 @ no -> fault
  411. str r2, [r0] @ hardware version
  412. mov ip, #0
  413. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  414. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  415. mov pc, lr
  416. .ltorg
  417. .align
  418. __INIT
  419. .type __xscale_setup, #function
  420. __xscale_setup:
  421. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  422. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  423. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  424. #ifdef CONFIG_IWMMXT
  425. mov r0, #0 @ initially disallow access to CP0/CP1
  426. #else
  427. mov r0, #1 @ Allow access to CP0
  428. #endif
  429. orr r0, r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  430. orr r0, r0, #1 << 13 @ Its undefined whether this
  431. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  432. mrc p15, 0, r0, c1, c0, 0 @ get control register
  433. ldr r5, xscale_cr1_clear
  434. bic r0, r0, r5
  435. ldr r5, xscale_cr1_set
  436. orr r0, r0, r5
  437. mov pc, lr
  438. .size __xscale_setup, . - __xscale_setup
  439. /*
  440. * R
  441. * .RVI ZFRS BLDP WCAM
  442. * ..11 1.01 .... .101
  443. *
  444. */
  445. .type xscale_cr1_clear, #object
  446. .type xscale_cr1_set, #object
  447. xscale_cr1_clear:
  448. .word 0x3b07
  449. xscale_cr1_set:
  450. .word 0x3905
  451. __INITDATA
  452. /*
  453. * Purpose : Function pointers used to access above functions - all calls
  454. * come through these
  455. */
  456. .type xscale_processor_functions, #object
  457. ENTRY(xscale_processor_functions)
  458. .word v5t_early_abort
  459. .word cpu_xscale_proc_init
  460. .word cpu_xscale_proc_fin
  461. .word cpu_xscale_reset
  462. .word cpu_xscale_do_idle
  463. .word cpu_xscale_dcache_clean_area
  464. .word cpu_xscale_switch_mm
  465. .word cpu_xscale_set_pte
  466. .size xscale_processor_functions, . - xscale_processor_functions
  467. .section ".rodata"
  468. .type cpu_arch_name, #object
  469. cpu_arch_name:
  470. .asciz "armv5te"
  471. .size cpu_arch_name, . - cpu_arch_name
  472. .type cpu_elf_name, #object
  473. cpu_elf_name:
  474. .asciz "v5"
  475. .size cpu_elf_name, . - cpu_elf_name
  476. .type cpu_80200_name, #object
  477. cpu_80200_name:
  478. .asciz "XScale-80200"
  479. .size cpu_80200_name, . - cpu_80200_name
  480. .type cpu_8032x_name, #object
  481. cpu_8032x_name:
  482. .asciz "XScale-IOP8032x Family"
  483. .size cpu_8032x_name, . - cpu_8032x_name
  484. .type cpu_8033x_name, #object
  485. cpu_8033x_name:
  486. .asciz "XScale-IOP8033x Family"
  487. .size cpu_8033x_name, . - cpu_8033x_name
  488. .type cpu_pxa250_name, #object
  489. cpu_pxa250_name:
  490. .asciz "XScale-PXA250"
  491. .size cpu_pxa250_name, . - cpu_pxa250_name
  492. .type cpu_pxa210_name, #object
  493. cpu_pxa210_name:
  494. .asciz "XScale-PXA210"
  495. .size cpu_pxa210_name, . - cpu_pxa210_name
  496. .type cpu_ixp42x_name, #object
  497. cpu_ixp42x_name:
  498. .asciz "XScale-IXP42x Family"
  499. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  500. .type cpu_ixp46x_name, #object
  501. cpu_ixp46x_name:
  502. .asciz "XScale-IXP46x Family"
  503. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  504. .type cpu_ixp2400_name, #object
  505. cpu_ixp2400_name:
  506. .asciz "XScale-IXP2400"
  507. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  508. .type cpu_ixp2800_name, #object
  509. cpu_ixp2800_name:
  510. .asciz "XScale-IXP2800"
  511. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  512. .type cpu_pxa255_name, #object
  513. cpu_pxa255_name:
  514. .asciz "XScale-PXA255"
  515. .size cpu_pxa255_name, . - cpu_pxa255_name
  516. .type cpu_pxa270_name, #object
  517. cpu_pxa270_name:
  518. .asciz "XScale-PXA270"
  519. .size cpu_pxa270_name, . - cpu_pxa270_name
  520. .align
  521. .section ".proc.info.init", #alloc, #execinstr
  522. .type __80200_proc_info,#object
  523. __80200_proc_info:
  524. .long 0x69052000
  525. .long 0xfffffff0
  526. .long PMD_TYPE_SECT | \
  527. PMD_SECT_BUFFERABLE | \
  528. PMD_SECT_CACHEABLE | \
  529. PMD_SECT_AP_WRITE | \
  530. PMD_SECT_AP_READ
  531. b __xscale_setup
  532. .long cpu_arch_name
  533. .long cpu_elf_name
  534. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  535. .long cpu_80200_name
  536. .long xscale_processor_functions
  537. .long v4wbi_tlb_fns
  538. .long xscale_mc_user_fns
  539. .long xscale_cache_fns
  540. .size __80200_proc_info, . - __80200_proc_info
  541. .type __8032x_proc_info,#object
  542. __8032x_proc_info:
  543. .long 0x69052420
  544. .long 0xfffff5e0 @ mask should accomodate IOP80219 also
  545. .long PMD_TYPE_SECT | \
  546. PMD_SECT_BUFFERABLE | \
  547. PMD_SECT_CACHEABLE | \
  548. PMD_SECT_AP_WRITE | \
  549. PMD_SECT_AP_READ
  550. b __xscale_setup
  551. .long cpu_arch_name
  552. .long cpu_elf_name
  553. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  554. .long cpu_8032x_name
  555. .long xscale_processor_functions
  556. .long v4wbi_tlb_fns
  557. .long xscale_mc_user_fns
  558. .long xscale_cache_fns
  559. .size __8032x_proc_info, . - __8032x_proc_info
  560. .type __8033x_proc_info,#object
  561. __8033x_proc_info:
  562. .long 0x69054010
  563. .long 0xffffff30
  564. .long PMD_TYPE_SECT | \
  565. PMD_SECT_BUFFERABLE | \
  566. PMD_SECT_CACHEABLE | \
  567. PMD_SECT_AP_WRITE | \
  568. PMD_SECT_AP_READ
  569. b __xscale_setup
  570. .long cpu_arch_name
  571. .long cpu_elf_name
  572. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  573. .long cpu_8033x_name
  574. .long xscale_processor_functions
  575. .long v4wbi_tlb_fns
  576. .long xscale_mc_user_fns
  577. .long xscale_cache_fns
  578. .size __8033x_proc_info, . - __8033x_proc_info
  579. .type __pxa250_proc_info,#object
  580. __pxa250_proc_info:
  581. .long 0x69052100
  582. .long 0xfffff7f0
  583. .long PMD_TYPE_SECT | \
  584. PMD_SECT_BUFFERABLE | \
  585. PMD_SECT_CACHEABLE | \
  586. PMD_SECT_AP_WRITE | \
  587. PMD_SECT_AP_READ
  588. b __xscale_setup
  589. .long cpu_arch_name
  590. .long cpu_elf_name
  591. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  592. .long cpu_pxa250_name
  593. .long xscale_processor_functions
  594. .long v4wbi_tlb_fns
  595. .long xscale_mc_user_fns
  596. .long xscale_cache_fns
  597. .size __pxa250_proc_info, . - __pxa250_proc_info
  598. .type __pxa210_proc_info,#object
  599. __pxa210_proc_info:
  600. .long 0x69052120
  601. .long 0xfffff3f0
  602. .long PMD_TYPE_SECT | \
  603. PMD_SECT_BUFFERABLE | \
  604. PMD_SECT_CACHEABLE | \
  605. PMD_SECT_AP_WRITE | \
  606. PMD_SECT_AP_READ
  607. b __xscale_setup
  608. .long cpu_arch_name
  609. .long cpu_elf_name
  610. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  611. .long cpu_pxa210_name
  612. .long xscale_processor_functions
  613. .long v4wbi_tlb_fns
  614. .long xscale_mc_user_fns
  615. .long xscale_cache_fns
  616. .size __pxa210_proc_info, . - __pxa210_proc_info
  617. .type __ixp2400_proc_info, #object
  618. __ixp2400_proc_info:
  619. .long 0x69054190
  620. .long 0xfffffff0
  621. .long PMD_TYPE_SECT | \
  622. PMD_SECT_BUFFERABLE | \
  623. PMD_SECT_CACHEABLE | \
  624. PMD_SECT_AP_WRITE | \
  625. PMD_SECT_AP_READ
  626. b __xscale_setup
  627. .long cpu_arch_name
  628. .long cpu_elf_name
  629. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  630. .long cpu_ixp2400_name
  631. .long xscale_processor_functions
  632. .long v4wbi_tlb_fns
  633. .long xscale_mc_user_fns
  634. .long xscale_cache_fns
  635. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  636. .type __ixp2800_proc_info, #object
  637. __ixp2800_proc_info:
  638. .long 0x690541a0
  639. .long 0xfffffff0
  640. .long PMD_TYPE_SECT | \
  641. PMD_SECT_BUFFERABLE | \
  642. PMD_SECT_CACHEABLE | \
  643. PMD_SECT_AP_WRITE | \
  644. PMD_SECT_AP_READ
  645. b __xscale_setup
  646. .long cpu_arch_name
  647. .long cpu_elf_name
  648. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  649. .long cpu_ixp2800_name
  650. .long xscale_processor_functions
  651. .long v4wbi_tlb_fns
  652. .long xscale_mc_user_fns
  653. .long xscale_cache_fns
  654. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  655. .type __ixp42x_proc_info, #object
  656. __ixp42x_proc_info:
  657. .long 0x690541c0
  658. .long 0xffffffc0
  659. .long PMD_TYPE_SECT | \
  660. PMD_SECT_BUFFERABLE | \
  661. PMD_SECT_CACHEABLE | \
  662. PMD_SECT_AP_WRITE | \
  663. PMD_SECT_AP_READ
  664. b __xscale_setup
  665. .long cpu_arch_name
  666. .long cpu_elf_name
  667. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  668. .long cpu_ixp42x_name
  669. .long xscale_processor_functions
  670. .long v4wbi_tlb_fns
  671. .long xscale_mc_user_fns
  672. .long xscale_cache_fns
  673. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  674. .type __ixp46x_proc_info, #object
  675. __ixp46x_proc_info:
  676. .long 0x69054200
  677. .long 0xffffff00
  678. .long 0x00000c0e
  679. b __xscale_setup
  680. .long cpu_arch_name
  681. .long cpu_elf_name
  682. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  683. .long cpu_ixp46x_name
  684. .long xscale_processor_functions
  685. .long v4wbi_tlb_fns
  686. .long xscale_mc_user_fns
  687. .long xscale_cache_fns
  688. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  689. .type __pxa255_proc_info,#object
  690. __pxa255_proc_info:
  691. .long 0x69052d00
  692. .long 0xfffffff0
  693. .long PMD_TYPE_SECT | \
  694. PMD_SECT_BUFFERABLE | \
  695. PMD_SECT_CACHEABLE | \
  696. PMD_SECT_AP_WRITE | \
  697. PMD_SECT_AP_READ
  698. b __xscale_setup
  699. .long cpu_arch_name
  700. .long cpu_elf_name
  701. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  702. .long cpu_pxa255_name
  703. .long xscale_processor_functions
  704. .long v4wbi_tlb_fns
  705. .long xscale_mc_user_fns
  706. .long xscale_cache_fns
  707. .size __pxa255_proc_info, . - __pxa255_proc_info
  708. .type __pxa270_proc_info,#object
  709. __pxa270_proc_info:
  710. .long 0x69054110
  711. .long 0xfffffff0
  712. .long PMD_TYPE_SECT | \
  713. PMD_SECT_BUFFERABLE | \
  714. PMD_SECT_CACHEABLE | \
  715. PMD_SECT_AP_WRITE | \
  716. PMD_SECT_AP_READ
  717. b __xscale_setup
  718. .long cpu_arch_name
  719. .long cpu_elf_name
  720. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  721. .long cpu_pxa270_name
  722. .long xscale_processor_functions
  723. .long v4wbi_tlb_fns
  724. .long xscale_mc_user_fns
  725. .long xscale_cache_fns
  726. .size __pxa270_proc_info, . - __pxa270_proc_info