proc-xscale.S 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  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@fluxnic.net>
  21. */
  22. #include <linux/linkage.h>
  23. #include <linux/init.h>
  24. #include <asm/assembler.h>
  25. #include <asm/hwcap.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. @ enable write buffer coalescing. Some bootloader disable it
  107. mrc p15, 0, r1, c1, c0, 1
  108. bic r1, r1, #1
  109. mcr p15, 0, r1, c1, c0, 1
  110. mov pc, lr
  111. /*
  112. * cpu_xscale_proc_fin()
  113. */
  114. ENTRY(cpu_xscale_proc_fin)
  115. str lr, [sp, #-4]!
  116. mov r0, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  117. msr cpsr_c, r0
  118. bl xscale_flush_kern_cache_all @ clean caches
  119. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  120. bic r0, r0, #0x1800 @ ...IZ...........
  121. bic r0, r0, #0x0006 @ .............CA.
  122. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  123. ldr pc, [sp], #4
  124. /*
  125. * cpu_xscale_reset(loc)
  126. *
  127. * Perform a soft reset of the system. Put the CPU into the
  128. * same state as it would be if it had been reset, and branch
  129. * to what would be the reset vector.
  130. *
  131. * loc: location to jump to for soft reset
  132. *
  133. * Beware PXA270 erratum E7.
  134. */
  135. .align 5
  136. ENTRY(cpu_xscale_reset)
  137. mov r1, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  138. msr cpsr_c, r1 @ reset CPSR
  139. mcr p15, 0, r1, c10, c4, 1 @ unlock I-TLB
  140. mcr p15, 0, r1, c8, c5, 0 @ invalidate I-TLB
  141. mrc p15, 0, r1, c1, c0, 0 @ ctrl register
  142. bic r1, r1, #0x0086 @ ........B....CA.
  143. bic r1, r1, #0x3900 @ ..VIZ..S........
  144. sub pc, pc, #4 @ flush pipeline
  145. @ *** cache line aligned ***
  146. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  147. bic r1, r1, #0x0001 @ ...............M
  148. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches & BTB
  149. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  150. @ CAUTION: MMU turned off from this point. We count on the pipeline
  151. @ already containing those two last instructions to survive.
  152. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  153. mov pc, r0
  154. /*
  155. * cpu_xscale_do_idle()
  156. *
  157. * Cause the processor to idle
  158. *
  159. * For now we do nothing but go to idle mode for every case
  160. *
  161. * XScale supports clock switching, but using idle mode support
  162. * allows external hardware to react to system state changes.
  163. */
  164. .align 5
  165. ENTRY(cpu_xscale_do_idle)
  166. mov r0, #1
  167. mcr p14, 0, r0, c7, c0, 0 @ Go to IDLE
  168. mov pc, lr
  169. /* ================================= CACHE ================================ */
  170. /*
  171. * flush_user_cache_all()
  172. *
  173. * Invalidate all cache entries in a particular address
  174. * space.
  175. */
  176. ENTRY(xscale_flush_user_cache_all)
  177. /* FALLTHROUGH */
  178. /*
  179. * flush_kern_cache_all()
  180. *
  181. * Clean and invalidate the entire cache.
  182. */
  183. ENTRY(xscale_flush_kern_cache_all)
  184. mov r2, #VM_EXEC
  185. mov ip, #0
  186. __flush_whole_cache:
  187. clean_d_cache r0, r1
  188. tst r2, #VM_EXEC
  189. mcrne p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  190. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  191. mov pc, lr
  192. /*
  193. * flush_user_cache_range(start, end, vm_flags)
  194. *
  195. * Invalidate a range of cache entries in the specified
  196. * address space.
  197. *
  198. * - start - start address (may not be aligned)
  199. * - end - end address (exclusive, may not be aligned)
  200. * - vma - vma_area_struct describing address space
  201. */
  202. .align 5
  203. ENTRY(xscale_flush_user_cache_range)
  204. mov ip, #0
  205. sub r3, r1, r0 @ calculate total size
  206. cmp r3, #MAX_AREA_SIZE
  207. bhs __flush_whole_cache
  208. 1: tst r2, #VM_EXEC
  209. mcrne p15, 0, r0, c7, c5, 1 @ Invalidate I cache line
  210. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  211. mcr p15, 0, r0, c7, c6, 1 @ Invalidate D cache line
  212. add r0, r0, #CACHELINESIZE
  213. cmp r0, r1
  214. blo 1b
  215. tst r2, #VM_EXEC
  216. mcrne p15, 0, ip, c7, c5, 6 @ Invalidate BTB
  217. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  218. mov pc, lr
  219. /*
  220. * coherent_kern_range(start, end)
  221. *
  222. * Ensure coherency between the Icache and the Dcache in the
  223. * region described by start. If you have non-snooping
  224. * Harvard caches, you need to implement this function.
  225. *
  226. * - start - virtual start address
  227. * - end - virtual end address
  228. *
  229. * Note: single I-cache line invalidation isn't used here since
  230. * it also trashes the mini I-cache used by JTAG debuggers.
  231. */
  232. ENTRY(xscale_coherent_kern_range)
  233. bic r0, r0, #CACHELINESIZE - 1
  234. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  235. add r0, r0, #CACHELINESIZE
  236. cmp r0, r1
  237. blo 1b
  238. mov r0, #0
  239. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  240. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  241. mov pc, lr
  242. /*
  243. * coherent_user_range(start, end)
  244. *
  245. * Ensure coherency between the Icache and the Dcache in the
  246. * region described by start. If you have non-snooping
  247. * Harvard caches, you need to implement this function.
  248. *
  249. * - start - virtual start address
  250. * - end - virtual end address
  251. */
  252. ENTRY(xscale_coherent_user_range)
  253. bic r0, r0, #CACHELINESIZE - 1
  254. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  255. mcr p15, 0, r0, c7, c5, 1 @ Invalidate I cache entry
  256. add r0, r0, #CACHELINESIZE
  257. cmp r0, r1
  258. blo 1b
  259. mov r0, #0
  260. mcr p15, 0, r0, c7, c5, 6 @ Invalidate BTB
  261. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  262. mov pc, lr
  263. /*
  264. * flush_kern_dcache_area(void *addr, size_t size)
  265. *
  266. * Ensure no D cache aliasing occurs, either with itself or
  267. * the I cache
  268. *
  269. * - addr - kernel address
  270. * - size - region size
  271. */
  272. ENTRY(xscale_flush_kern_dcache_area)
  273. add r1, r0, r1
  274. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  275. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  276. add r0, r0, #CACHELINESIZE
  277. cmp r0, r1
  278. blo 1b
  279. mov r0, #0
  280. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  281. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  282. mov pc, lr
  283. /*
  284. * dma_inv_range(start, end)
  285. *
  286. * Invalidate (discard) the specified virtual address range.
  287. * May not write back any entries. If 'start' or 'end'
  288. * are not cache line aligned, those lines must be written
  289. * back.
  290. *
  291. * - start - virtual start address
  292. * - end - virtual end address
  293. */
  294. xscale_dma_inv_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. 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. /*
  340. * dma_map_area(start, size, dir)
  341. * - start - kernel virtual start address
  342. * - size - size of region
  343. * - dir - DMA direction
  344. */
  345. ENTRY(xscale_dma_map_area)
  346. add r1, r1, r0
  347. cmp r2, #DMA_TO_DEVICE
  348. beq xscale_dma_clean_range
  349. bcs xscale_dma_inv_range
  350. b xscale_dma_flush_range
  351. ENDPROC(xscale_dma_map_area)
  352. /*
  353. * dma_map_area(start, size, dir)
  354. * - start - kernel virtual start address
  355. * - size - size of region
  356. * - dir - DMA direction
  357. */
  358. ENTRY(xscale_dma_a0_map_area)
  359. add r1, r1, r0
  360. teq r2, #DMA_TO_DEVICE
  361. beq xscale_dma_clean_range
  362. b xscale_dma_flush_range
  363. ENDPROC(xscsale_dma_a0_map_area)
  364. /*
  365. * dma_unmap_area(start, size, dir)
  366. * - start - kernel virtual start address
  367. * - size - size of region
  368. * - dir - DMA direction
  369. */
  370. ENTRY(xscale_dma_unmap_area)
  371. mov pc, lr
  372. ENDPROC(xscale_dma_unmap_area)
  373. ENTRY(xscale_cache_fns)
  374. .long xscale_flush_kern_cache_all
  375. .long xscale_flush_user_cache_all
  376. .long xscale_flush_user_cache_range
  377. .long xscale_coherent_kern_range
  378. .long xscale_coherent_user_range
  379. .long xscale_flush_kern_dcache_area
  380. .long xscale_dma_map_area
  381. .long xscale_dma_unmap_area
  382. .long xscale_dma_flush_range
  383. /*
  384. * On stepping A0/A1 of the 80200, invalidating D-cache by line doesn't
  385. * clear the dirty bits, which means that if we invalidate a dirty line,
  386. * the dirty data can still be written back to external memory later on.
  387. *
  388. * The recommended workaround is to always do a clean D-cache line before
  389. * doing an invalidate D-cache line, so on the affected processors,
  390. * dma_inv_range() is implemented as dma_flush_range().
  391. *
  392. * See erratum #25 of "Intel 80200 Processor Specification Update",
  393. * revision January 22, 2003, available at:
  394. * http://www.intel.com/design/iio/specupdt/273415.htm
  395. */
  396. ENTRY(xscale_80200_A0_A1_cache_fns)
  397. .long xscale_flush_kern_cache_all
  398. .long xscale_flush_user_cache_all
  399. .long xscale_flush_user_cache_range
  400. .long xscale_coherent_kern_range
  401. .long xscale_coherent_user_range
  402. .long xscale_flush_kern_dcache_area
  403. .long xscale_dma_a0_map_area
  404. .long xscale_dma_unmap_area
  405. .long xscale_dma_flush_range
  406. ENTRY(cpu_xscale_dcache_clean_area)
  407. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  408. add r0, r0, #CACHELINESIZE
  409. subs r1, r1, #CACHELINESIZE
  410. bhi 1b
  411. mov pc, lr
  412. /* =============================== PageTable ============================== */
  413. /*
  414. * cpu_xscale_switch_mm(pgd)
  415. *
  416. * Set the translation base pointer to be as described by pgd.
  417. *
  418. * pgd: new page tables
  419. */
  420. .align 5
  421. ENTRY(cpu_xscale_switch_mm)
  422. clean_d_cache r1, r2
  423. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  424. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  425. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  426. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  427. cpwait_ret lr, ip
  428. /*
  429. * cpu_xscale_set_pte_ext(ptep, pte, ext)
  430. *
  431. * Set a PTE and flush it out
  432. *
  433. * Errata 40: must set memory to write-through for user read-only pages.
  434. */
  435. cpu_xscale_mt_table:
  436. .long 0x00 @ L_PTE_MT_UNCACHED
  437. .long PTE_BUFFERABLE @ L_PTE_MT_BUFFERABLE
  438. .long PTE_CACHEABLE @ L_PTE_MT_WRITETHROUGH
  439. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEBACK
  440. .long PTE_EXT_TEX(1) | PTE_BUFFERABLE @ L_PTE_MT_DEV_SHARED
  441. .long 0x00 @ unused
  442. .long PTE_EXT_TEX(1) | PTE_CACHEABLE @ L_PTE_MT_MINICACHE
  443. .long PTE_EXT_TEX(1) | PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEALLOC
  444. .long 0x00 @ unused
  445. .long PTE_BUFFERABLE @ L_PTE_MT_DEV_WC
  446. .long 0x00 @ unused
  447. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_DEV_CACHED
  448. .long 0x00 @ L_PTE_MT_DEV_NONSHARED
  449. .long 0x00 @ unused
  450. .long 0x00 @ unused
  451. .long 0x00 @ unused
  452. .align 5
  453. ENTRY(cpu_xscale_set_pte_ext)
  454. xscale_set_pte_ext_prologue
  455. @
  456. @ Erratum 40: must set memory to write-through for user read-only pages
  457. @
  458. and ip, r1, #(L_PTE_MT_MASK | L_PTE_USER | L_PTE_WRITE) & ~(4 << 2)
  459. teq ip, #L_PTE_MT_WRITEBACK | L_PTE_USER
  460. moveq r1, #L_PTE_MT_WRITETHROUGH
  461. and r1, r1, #L_PTE_MT_MASK
  462. adr ip, cpu_xscale_mt_table
  463. ldr ip, [ip, r1]
  464. bic r2, r2, #0x0c
  465. orr r2, r2, ip
  466. xscale_set_pte_ext_epilogue
  467. mov pc, lr
  468. .ltorg
  469. .align
  470. __INIT
  471. .type __xscale_setup, #function
  472. __xscale_setup:
  473. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  474. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  475. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  476. mov r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  477. orr r0, r0, #1 << 13 @ Its undefined whether this
  478. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  479. adr r5, xscale_crval
  480. ldmia r5, {r5, r6}
  481. mrc p15, 0, r0, c1, c0, 0 @ get control register
  482. bic r0, r0, r5
  483. orr r0, r0, r6
  484. mov pc, lr
  485. .size __xscale_setup, . - __xscale_setup
  486. /*
  487. * R
  488. * .RVI ZFRS BLDP WCAM
  489. * ..11 1.01 .... .101
  490. *
  491. */
  492. .type xscale_crval, #object
  493. xscale_crval:
  494. crval clear=0x00003b07, mmuset=0x00003905, ucset=0x00001900
  495. __INITDATA
  496. /*
  497. * Purpose : Function pointers used to access above functions - all calls
  498. * come through these
  499. */
  500. .type xscale_processor_functions, #object
  501. ENTRY(xscale_processor_functions)
  502. .word v5t_early_abort
  503. .word legacy_pabort
  504. .word cpu_xscale_proc_init
  505. .word cpu_xscale_proc_fin
  506. .word cpu_xscale_reset
  507. .word cpu_xscale_do_idle
  508. .word cpu_xscale_dcache_clean_area
  509. .word cpu_xscale_switch_mm
  510. .word cpu_xscale_set_pte_ext
  511. .size xscale_processor_functions, . - xscale_processor_functions
  512. .section ".rodata"
  513. .type cpu_arch_name, #object
  514. cpu_arch_name:
  515. .asciz "armv5te"
  516. .size cpu_arch_name, . - cpu_arch_name
  517. .type cpu_elf_name, #object
  518. cpu_elf_name:
  519. .asciz "v5"
  520. .size cpu_elf_name, . - cpu_elf_name
  521. .type cpu_80200_A0_A1_name, #object
  522. cpu_80200_A0_A1_name:
  523. .asciz "XScale-80200 A0/A1"
  524. .size cpu_80200_A0_A1_name, . - cpu_80200_A0_A1_name
  525. .type cpu_80200_name, #object
  526. cpu_80200_name:
  527. .asciz "XScale-80200"
  528. .size cpu_80200_name, . - cpu_80200_name
  529. .type cpu_80219_name, #object
  530. cpu_80219_name:
  531. .asciz "XScale-80219"
  532. .size cpu_80219_name, . - cpu_80219_name
  533. .type cpu_8032x_name, #object
  534. cpu_8032x_name:
  535. .asciz "XScale-IOP8032x Family"
  536. .size cpu_8032x_name, . - cpu_8032x_name
  537. .type cpu_8033x_name, #object
  538. cpu_8033x_name:
  539. .asciz "XScale-IOP8033x Family"
  540. .size cpu_8033x_name, . - cpu_8033x_name
  541. .type cpu_pxa250_name, #object
  542. cpu_pxa250_name:
  543. .asciz "XScale-PXA250"
  544. .size cpu_pxa250_name, . - cpu_pxa250_name
  545. .type cpu_pxa210_name, #object
  546. cpu_pxa210_name:
  547. .asciz "XScale-PXA210"
  548. .size cpu_pxa210_name, . - cpu_pxa210_name
  549. .type cpu_ixp42x_name, #object
  550. cpu_ixp42x_name:
  551. .asciz "XScale-IXP42x Family"
  552. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  553. .type cpu_ixp43x_name, #object
  554. cpu_ixp43x_name:
  555. .asciz "XScale-IXP43x Family"
  556. .size cpu_ixp43x_name, . - cpu_ixp43x_name
  557. .type cpu_ixp46x_name, #object
  558. cpu_ixp46x_name:
  559. .asciz "XScale-IXP46x Family"
  560. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  561. .type cpu_ixp2400_name, #object
  562. cpu_ixp2400_name:
  563. .asciz "XScale-IXP2400"
  564. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  565. .type cpu_ixp2800_name, #object
  566. cpu_ixp2800_name:
  567. .asciz "XScale-IXP2800"
  568. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  569. .type cpu_pxa255_name, #object
  570. cpu_pxa255_name:
  571. .asciz "XScale-PXA255"
  572. .size cpu_pxa255_name, . - cpu_pxa255_name
  573. .type cpu_pxa270_name, #object
  574. cpu_pxa270_name:
  575. .asciz "XScale-PXA270"
  576. .size cpu_pxa270_name, . - cpu_pxa270_name
  577. .align
  578. .section ".proc.info.init", #alloc, #execinstr
  579. .type __80200_A0_A1_proc_info,#object
  580. __80200_A0_A1_proc_info:
  581. .long 0x69052000
  582. .long 0xfffffffe
  583. .long PMD_TYPE_SECT | \
  584. PMD_SECT_BUFFERABLE | \
  585. PMD_SECT_CACHEABLE | \
  586. PMD_SECT_AP_WRITE | \
  587. PMD_SECT_AP_READ
  588. .long PMD_TYPE_SECT | \
  589. PMD_SECT_AP_WRITE | \
  590. PMD_SECT_AP_READ
  591. b __xscale_setup
  592. .long cpu_arch_name
  593. .long cpu_elf_name
  594. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  595. .long cpu_80200_name
  596. .long xscale_processor_functions
  597. .long v4wbi_tlb_fns
  598. .long xscale_mc_user_fns
  599. .long xscale_80200_A0_A1_cache_fns
  600. .size __80200_A0_A1_proc_info, . - __80200_A0_A1_proc_info
  601. .type __80200_proc_info,#object
  602. __80200_proc_info:
  603. .long 0x69052000
  604. .long 0xfffffff0
  605. .long PMD_TYPE_SECT | \
  606. PMD_SECT_BUFFERABLE | \
  607. PMD_SECT_CACHEABLE | \
  608. PMD_SECT_AP_WRITE | \
  609. PMD_SECT_AP_READ
  610. .long PMD_TYPE_SECT | \
  611. PMD_SECT_AP_WRITE | \
  612. PMD_SECT_AP_READ
  613. b __xscale_setup
  614. .long cpu_arch_name
  615. .long cpu_elf_name
  616. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  617. .long cpu_80200_name
  618. .long xscale_processor_functions
  619. .long v4wbi_tlb_fns
  620. .long xscale_mc_user_fns
  621. .long xscale_cache_fns
  622. .size __80200_proc_info, . - __80200_proc_info
  623. .type __80219_proc_info,#object
  624. __80219_proc_info:
  625. .long 0x69052e20
  626. .long 0xffffffe0
  627. .long PMD_TYPE_SECT | \
  628. PMD_SECT_BUFFERABLE | \
  629. PMD_SECT_CACHEABLE | \
  630. PMD_SECT_AP_WRITE | \
  631. PMD_SECT_AP_READ
  632. .long PMD_TYPE_SECT | \
  633. PMD_SECT_AP_WRITE | \
  634. PMD_SECT_AP_READ
  635. b __xscale_setup
  636. .long cpu_arch_name
  637. .long cpu_elf_name
  638. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  639. .long cpu_80219_name
  640. .long xscale_processor_functions
  641. .long v4wbi_tlb_fns
  642. .long xscale_mc_user_fns
  643. .long xscale_cache_fns
  644. .size __80219_proc_info, . - __80219_proc_info
  645. .type __8032x_proc_info,#object
  646. __8032x_proc_info:
  647. .long 0x69052420
  648. .long 0xfffff7e0
  649. .long PMD_TYPE_SECT | \
  650. PMD_SECT_BUFFERABLE | \
  651. PMD_SECT_CACHEABLE | \
  652. PMD_SECT_AP_WRITE | \
  653. PMD_SECT_AP_READ
  654. .long PMD_TYPE_SECT | \
  655. PMD_SECT_AP_WRITE | \
  656. PMD_SECT_AP_READ
  657. b __xscale_setup
  658. .long cpu_arch_name
  659. .long cpu_elf_name
  660. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  661. .long cpu_8032x_name
  662. .long xscale_processor_functions
  663. .long v4wbi_tlb_fns
  664. .long xscale_mc_user_fns
  665. .long xscale_cache_fns
  666. .size __8032x_proc_info, . - __8032x_proc_info
  667. .type __8033x_proc_info,#object
  668. __8033x_proc_info:
  669. .long 0x69054010
  670. .long 0xfffffd30
  671. .long PMD_TYPE_SECT | \
  672. PMD_SECT_BUFFERABLE | \
  673. PMD_SECT_CACHEABLE | \
  674. PMD_SECT_AP_WRITE | \
  675. PMD_SECT_AP_READ
  676. .long PMD_TYPE_SECT | \
  677. PMD_SECT_AP_WRITE | \
  678. PMD_SECT_AP_READ
  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_8033x_name
  684. .long xscale_processor_functions
  685. .long v4wbi_tlb_fns
  686. .long xscale_mc_user_fns
  687. .long xscale_cache_fns
  688. .size __8033x_proc_info, . - __8033x_proc_info
  689. .type __pxa250_proc_info,#object
  690. __pxa250_proc_info:
  691. .long 0x69052100
  692. .long 0xfffff7f0
  693. .long PMD_TYPE_SECT | \
  694. PMD_SECT_BUFFERABLE | \
  695. PMD_SECT_CACHEABLE | \
  696. PMD_SECT_AP_WRITE | \
  697. PMD_SECT_AP_READ
  698. .long PMD_TYPE_SECT | \
  699. PMD_SECT_AP_WRITE | \
  700. PMD_SECT_AP_READ
  701. b __xscale_setup
  702. .long cpu_arch_name
  703. .long cpu_elf_name
  704. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  705. .long cpu_pxa250_name
  706. .long xscale_processor_functions
  707. .long v4wbi_tlb_fns
  708. .long xscale_mc_user_fns
  709. .long xscale_cache_fns
  710. .size __pxa250_proc_info, . - __pxa250_proc_info
  711. .type __pxa210_proc_info,#object
  712. __pxa210_proc_info:
  713. .long 0x69052120
  714. .long 0xfffff3f0
  715. .long PMD_TYPE_SECT | \
  716. PMD_SECT_BUFFERABLE | \
  717. PMD_SECT_CACHEABLE | \
  718. PMD_SECT_AP_WRITE | \
  719. PMD_SECT_AP_READ
  720. .long PMD_TYPE_SECT | \
  721. PMD_SECT_AP_WRITE | \
  722. PMD_SECT_AP_READ
  723. b __xscale_setup
  724. .long cpu_arch_name
  725. .long cpu_elf_name
  726. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  727. .long cpu_pxa210_name
  728. .long xscale_processor_functions
  729. .long v4wbi_tlb_fns
  730. .long xscale_mc_user_fns
  731. .long xscale_cache_fns
  732. .size __pxa210_proc_info, . - __pxa210_proc_info
  733. .type __ixp2400_proc_info, #object
  734. __ixp2400_proc_info:
  735. .long 0x69054190
  736. .long 0xfffffff0
  737. .long PMD_TYPE_SECT | \
  738. PMD_SECT_BUFFERABLE | \
  739. PMD_SECT_CACHEABLE | \
  740. PMD_SECT_AP_WRITE | \
  741. PMD_SECT_AP_READ
  742. .long PMD_TYPE_SECT | \
  743. PMD_SECT_AP_WRITE | \
  744. PMD_SECT_AP_READ
  745. b __xscale_setup
  746. .long cpu_arch_name
  747. .long cpu_elf_name
  748. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  749. .long cpu_ixp2400_name
  750. .long xscale_processor_functions
  751. .long v4wbi_tlb_fns
  752. .long xscale_mc_user_fns
  753. .long xscale_cache_fns
  754. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  755. .type __ixp2800_proc_info, #object
  756. __ixp2800_proc_info:
  757. .long 0x690541a0
  758. .long 0xfffffff0
  759. .long PMD_TYPE_SECT | \
  760. PMD_SECT_BUFFERABLE | \
  761. PMD_SECT_CACHEABLE | \
  762. PMD_SECT_AP_WRITE | \
  763. PMD_SECT_AP_READ
  764. .long PMD_TYPE_SECT | \
  765. PMD_SECT_AP_WRITE | \
  766. PMD_SECT_AP_READ
  767. b __xscale_setup
  768. .long cpu_arch_name
  769. .long cpu_elf_name
  770. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  771. .long cpu_ixp2800_name
  772. .long xscale_processor_functions
  773. .long v4wbi_tlb_fns
  774. .long xscale_mc_user_fns
  775. .long xscale_cache_fns
  776. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  777. .type __ixp42x_proc_info, #object
  778. __ixp42x_proc_info:
  779. .long 0x690541c0
  780. .long 0xffffffc0
  781. .long PMD_TYPE_SECT | \
  782. PMD_SECT_BUFFERABLE | \
  783. PMD_SECT_CACHEABLE | \
  784. PMD_SECT_AP_WRITE | \
  785. PMD_SECT_AP_READ
  786. .long PMD_TYPE_SECT | \
  787. PMD_SECT_AP_WRITE | \
  788. PMD_SECT_AP_READ
  789. b __xscale_setup
  790. .long cpu_arch_name
  791. .long cpu_elf_name
  792. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  793. .long cpu_ixp42x_name
  794. .long xscale_processor_functions
  795. .long v4wbi_tlb_fns
  796. .long xscale_mc_user_fns
  797. .long xscale_cache_fns
  798. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  799. .type __ixp43x_proc_info, #object
  800. __ixp43x_proc_info:
  801. .long 0x69054040
  802. .long 0xfffffff0
  803. .long PMD_TYPE_SECT | \
  804. PMD_SECT_BUFFERABLE | \
  805. PMD_SECT_CACHEABLE | \
  806. PMD_SECT_AP_WRITE | \
  807. PMD_SECT_AP_READ
  808. .long PMD_TYPE_SECT | \
  809. PMD_SECT_AP_WRITE | \
  810. PMD_SECT_AP_READ
  811. b __xscale_setup
  812. .long cpu_arch_name
  813. .long cpu_elf_name
  814. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  815. .long cpu_ixp43x_name
  816. .long xscale_processor_functions
  817. .long v4wbi_tlb_fns
  818. .long xscale_mc_user_fns
  819. .long xscale_cache_fns
  820. .size __ixp43x_proc_info, . - __ixp43x_proc_info
  821. .type __ixp46x_proc_info, #object
  822. __ixp46x_proc_info:
  823. .long 0x69054200
  824. .long 0xffffff00
  825. .long PMD_TYPE_SECT | \
  826. PMD_SECT_BUFFERABLE | \
  827. PMD_SECT_CACHEABLE | \
  828. PMD_SECT_AP_WRITE | \
  829. PMD_SECT_AP_READ
  830. .long PMD_TYPE_SECT | \
  831. PMD_SECT_AP_WRITE | \
  832. PMD_SECT_AP_READ
  833. b __xscale_setup
  834. .long cpu_arch_name
  835. .long cpu_elf_name
  836. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  837. .long cpu_ixp46x_name
  838. .long xscale_processor_functions
  839. .long v4wbi_tlb_fns
  840. .long xscale_mc_user_fns
  841. .long xscale_cache_fns
  842. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  843. .type __pxa255_proc_info,#object
  844. __pxa255_proc_info:
  845. .long 0x69052d00
  846. .long 0xfffffff0
  847. .long PMD_TYPE_SECT | \
  848. PMD_SECT_BUFFERABLE | \
  849. PMD_SECT_CACHEABLE | \
  850. PMD_SECT_AP_WRITE | \
  851. PMD_SECT_AP_READ
  852. .long PMD_TYPE_SECT | \
  853. PMD_SECT_AP_WRITE | \
  854. PMD_SECT_AP_READ
  855. b __xscale_setup
  856. .long cpu_arch_name
  857. .long cpu_elf_name
  858. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  859. .long cpu_pxa255_name
  860. .long xscale_processor_functions
  861. .long v4wbi_tlb_fns
  862. .long xscale_mc_user_fns
  863. .long xscale_cache_fns
  864. .size __pxa255_proc_info, . - __pxa255_proc_info
  865. .type __pxa270_proc_info,#object
  866. __pxa270_proc_info:
  867. .long 0x69054110
  868. .long 0xfffffff0
  869. .long PMD_TYPE_SECT | \
  870. PMD_SECT_BUFFERABLE | \
  871. PMD_SECT_CACHEABLE | \
  872. PMD_SECT_AP_WRITE | \
  873. PMD_SECT_AP_READ
  874. .long PMD_TYPE_SECT | \
  875. PMD_SECT_AP_WRITE | \
  876. PMD_SECT_AP_READ
  877. b __xscale_setup
  878. .long cpu_arch_name
  879. .long cpu_elf_name
  880. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  881. .long cpu_pxa270_name
  882. .long xscale_processor_functions
  883. .long v4wbi_tlb_fns
  884. .long xscale_mc_user_fns
  885. .long xscale_cache_fns
  886. .size __pxa270_proc_info, . - __pxa270_proc_info