proc-xscale.S 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  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. * Beware PXA270 erratum E7.
  130. */
  131. .align 5
  132. ENTRY(cpu_xscale_reset)
  133. mov r1, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  134. msr cpsr_c, r1 @ reset CPSR
  135. mcr p15, 0, r1, c10, c4, 1 @ unlock I-TLB
  136. mcr p15, 0, r1, c8, c5, 0 @ invalidate I-TLB
  137. mrc p15, 0, r1, c1, c0, 0 @ ctrl register
  138. bic r1, r1, #0x0086 @ ........B....CA.
  139. bic r1, r1, #0x3900 @ ..VIZ..S........
  140. sub pc, pc, #4 @ flush pipeline
  141. @ *** cache line aligned ***
  142. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  143. bic r1, r1, #0x0001 @ ...............M
  144. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches & BTB
  145. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  146. @ CAUTION: MMU turned off from this point. We count on the pipeline
  147. @ already containing those two last instructions to survive.
  148. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  149. mov pc, r0
  150. /*
  151. * cpu_xscale_do_idle()
  152. *
  153. * Cause the processor to idle
  154. *
  155. * For now we do nothing but go to idle mode for every case
  156. *
  157. * XScale supports clock switching, but using idle mode support
  158. * allows external hardware to react to system state changes.
  159. */
  160. .align 5
  161. ENTRY(cpu_xscale_do_idle)
  162. mov r0, #1
  163. mcr p14, 0, r0, c7, c0, 0 @ Go to IDLE
  164. mov pc, lr
  165. /* ================================= CACHE ================================ */
  166. /*
  167. * flush_user_cache_all()
  168. *
  169. * Invalidate all cache entries in a particular address
  170. * space.
  171. */
  172. ENTRY(xscale_flush_user_cache_all)
  173. /* FALLTHROUGH */
  174. /*
  175. * flush_kern_cache_all()
  176. *
  177. * Clean and invalidate the entire cache.
  178. */
  179. ENTRY(xscale_flush_kern_cache_all)
  180. mov r2, #VM_EXEC
  181. mov ip, #0
  182. __flush_whole_cache:
  183. clean_d_cache r0, r1
  184. tst r2, #VM_EXEC
  185. mcrne p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  186. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  187. mov pc, lr
  188. /*
  189. * flush_user_cache_range(start, end, vm_flags)
  190. *
  191. * Invalidate a range of cache entries in the specified
  192. * address space.
  193. *
  194. * - start - start address (may not be aligned)
  195. * - end - end address (exclusive, may not be aligned)
  196. * - vma - vma_area_struct describing address space
  197. */
  198. .align 5
  199. ENTRY(xscale_flush_user_cache_range)
  200. mov ip, #0
  201. sub r3, r1, r0 @ calculate total size
  202. cmp r3, #MAX_AREA_SIZE
  203. bhs __flush_whole_cache
  204. 1: tst r2, #VM_EXEC
  205. mcrne p15, 0, r0, c7, c5, 1 @ Invalidate I cache line
  206. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  207. mcr p15, 0, r0, c7, c6, 1 @ Invalidate D cache line
  208. add r0, r0, #CACHELINESIZE
  209. cmp r0, r1
  210. blo 1b
  211. tst r2, #VM_EXEC
  212. mcrne p15, 0, ip, c7, c5, 6 @ Invalidate BTB
  213. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  214. mov pc, lr
  215. /*
  216. * coherent_kern_range(start, end)
  217. *
  218. * Ensure coherency between the Icache and the Dcache in the
  219. * region described by start. If you have non-snooping
  220. * Harvard caches, you need to implement this function.
  221. *
  222. * - start - virtual start address
  223. * - end - virtual end address
  224. *
  225. * Note: single I-cache line invalidation isn't used here since
  226. * it also trashes the mini I-cache used by JTAG debuggers.
  227. */
  228. ENTRY(xscale_coherent_kern_range)
  229. bic r0, r0, #CACHELINESIZE - 1
  230. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  231. add r0, r0, #CACHELINESIZE
  232. cmp r0, r1
  233. blo 1b
  234. mov r0, #0
  235. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  236. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  237. mov pc, lr
  238. /*
  239. * coherent_user_range(start, end)
  240. *
  241. * Ensure coherency between the Icache and the Dcache in the
  242. * region described by start. If you have non-snooping
  243. * Harvard caches, you need to implement this function.
  244. *
  245. * - start - virtual start address
  246. * - end - virtual end address
  247. */
  248. ENTRY(xscale_coherent_user_range)
  249. bic r0, r0, #CACHELINESIZE - 1
  250. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  251. mcr p15, 0, r0, c7, c5, 1 @ Invalidate I cache entry
  252. add r0, r0, #CACHELINESIZE
  253. cmp r0, r1
  254. blo 1b
  255. mov r0, #0
  256. mcr p15, 0, r0, c7, c5, 6 @ Invalidate BTB
  257. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  258. mov pc, lr
  259. /*
  260. * flush_kern_dcache_page(void *page)
  261. *
  262. * Ensure no D cache aliasing occurs, either with itself or
  263. * the I cache
  264. *
  265. * - addr - page aligned address
  266. */
  267. ENTRY(xscale_flush_kern_dcache_page)
  268. add r1, r0, #PAGE_SZ
  269. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  270. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  271. add r0, r0, #CACHELINESIZE
  272. cmp r0, r1
  273. blo 1b
  274. mov r0, #0
  275. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  276. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  277. mov pc, lr
  278. /*
  279. * dma_inv_range(start, end)
  280. *
  281. * Invalidate (discard) the specified virtual address range.
  282. * May not write back any entries. If 'start' or 'end'
  283. * are not cache line aligned, those lines must be written
  284. * back.
  285. *
  286. * - start - virtual start address
  287. * - end - virtual end address
  288. */
  289. ENTRY(xscale_dma_inv_range)
  290. mrc p15, 0, r2, c0, c0, 0 @ read ID
  291. eor r2, r2, #0x69000000
  292. eor r2, r2, #0x00052000
  293. bics r2, r2, #1
  294. beq xscale_dma_flush_range
  295. tst r0, #CACHELINESIZE - 1
  296. bic r0, r0, #CACHELINESIZE - 1
  297. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  298. tst r1, #CACHELINESIZE - 1
  299. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  300. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  301. add r0, r0, #CACHELINESIZE
  302. cmp r0, r1
  303. blo 1b
  304. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  305. mov pc, lr
  306. /*
  307. * dma_clean_range(start, end)
  308. *
  309. * Clean the specified virtual address range.
  310. *
  311. * - start - virtual start address
  312. * - end - virtual end address
  313. */
  314. ENTRY(xscale_dma_clean_range)
  315. bic r0, r0, #CACHELINESIZE - 1
  316. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  317. add r0, r0, #CACHELINESIZE
  318. cmp r0, r1
  319. blo 1b
  320. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  321. mov pc, lr
  322. /*
  323. * dma_flush_range(start, end)
  324. *
  325. * Clean and invalidate the specified virtual address range.
  326. *
  327. * - start - virtual start address
  328. * - end - virtual end address
  329. */
  330. ENTRY(xscale_dma_flush_range)
  331. bic r0, r0, #CACHELINESIZE - 1
  332. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  333. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  334. add r0, r0, #CACHELINESIZE
  335. cmp r0, r1
  336. blo 1b
  337. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  338. mov pc, lr
  339. ENTRY(xscale_cache_fns)
  340. .long xscale_flush_kern_cache_all
  341. .long xscale_flush_user_cache_all
  342. .long xscale_flush_user_cache_range
  343. .long xscale_coherent_kern_range
  344. .long xscale_coherent_user_range
  345. .long xscale_flush_kern_dcache_page
  346. .long xscale_dma_inv_range
  347. .long xscale_dma_clean_range
  348. .long xscale_dma_flush_range
  349. ENTRY(cpu_xscale_dcache_clean_area)
  350. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  351. add r0, r0, #CACHELINESIZE
  352. subs r1, r1, #CACHELINESIZE
  353. bhi 1b
  354. mov pc, lr
  355. /* =============================== PageTable ============================== */
  356. #define PTE_CACHE_WRITE_ALLOCATE 0
  357. /*
  358. * cpu_xscale_switch_mm(pgd)
  359. *
  360. * Set the translation base pointer to be as described by pgd.
  361. *
  362. * pgd: new page tables
  363. */
  364. .align 5
  365. ENTRY(cpu_xscale_switch_mm)
  366. clean_d_cache r1, r2
  367. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  368. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  369. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  370. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  371. cpwait_ret lr, ip
  372. /*
  373. * cpu_xscale_set_pte(ptep, pte)
  374. *
  375. * Set a PTE and flush it out
  376. *
  377. * Errata 40: must set memory to write-through for user read-only pages.
  378. */
  379. .align 5
  380. ENTRY(cpu_xscale_set_pte)
  381. str r1, [r0], #-2048 @ linux version
  382. bic r2, r1, #0xff0
  383. orr r2, r2, #PTE_TYPE_EXT @ extended page
  384. eor r3, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY
  385. tst r3, #L_PTE_USER @ User?
  386. orrne r2, r2, #PTE_EXT_AP_URO_SRW @ yes -> user r/o, system r/w
  387. tst r3, #L_PTE_WRITE | L_PTE_DIRTY @ Write and Dirty?
  388. orreq r2, r2, #PTE_EXT_AP_UNO_SRW @ yes -> user n/a, system r/w
  389. @ combined with user -> user r/w
  390. @
  391. @ Handle the X bit. We want to set this bit for the minicache
  392. @ (U = E = B = W = 0, C = 1) or when write allocate is enabled,
  393. @ and we have a writeable, cacheable region. If we ignore the
  394. @ U and E bits, we can allow user space to use the minicache as
  395. @ well.
  396. @
  397. @ X = (C & ~W & ~B) | (C & W & B & write_allocate)
  398. @
  399. eor ip, r1, #L_PTE_CACHEABLE
  400. tst ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  401. #if PTE_CACHE_WRITE_ALLOCATE
  402. eorne ip, r1, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  403. tstne ip, #L_PTE_CACHEABLE | L_PTE_WRITE | L_PTE_BUFFERABLE
  404. #endif
  405. orreq r2, r2, #PTE_EXT_TEX(1)
  406. @
  407. @ Erratum 40: The B bit must be cleared for a user read-only
  408. @ cacheable page.
  409. @
  410. @ B = B & ~(U & C & ~W)
  411. @
  412. and ip, r1, #L_PTE_USER | L_PTE_WRITE | L_PTE_CACHEABLE
  413. teq ip, #L_PTE_USER | L_PTE_CACHEABLE
  414. biceq r2, r2, #PTE_BUFFERABLE
  415. tst r3, #L_PTE_PRESENT | L_PTE_YOUNG @ Present and Young?
  416. movne r2, #0 @ no -> fault
  417. str r2, [r0] @ hardware version
  418. mov ip, #0
  419. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  420. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  421. mov pc, lr
  422. .ltorg
  423. .align
  424. __INIT
  425. .type __xscale_setup, #function
  426. __xscale_setup:
  427. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  428. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  429. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  430. #ifdef CONFIG_IWMMXT
  431. mov r0, #0 @ initially disallow access to CP0/CP1
  432. #else
  433. mov r0, #1 @ Allow access to CP0
  434. #endif
  435. orr r0, r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  436. orr r0, r0, #1 << 13 @ Its undefined whether this
  437. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  438. adr r5, xscale_crval
  439. ldmia r5, {r5, r6}
  440. mrc p15, 0, r0, c1, c0, 0 @ get control register
  441. bic r0, r0, r5
  442. orr r0, r0, r6
  443. mov pc, lr
  444. .size __xscale_setup, . - __xscale_setup
  445. /*
  446. * R
  447. * .RVI ZFRS BLDP WCAM
  448. * ..11 1.01 .... .101
  449. *
  450. */
  451. .type xscale_crval, #object
  452. xscale_crval:
  453. crval clear=0x00003b07, mmuset=0x00003905, ucset=0x00001900
  454. __INITDATA
  455. /*
  456. * Purpose : Function pointers used to access above functions - all calls
  457. * come through these
  458. */
  459. .type xscale_processor_functions, #object
  460. ENTRY(xscale_processor_functions)
  461. .word v5t_early_abort
  462. .word cpu_xscale_proc_init
  463. .word cpu_xscale_proc_fin
  464. .word cpu_xscale_reset
  465. .word cpu_xscale_do_idle
  466. .word cpu_xscale_dcache_clean_area
  467. .word cpu_xscale_switch_mm
  468. .word cpu_xscale_set_pte
  469. .size xscale_processor_functions, . - xscale_processor_functions
  470. .section ".rodata"
  471. .type cpu_arch_name, #object
  472. cpu_arch_name:
  473. .asciz "armv5te"
  474. .size cpu_arch_name, . - cpu_arch_name
  475. .type cpu_elf_name, #object
  476. cpu_elf_name:
  477. .asciz "v5"
  478. .size cpu_elf_name, . - cpu_elf_name
  479. .type cpu_80200_name, #object
  480. cpu_80200_name:
  481. .asciz "XScale-80200"
  482. .size cpu_80200_name, . - cpu_80200_name
  483. .type cpu_8032x_name, #object
  484. cpu_8032x_name:
  485. .asciz "XScale-IOP8032x Family"
  486. .size cpu_8032x_name, . - cpu_8032x_name
  487. .type cpu_8033x_name, #object
  488. cpu_8033x_name:
  489. .asciz "XScale-IOP8033x Family"
  490. .size cpu_8033x_name, . - cpu_8033x_name
  491. .type cpu_pxa250_name, #object
  492. cpu_pxa250_name:
  493. .asciz "XScale-PXA250"
  494. .size cpu_pxa250_name, . - cpu_pxa250_name
  495. .type cpu_pxa210_name, #object
  496. cpu_pxa210_name:
  497. .asciz "XScale-PXA210"
  498. .size cpu_pxa210_name, . - cpu_pxa210_name
  499. .type cpu_ixp42x_name, #object
  500. cpu_ixp42x_name:
  501. .asciz "XScale-IXP42x Family"
  502. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  503. .type cpu_ixp46x_name, #object
  504. cpu_ixp46x_name:
  505. .asciz "XScale-IXP46x Family"
  506. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  507. .type cpu_ixp2400_name, #object
  508. cpu_ixp2400_name:
  509. .asciz "XScale-IXP2400"
  510. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  511. .type cpu_ixp2800_name, #object
  512. cpu_ixp2800_name:
  513. .asciz "XScale-IXP2800"
  514. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  515. .type cpu_pxa255_name, #object
  516. cpu_pxa255_name:
  517. .asciz "XScale-PXA255"
  518. .size cpu_pxa255_name, . - cpu_pxa255_name
  519. .type cpu_pxa270_name, #object
  520. cpu_pxa270_name:
  521. .asciz "XScale-PXA270"
  522. .size cpu_pxa270_name, . - cpu_pxa270_name
  523. .align
  524. .section ".proc.info.init", #alloc, #execinstr
  525. .type __80200_proc_info,#object
  526. __80200_proc_info:
  527. .long 0x69052000
  528. .long 0xfffffff0
  529. .long PMD_TYPE_SECT | \
  530. PMD_SECT_BUFFERABLE | \
  531. PMD_SECT_CACHEABLE | \
  532. PMD_SECT_AP_WRITE | \
  533. PMD_SECT_AP_READ
  534. .long PMD_TYPE_SECT | \
  535. PMD_SECT_AP_WRITE | \
  536. PMD_SECT_AP_READ
  537. b __xscale_setup
  538. .long cpu_arch_name
  539. .long cpu_elf_name
  540. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  541. .long cpu_80200_name
  542. .long xscale_processor_functions
  543. .long v4wbi_tlb_fns
  544. .long xscale_mc_user_fns
  545. .long xscale_cache_fns
  546. .size __80200_proc_info, . - __80200_proc_info
  547. .type __8032x_proc_info,#object
  548. __8032x_proc_info:
  549. .long 0x69052420
  550. .long 0xfffff5e0 @ mask should accomodate IOP80219 also
  551. .long PMD_TYPE_SECT | \
  552. PMD_SECT_BUFFERABLE | \
  553. PMD_SECT_CACHEABLE | \
  554. PMD_SECT_AP_WRITE | \
  555. PMD_SECT_AP_READ
  556. .long PMD_TYPE_SECT | \
  557. PMD_SECT_AP_WRITE | \
  558. PMD_SECT_AP_READ
  559. b __xscale_setup
  560. .long cpu_arch_name
  561. .long cpu_elf_name
  562. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  563. .long cpu_8032x_name
  564. .long xscale_processor_functions
  565. .long v4wbi_tlb_fns
  566. .long xscale_mc_user_fns
  567. .long xscale_cache_fns
  568. .size __8032x_proc_info, . - __8032x_proc_info
  569. .type __8033x_proc_info,#object
  570. __8033x_proc_info:
  571. .long 0x69054010
  572. .long 0xffffff30
  573. .long PMD_TYPE_SECT | \
  574. PMD_SECT_BUFFERABLE | \
  575. PMD_SECT_CACHEABLE | \
  576. PMD_SECT_AP_WRITE | \
  577. PMD_SECT_AP_READ
  578. .long PMD_TYPE_SECT | \
  579. PMD_SECT_AP_WRITE | \
  580. PMD_SECT_AP_READ
  581. b __xscale_setup
  582. .long cpu_arch_name
  583. .long cpu_elf_name
  584. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  585. .long cpu_8033x_name
  586. .long xscale_processor_functions
  587. .long v4wbi_tlb_fns
  588. .long xscale_mc_user_fns
  589. .long xscale_cache_fns
  590. .size __8033x_proc_info, . - __8033x_proc_info
  591. .type __pxa250_proc_info,#object
  592. __pxa250_proc_info:
  593. .long 0x69052100
  594. .long 0xfffff7f0
  595. .long PMD_TYPE_SECT | \
  596. PMD_SECT_BUFFERABLE | \
  597. PMD_SECT_CACHEABLE | \
  598. PMD_SECT_AP_WRITE | \
  599. PMD_SECT_AP_READ
  600. .long PMD_TYPE_SECT | \
  601. PMD_SECT_AP_WRITE | \
  602. PMD_SECT_AP_READ
  603. b __xscale_setup
  604. .long cpu_arch_name
  605. .long cpu_elf_name
  606. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  607. .long cpu_pxa250_name
  608. .long xscale_processor_functions
  609. .long v4wbi_tlb_fns
  610. .long xscale_mc_user_fns
  611. .long xscale_cache_fns
  612. .size __pxa250_proc_info, . - __pxa250_proc_info
  613. .type __pxa210_proc_info,#object
  614. __pxa210_proc_info:
  615. .long 0x69052120
  616. .long 0xfffff3f0
  617. .long PMD_TYPE_SECT | \
  618. PMD_SECT_BUFFERABLE | \
  619. PMD_SECT_CACHEABLE | \
  620. PMD_SECT_AP_WRITE | \
  621. PMD_SECT_AP_READ
  622. .long PMD_TYPE_SECT | \
  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_pxa210_name
  630. .long xscale_processor_functions
  631. .long v4wbi_tlb_fns
  632. .long xscale_mc_user_fns
  633. .long xscale_cache_fns
  634. .size __pxa210_proc_info, . - __pxa210_proc_info
  635. .type __ixp2400_proc_info, #object
  636. __ixp2400_proc_info:
  637. .long 0x69054190
  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. .long PMD_TYPE_SECT | \
  645. PMD_SECT_AP_WRITE | \
  646. PMD_SECT_AP_READ
  647. b __xscale_setup
  648. .long cpu_arch_name
  649. .long cpu_elf_name
  650. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  651. .long cpu_ixp2400_name
  652. .long xscale_processor_functions
  653. .long v4wbi_tlb_fns
  654. .long xscale_mc_user_fns
  655. .long xscale_cache_fns
  656. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  657. .type __ixp2800_proc_info, #object
  658. __ixp2800_proc_info:
  659. .long 0x690541a0
  660. .long 0xfffffff0
  661. .long PMD_TYPE_SECT | \
  662. PMD_SECT_BUFFERABLE | \
  663. PMD_SECT_CACHEABLE | \
  664. PMD_SECT_AP_WRITE | \
  665. PMD_SECT_AP_READ
  666. .long PMD_TYPE_SECT | \
  667. PMD_SECT_AP_WRITE | \
  668. PMD_SECT_AP_READ
  669. b __xscale_setup
  670. .long cpu_arch_name
  671. .long cpu_elf_name
  672. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  673. .long cpu_ixp2800_name
  674. .long xscale_processor_functions
  675. .long v4wbi_tlb_fns
  676. .long xscale_mc_user_fns
  677. .long xscale_cache_fns
  678. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  679. .type __ixp42x_proc_info, #object
  680. __ixp42x_proc_info:
  681. .long 0x690541c0
  682. .long 0xffffffc0
  683. .long PMD_TYPE_SECT | \
  684. PMD_SECT_BUFFERABLE | \
  685. PMD_SECT_CACHEABLE | \
  686. PMD_SECT_AP_WRITE | \
  687. PMD_SECT_AP_READ
  688. .long PMD_TYPE_SECT | \
  689. PMD_SECT_AP_WRITE | \
  690. PMD_SECT_AP_READ
  691. b __xscale_setup
  692. .long cpu_arch_name
  693. .long cpu_elf_name
  694. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  695. .long cpu_ixp42x_name
  696. .long xscale_processor_functions
  697. .long v4wbi_tlb_fns
  698. .long xscale_mc_user_fns
  699. .long xscale_cache_fns
  700. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  701. .type __ixp46x_proc_info, #object
  702. __ixp46x_proc_info:
  703. .long 0x69054200
  704. .long 0xffffff00
  705. .long PMD_TYPE_SECT | \
  706. PMD_SECT_BUFFERABLE | \
  707. PMD_SECT_CACHEABLE | \
  708. PMD_SECT_AP_WRITE | \
  709. PMD_SECT_AP_READ
  710. .long PMD_TYPE_SECT | \
  711. PMD_SECT_AP_WRITE | \
  712. PMD_SECT_AP_READ
  713. b __xscale_setup
  714. .long cpu_arch_name
  715. .long cpu_elf_name
  716. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  717. .long cpu_ixp46x_name
  718. .long xscale_processor_functions
  719. .long v4wbi_tlb_fns
  720. .long xscale_mc_user_fns
  721. .long xscale_cache_fns
  722. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  723. .type __pxa255_proc_info,#object
  724. __pxa255_proc_info:
  725. .long 0x69052d00
  726. .long 0xfffffff0
  727. .long PMD_TYPE_SECT | \
  728. PMD_SECT_BUFFERABLE | \
  729. PMD_SECT_CACHEABLE | \
  730. PMD_SECT_AP_WRITE | \
  731. PMD_SECT_AP_READ
  732. .long PMD_TYPE_SECT | \
  733. PMD_SECT_AP_WRITE | \
  734. PMD_SECT_AP_READ
  735. b __xscale_setup
  736. .long cpu_arch_name
  737. .long cpu_elf_name
  738. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  739. .long cpu_pxa255_name
  740. .long xscale_processor_functions
  741. .long v4wbi_tlb_fns
  742. .long xscale_mc_user_fns
  743. .long xscale_cache_fns
  744. .size __pxa255_proc_info, . - __pxa255_proc_info
  745. .type __pxa270_proc_info,#object
  746. __pxa270_proc_info:
  747. .long 0x69054110
  748. .long 0xfffffff0
  749. .long PMD_TYPE_SECT | \
  750. PMD_SECT_BUFFERABLE | \
  751. PMD_SECT_CACHEABLE | \
  752. PMD_SECT_AP_WRITE | \
  753. PMD_SECT_AP_READ
  754. .long PMD_TYPE_SECT | \
  755. PMD_SECT_AP_WRITE | \
  756. PMD_SECT_AP_READ
  757. b __xscale_setup
  758. .long cpu_arch_name
  759. .long cpu_elf_name
  760. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  761. .long cpu_pxa270_name
  762. .long xscale_processor_functions
  763. .long v4wbi_tlb_fns
  764. .long xscale_mc_user_fns
  765. .long xscale_cache_fns
  766. .size __pxa270_proc_info, . - __pxa270_proc_info