proc-xscale.S 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  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/hardware.h>
  27. #include <asm/pgtable.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. /* FALLTHROUGH */
  224. /*
  225. * coherent_user_range(start, end)
  226. *
  227. * Ensure coherency between the Icache and the Dcache in the
  228. * region described by start. If you have non-snooping
  229. * Harvard caches, you need to implement this function.
  230. *
  231. * - start - virtual start address
  232. * - end - virtual end address
  233. *
  234. * Note: single I-cache line invalidation isn't used here since
  235. * it also trashes the mini I-cache used by JTAG debuggers.
  236. */
  237. ENTRY(xscale_coherent_user_range)
  238. bic r0, r0, #CACHELINESIZE - 1
  239. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  240. add r0, r0, #CACHELINESIZE
  241. cmp r0, r1
  242. blo 1b
  243. mov r0, #0
  244. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  245. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  246. mov pc, lr
  247. /*
  248. * flush_kern_dcache_page(void *page)
  249. *
  250. * Ensure no D cache aliasing occurs, either with itself or
  251. * the I cache
  252. *
  253. * - addr - page aligned address
  254. */
  255. ENTRY(xscale_flush_kern_dcache_page)
  256. add r1, r0, #PAGE_SZ
  257. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  258. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  259. add r0, r0, #CACHELINESIZE
  260. cmp r0, r1
  261. blo 1b
  262. mov r0, #0
  263. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  264. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  265. mov pc, lr
  266. /*
  267. * dma_inv_range(start, end)
  268. *
  269. * Invalidate (discard) the specified virtual address range.
  270. * May not write back any entries. If 'start' or 'end'
  271. * are not cache line aligned, those lines must be written
  272. * back.
  273. *
  274. * - start - virtual start address
  275. * - end - virtual end address
  276. */
  277. ENTRY(xscale_dma_inv_range)
  278. mrc p15, 0, r2, c0, c0, 0 @ read ID
  279. eor r2, r2, #0x69000000
  280. eor r2, r2, #0x00052000
  281. bics r2, r2, #1
  282. beq xscale_dma_flush_range
  283. tst r0, #CACHELINESIZE - 1
  284. bic r0, r0, #CACHELINESIZE - 1
  285. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  286. tst r1, #CACHELINESIZE - 1
  287. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  288. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  289. add r0, r0, #CACHELINESIZE
  290. cmp r0, r1
  291. blo 1b
  292. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  293. mov pc, lr
  294. /*
  295. * dma_clean_range(start, end)
  296. *
  297. * Clean the specified virtual address range.
  298. *
  299. * - start - virtual start address
  300. * - end - virtual end address
  301. */
  302. ENTRY(xscale_dma_clean_range)
  303. bic r0, r0, #CACHELINESIZE - 1
  304. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  305. add r0, r0, #CACHELINESIZE
  306. cmp r0, r1
  307. blo 1b
  308. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  309. mov pc, lr
  310. /*
  311. * dma_flush_range(start, end)
  312. *
  313. * Clean and invalidate the specified virtual address range.
  314. *
  315. * - start - virtual start address
  316. * - end - virtual end address
  317. */
  318. ENTRY(xscale_dma_flush_range)
  319. bic r0, r0, #CACHELINESIZE - 1
  320. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  321. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  322. add r0, r0, #CACHELINESIZE
  323. cmp r0, r1
  324. blo 1b
  325. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  326. mov pc, lr
  327. ENTRY(xscale_cache_fns)
  328. .long xscale_flush_kern_cache_all
  329. .long xscale_flush_user_cache_all
  330. .long xscale_flush_user_cache_range
  331. .long xscale_coherent_kern_range
  332. .long xscale_coherent_user_range
  333. .long xscale_flush_kern_dcache_page
  334. .long xscale_dma_inv_range
  335. .long xscale_dma_clean_range
  336. .long xscale_dma_flush_range
  337. ENTRY(cpu_xscale_dcache_clean_area)
  338. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  339. add r0, r0, #CACHELINESIZE
  340. subs r1, r1, #CACHELINESIZE
  341. bhi 1b
  342. mov pc, lr
  343. /* =============================== PageTable ============================== */
  344. #define PTE_CACHE_WRITE_ALLOCATE 0
  345. /*
  346. * cpu_xscale_switch_mm(pgd)
  347. *
  348. * Set the translation base pointer to be as described by pgd.
  349. *
  350. * pgd: new page tables
  351. */
  352. .align 5
  353. ENTRY(cpu_xscale_switch_mm)
  354. clean_d_cache r1, r2
  355. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  356. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  357. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  358. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  359. cpwait_ret lr, ip
  360. /*
  361. * cpu_xscale_set_pte(ptep, pte)
  362. *
  363. * Set a PTE and flush it out
  364. *
  365. * Errata 40: must set memory to write-through for user read-only pages.
  366. */
  367. .align 5
  368. ENTRY(cpu_xscale_set_pte)
  369. str r1, [r0], #-2048 @ linux version
  370. bic r2, r1, #0xff0
  371. orr r2, r2, #PTE_TYPE_EXT @ extended page
  372. eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY
  373. tst r3, #L_PTE_USER @ User?
  374. orrne r2, r2, #PTE_EXT_AP_URO_SRW @ yes -> user r/o, system r/w
  375. tst r3, #L_PTE_WRITE | L_PTE_DIRTY @ Write and Dirty?
  376. orreq r2, r2, #PTE_EXT_AP_UNO_SRW @ yes -> user n/a, system r/w
  377. @ combined with user -> user r/w
  378. @
  379. @ Handle the X bit. We want to set this bit for the minicache
  380. @ (U = E = B = W = 0, C = 1) or when write allocate is enabled,
  381. @ and we have a writeable, cacheable region. If we ignore the
  382. @ U and E bits, we can allow user space to use the minicache as
  383. @ well.
  384. @
  385. @ X = (C & ~W & ~B) | (C & W & B & write_allocate)
  386. @
  387. eor ip, r1, #L_PTE_CACHEABLE
  388. tst ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  389. #if PTE_CACHE_WRITE_ALLOCATE
  390. eorne ip, r1, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  391. tstne ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  392. #endif
  393. orreq r2, r2, #PTE_EXT_TEX(1)
  394. @
  395. @ Erratum 40: The B bit must be cleared for a user read-only
  396. @ cacheable page.
  397. @
  398. @ B = B & ~(U & C & ~W)
  399. @
  400. and ip, r1, #L_PTE_USER | L_PTE_WRITE | L_PTE_CACHEABLE
  401. teq ip, #L_PTE_USER | L_PTE_CACHEABLE
  402. biceq r2, r2, #PTE_BUFFERABLE
  403. tst r3, #L_PTE_PRESENT | L_PTE_YOUNG @ Present and Young?
  404. movne r2, #0 @ no -> fault
  405. str r2, [r0] @ hardware version
  406. mov ip, #0
  407. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  408. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  409. mov pc, lr
  410. .ltorg
  411. .align
  412. __INIT
  413. .type __xscale_setup, #function
  414. __xscale_setup:
  415. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  416. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  417. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  418. #ifdef CONFIG_IWMMXT
  419. mov r0, #0 @ initially disallow access to CP0/CP1
  420. #else
  421. mov r0, #1 @ Allow access to CP0
  422. #endif
  423. orr r0, r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  424. orr r0, r0, #1 << 13 @ Its undefined whether this
  425. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  426. mrc p15, 0, r0, c1, c0, 0 @ get control register
  427. ldr r5, xscale_cr1_clear
  428. bic r0, r0, r5
  429. ldr r5, xscale_cr1_set
  430. orr r0, r0, r5
  431. mov pc, lr
  432. .size __xscale_setup, . - __xscale_setup
  433. /*
  434. * R
  435. * .RVI ZFRS BLDP WCAM
  436. * ..11 1.01 .... .101
  437. *
  438. */
  439. .type xscale_cr1_clear, #object
  440. .type xscale_cr1_set, #object
  441. xscale_cr1_clear:
  442. .word 0x3b07
  443. xscale_cr1_set:
  444. .word 0x3905
  445. __INITDATA
  446. /*
  447. * Purpose : Function pointers used to access above functions - all calls
  448. * come through these
  449. */
  450. .type xscale_processor_functions, #object
  451. ENTRY(xscale_processor_functions)
  452. .word v5t_early_abort
  453. .word cpu_xscale_proc_init
  454. .word cpu_xscale_proc_fin
  455. .word cpu_xscale_reset
  456. .word cpu_xscale_do_idle
  457. .word cpu_xscale_dcache_clean_area
  458. .word cpu_xscale_switch_mm
  459. .word cpu_xscale_set_pte
  460. .size xscale_processor_functions, . - xscale_processor_functions
  461. .section ".rodata"
  462. .type cpu_arch_name, #object
  463. cpu_arch_name:
  464. .asciz "armv5te"
  465. .size cpu_arch_name, . - cpu_arch_name
  466. .type cpu_elf_name, #object
  467. cpu_elf_name:
  468. .asciz "v5"
  469. .size cpu_elf_name, . - cpu_elf_name
  470. .type cpu_80200_name, #object
  471. cpu_80200_name:
  472. .asciz "XScale-80200"
  473. .size cpu_80200_name, . - cpu_80200_name
  474. .type cpu_8032x_name, #object
  475. cpu_8032x_name:
  476. .asciz "XScale-IOP8032x Family"
  477. .size cpu_8032x_name, . - cpu_8032x_name
  478. .type cpu_8033x_name, #object
  479. cpu_8033x_name:
  480. .asciz "XScale-IOP8033x Family"
  481. .size cpu_8033x_name, . - cpu_8033x_name
  482. .type cpu_pxa250_name, #object
  483. cpu_pxa250_name:
  484. .asciz "XScale-PXA250"
  485. .size cpu_pxa250_name, . - cpu_pxa250_name
  486. .type cpu_pxa210_name, #object
  487. cpu_pxa210_name:
  488. .asciz "XScale-PXA210"
  489. .size cpu_pxa210_name, . - cpu_pxa210_name
  490. .type cpu_ixp42x_name, #object
  491. cpu_ixp42x_name:
  492. .asciz "XScale-IXP42x Family"
  493. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  494. .type cpu_ixp46x_name, #object
  495. cpu_ixp46x_name:
  496. .asciz "XScale-IXP46x Family"
  497. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  498. .type cpu_ixp2400_name, #object
  499. cpu_ixp2400_name:
  500. .asciz "XScale-IXP2400"
  501. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  502. .type cpu_ixp2800_name, #object
  503. cpu_ixp2800_name:
  504. .asciz "XScale-IXP2800"
  505. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  506. .type cpu_pxa255_name, #object
  507. cpu_pxa255_name:
  508. .asciz "XScale-PXA255"
  509. .size cpu_pxa255_name, . - cpu_pxa255_name
  510. .type cpu_pxa270_name, #object
  511. cpu_pxa270_name:
  512. .asciz "XScale-PXA270"
  513. .size cpu_pxa270_name, . - cpu_pxa270_name
  514. .align
  515. .section ".proc.info", #alloc, #execinstr
  516. .type __80200_proc_info,#object
  517. __80200_proc_info:
  518. .long 0x69052000
  519. .long 0xfffffff0
  520. .long PMD_TYPE_SECT | \
  521. PMD_SECT_BUFFERABLE | \
  522. PMD_SECT_CACHEABLE | \
  523. PMD_SECT_AP_WRITE | \
  524. PMD_SECT_AP_READ
  525. b __xscale_setup
  526. .long cpu_arch_name
  527. .long cpu_elf_name
  528. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  529. .long cpu_80200_name
  530. .long xscale_processor_functions
  531. .long v4wbi_tlb_fns
  532. .long xscale_mc_user_fns
  533. .long xscale_cache_fns
  534. .size __80200_proc_info, . - __80200_proc_info
  535. .type __8032x_proc_info,#object
  536. __8032x_proc_info:
  537. .long 0x69052420
  538. .long 0xfffff5e0 @ mask should accomodate IOP80219 also
  539. .long PMD_TYPE_SECT | \
  540. PMD_SECT_BUFFERABLE | \
  541. PMD_SECT_CACHEABLE | \
  542. PMD_SECT_AP_WRITE | \
  543. PMD_SECT_AP_READ
  544. b __xscale_setup
  545. .long cpu_arch_name
  546. .long cpu_elf_name
  547. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  548. .long cpu_8032x_name
  549. .long xscale_processor_functions
  550. .long v4wbi_tlb_fns
  551. .long xscale_mc_user_fns
  552. .long xscale_cache_fns
  553. .size __8032x_proc_info, . - __8032x_proc_info
  554. .type __8033x_proc_info,#object
  555. __8033x_proc_info:
  556. .long 0x69054010
  557. .long 0xffffff30
  558. .long PMD_TYPE_SECT | \
  559. PMD_SECT_BUFFERABLE | \
  560. PMD_SECT_CACHEABLE | \
  561. PMD_SECT_AP_WRITE | \
  562. PMD_SECT_AP_READ
  563. b __xscale_setup
  564. .long cpu_arch_name
  565. .long cpu_elf_name
  566. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  567. .long cpu_8033x_name
  568. .long xscale_processor_functions
  569. .long v4wbi_tlb_fns
  570. .long xscale_mc_user_fns
  571. .long xscale_cache_fns
  572. .size __8033x_proc_info, . - __8033x_proc_info
  573. .type __pxa250_proc_info,#object
  574. __pxa250_proc_info:
  575. .long 0x69052100
  576. .long 0xfffff7f0
  577. .long PMD_TYPE_SECT | \
  578. PMD_SECT_BUFFERABLE | \
  579. PMD_SECT_CACHEABLE | \
  580. PMD_SECT_AP_WRITE | \
  581. PMD_SECT_AP_READ
  582. b __xscale_setup
  583. .long cpu_arch_name
  584. .long cpu_elf_name
  585. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  586. .long cpu_pxa250_name
  587. .long xscale_processor_functions
  588. .long v4wbi_tlb_fns
  589. .long xscale_mc_user_fns
  590. .long xscale_cache_fns
  591. .size __pxa250_proc_info, . - __pxa250_proc_info
  592. .type __pxa210_proc_info,#object
  593. __pxa210_proc_info:
  594. .long 0x69052120
  595. .long 0xfffff3f0
  596. .long PMD_TYPE_SECT | \
  597. PMD_SECT_BUFFERABLE | \
  598. PMD_SECT_CACHEABLE | \
  599. PMD_SECT_AP_WRITE | \
  600. PMD_SECT_AP_READ
  601. b __xscale_setup
  602. .long cpu_arch_name
  603. .long cpu_elf_name
  604. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  605. .long cpu_pxa210_name
  606. .long xscale_processor_functions
  607. .long v4wbi_tlb_fns
  608. .long xscale_mc_user_fns
  609. .long xscale_cache_fns
  610. .size __pxa210_proc_info, . - __pxa210_proc_info
  611. .type __ixp2400_proc_info, #object
  612. __ixp2400_proc_info:
  613. .long 0x69054190
  614. .long 0xfffffff0
  615. .long PMD_TYPE_SECT | \
  616. PMD_SECT_BUFFERABLE | \
  617. PMD_SECT_CACHEABLE | \
  618. PMD_SECT_AP_WRITE | \
  619. PMD_SECT_AP_READ
  620. b __xscale_setup
  621. .long cpu_arch_name
  622. .long cpu_elf_name
  623. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  624. .long cpu_ixp2400_name
  625. .long xscale_processor_functions
  626. .long v4wbi_tlb_fns
  627. .long xscale_mc_user_fns
  628. .long xscale_cache_fns
  629. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  630. .type __ixp2800_proc_info, #object
  631. __ixp2800_proc_info:
  632. .long 0x690541a0
  633. .long 0xfffffff0
  634. .long PMD_TYPE_SECT | \
  635. PMD_SECT_BUFFERABLE | \
  636. PMD_SECT_CACHEABLE | \
  637. PMD_SECT_AP_WRITE | \
  638. PMD_SECT_AP_READ
  639. b __xscale_setup
  640. .long cpu_arch_name
  641. .long cpu_elf_name
  642. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  643. .long cpu_ixp2800_name
  644. .long xscale_processor_functions
  645. .long v4wbi_tlb_fns
  646. .long xscale_mc_user_fns
  647. .long xscale_cache_fns
  648. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  649. .type __ixp42x_proc_info, #object
  650. __ixp42x_proc_info:
  651. .long 0x690541c0
  652. .long 0xffffffc0
  653. .long PMD_TYPE_SECT | \
  654. PMD_SECT_BUFFERABLE | \
  655. PMD_SECT_CACHEABLE | \
  656. PMD_SECT_AP_WRITE | \
  657. PMD_SECT_AP_READ
  658. b __xscale_setup
  659. .long cpu_arch_name
  660. .long cpu_elf_name
  661. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  662. .long cpu_ixp42x_name
  663. .long xscale_processor_functions
  664. .long v4wbi_tlb_fns
  665. .long xscale_mc_user_fns
  666. .long xscale_cache_fns
  667. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  668. .type __ixp46x_proc_info, #object
  669. __ixp46x_proc_info:
  670. .long 0x69054200
  671. .long 0xffffff00
  672. .long 0x00000c0e
  673. b __xscale_setup
  674. .long cpu_arch_name
  675. .long cpu_elf_name
  676. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  677. .long cpu_ixp46x_name
  678. .long xscale_processor_functions
  679. .long v4wbi_tlb_fns
  680. .long xscale_mc_user_fns
  681. .long xscale_cache_fns
  682. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  683. .type __pxa255_proc_info,#object
  684. __pxa255_proc_info:
  685. .long 0x69052d00
  686. .long 0xfffffff0
  687. .long PMD_TYPE_SECT | \
  688. PMD_SECT_BUFFERABLE | \
  689. PMD_SECT_CACHEABLE | \
  690. PMD_SECT_AP_WRITE | \
  691. PMD_SECT_AP_READ
  692. b __xscale_setup
  693. .long cpu_arch_name
  694. .long cpu_elf_name
  695. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  696. .long cpu_pxa255_name
  697. .long xscale_processor_functions
  698. .long v4wbi_tlb_fns
  699. .long xscale_mc_user_fns
  700. .long xscale_cache_fns
  701. .size __pxa255_proc_info, . - __pxa255_proc_info
  702. .type __pxa270_proc_info,#object
  703. __pxa270_proc_info:
  704. .long 0x69054110
  705. .long 0xfffffff0
  706. .long PMD_TYPE_SECT | \
  707. PMD_SECT_BUFFERABLE | \
  708. PMD_SECT_CACHEABLE | \
  709. PMD_SECT_AP_WRITE | \
  710. PMD_SECT_AP_READ
  711. b __xscale_setup
  712. .long cpu_arch_name
  713. .long cpu_elf_name
  714. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  715. .long cpu_pxa270_name
  716. .long xscale_processor_functions
  717. .long v4wbi_tlb_fns
  718. .long xscale_mc_user_fns
  719. .long xscale_cache_fns
  720. .size __pxa270_proc_info, . - __pxa270_proc_info