proc-xscale.S 21 KB

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