proc-xsc3.S 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. /*
  2. * linux/arch/arm/mm/proc-xsc3.S
  3. *
  4. * Original Author: Matthew Gilbert
  5. * Current Maintainer: Lennert Buytenhek <buytenh@wantstofly.org>
  6. *
  7. * Copyright 2004 (C) Intel Corp.
  8. * Copyright 2005 (C) MontaVista Software, Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. *
  14. * MMU functions for the Intel XScale3 Core (XSC3). The XSC3 core is
  15. * an extension to Intel's original XScale core that adds the following
  16. * features:
  17. *
  18. * - ARMv6 Supersections
  19. * - Low Locality Reference pages (replaces mini-cache)
  20. * - 36-bit addressing
  21. * - L2 cache
  22. * - Cache coherency if chipset supports it
  23. *
  24. * Based on original XScale code by Nicolas Pitre.
  25. */
  26. #include <linux/linkage.h>
  27. #include <linux/init.h>
  28. #include <asm/assembler.h>
  29. #include <asm/hwcap.h>
  30. #include <mach/hardware.h>
  31. #include <asm/pgtable.h>
  32. #include <asm/pgtable-hwdef.h>
  33. #include <asm/page.h>
  34. #include <asm/ptrace.h>
  35. #include "proc-macros.S"
  36. /*
  37. * This is the maximum size of an area which will be flushed. If the
  38. * area is larger than this, then we flush the whole cache.
  39. */
  40. #define MAX_AREA_SIZE 32768
  41. /*
  42. * The cache line size of the L1 I, L1 D and unified L2 cache.
  43. */
  44. #define CACHELINESIZE 32
  45. /*
  46. * The size of the L1 D cache.
  47. */
  48. #define CACHESIZE 32768
  49. /*
  50. * This macro is used to wait for a CP15 write and is needed when we
  51. * have to ensure that the last operation to the coprocessor was
  52. * completed before continuing with operation.
  53. */
  54. .macro cpwait_ret, lr, rd
  55. mrc p15, 0, \rd, c2, c0, 0 @ arbitrary read of cp15
  56. sub pc, \lr, \rd, LSR #32 @ wait for completion and
  57. @ flush instruction pipeline
  58. .endm
  59. /*
  60. * This macro cleans and invalidates the entire L1 D cache.
  61. */
  62. .macro clean_d_cache rd, rs
  63. mov \rd, #0x1f00
  64. orr \rd, \rd, #0x00e0
  65. 1: mcr p15, 0, \rd, c7, c14, 2 @ clean/invalidate L1 D line
  66. adds \rd, \rd, #0x40000000
  67. bcc 1b
  68. subs \rd, \rd, #0x20
  69. bpl 1b
  70. .endm
  71. .text
  72. /*
  73. * cpu_xsc3_proc_init()
  74. *
  75. * Nothing too exciting at the moment
  76. */
  77. ENTRY(cpu_xsc3_proc_init)
  78. mov pc, lr
  79. /*
  80. * cpu_xsc3_proc_fin()
  81. */
  82. ENTRY(cpu_xsc3_proc_fin)
  83. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  84. bic r0, r0, #0x1800 @ ...IZ...........
  85. bic r0, r0, #0x0006 @ .............CA.
  86. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  87. mov pc, lr
  88. /*
  89. * cpu_xsc3_reset(loc)
  90. *
  91. * Perform a soft reset of the system. Put the CPU into the
  92. * same state as it would be if it had been reset, and branch
  93. * to what would be the reset vector.
  94. *
  95. * loc: location to jump to for soft reset
  96. */
  97. .align 5
  98. ENTRY(cpu_xsc3_reset)
  99. mov r1, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  100. msr cpsr_c, r1 @ reset CPSR
  101. mrc p15, 0, r1, c1, c0, 0 @ ctrl register
  102. bic r1, r1, #0x3900 @ ..VIZ..S........
  103. bic r1, r1, #0x0086 @ ........B....CA.
  104. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  105. mcr p15, 0, ip, c7, c7, 0 @ invalidate L1 caches and BTB
  106. bic r1, r1, #0x0001 @ ...............M
  107. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  108. @ CAUTION: MMU turned off from this point. We count on the pipeline
  109. @ already containing those two last instructions to survive.
  110. mcr p15, 0, ip, c8, c7, 0 @ invalidate I and D TLBs
  111. mov pc, r0
  112. /*
  113. * cpu_xsc3_do_idle()
  114. *
  115. * Cause the processor to idle
  116. *
  117. * For now we do nothing but go to idle mode for every case
  118. *
  119. * XScale supports clock switching, but using idle mode support
  120. * allows external hardware to react to system state changes.
  121. */
  122. .align 5
  123. ENTRY(cpu_xsc3_do_idle)
  124. mov r0, #1
  125. mcr p14, 0, r0, c7, c0, 0 @ go to idle
  126. mov pc, lr
  127. /* ================================= CACHE ================================ */
  128. /*
  129. * flush_icache_all()
  130. *
  131. * Unconditionally clean and invalidate the entire icache.
  132. */
  133. ENTRY(xsc3_flush_icache_all)
  134. mov r0, #0
  135. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  136. mov pc, lr
  137. ENDPROC(xsc3_flush_icache_all)
  138. /*
  139. * flush_user_cache_all()
  140. *
  141. * Invalidate all cache entries in a particular address
  142. * space.
  143. */
  144. ENTRY(xsc3_flush_user_cache_all)
  145. /* FALLTHROUGH */
  146. /*
  147. * flush_kern_cache_all()
  148. *
  149. * Clean and invalidate the entire cache.
  150. */
  151. ENTRY(xsc3_flush_kern_cache_all)
  152. mov r2, #VM_EXEC
  153. mov ip, #0
  154. __flush_whole_cache:
  155. clean_d_cache r0, r1
  156. tst r2, #VM_EXEC
  157. mcrne p15, 0, ip, c7, c5, 0 @ invalidate L1 I cache and BTB
  158. mcrne p15, 0, ip, c7, c10, 4 @ data write barrier
  159. mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
  160. mov pc, lr
  161. /*
  162. * flush_user_cache_range(start, end, vm_flags)
  163. *
  164. * Invalidate a range of cache entries in the specified
  165. * address space.
  166. *
  167. * - start - start address (may not be aligned)
  168. * - end - end address (exclusive, may not be aligned)
  169. * - vma - vma_area_struct describing address space
  170. */
  171. .align 5
  172. ENTRY(xsc3_flush_user_cache_range)
  173. mov ip, #0
  174. sub r3, r1, r0 @ calculate total size
  175. cmp r3, #MAX_AREA_SIZE
  176. bhs __flush_whole_cache
  177. 1: tst r2, #VM_EXEC
  178. mcrne p15, 0, r0, c7, c5, 1 @ invalidate L1 I line
  179. mcr p15, 0, r0, c7, c14, 1 @ clean/invalidate L1 D line
  180. add r0, r0, #CACHELINESIZE
  181. cmp r0, r1
  182. blo 1b
  183. tst r2, #VM_EXEC
  184. mcrne p15, 0, ip, c7, c5, 6 @ invalidate BTB
  185. mcrne p15, 0, ip, c7, c10, 4 @ data write barrier
  186. mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
  187. mov pc, lr
  188. /*
  189. * coherent_kern_range(start, end)
  190. *
  191. * Ensure coherency between the I cache and the D cache in the
  192. * region described by start. If you have non-snooping
  193. * Harvard caches, you need to implement this function.
  194. *
  195. * - start - virtual start address
  196. * - end - virtual end address
  197. *
  198. * Note: single I-cache line invalidation isn't used here since
  199. * it also trashes the mini I-cache used by JTAG debuggers.
  200. */
  201. ENTRY(xsc3_coherent_kern_range)
  202. /* FALLTHROUGH */
  203. ENTRY(xsc3_coherent_user_range)
  204. bic r0, r0, #CACHELINESIZE - 1
  205. 1: mcr p15, 0, r0, c7, c10, 1 @ clean L1 D line
  206. add r0, r0, #CACHELINESIZE
  207. cmp r0, r1
  208. blo 1b
  209. mov r0, #0
  210. mcr p15, 0, r0, c7, c5, 0 @ invalidate L1 I cache and BTB
  211. mcr p15, 0, r0, c7, c10, 4 @ data write barrier
  212. mcr p15, 0, r0, c7, c5, 4 @ prefetch flush
  213. mov pc, lr
  214. /*
  215. * flush_kern_dcache_area(void *addr, size_t size)
  216. *
  217. * Ensure no D cache aliasing occurs, either with itself or
  218. * the I cache.
  219. *
  220. * - addr - kernel address
  221. * - size - region size
  222. */
  223. ENTRY(xsc3_flush_kern_dcache_area)
  224. add r1, r0, r1
  225. 1: mcr p15, 0, r0, c7, c14, 1 @ clean/invalidate L1 D line
  226. add r0, r0, #CACHELINESIZE
  227. cmp r0, r1
  228. blo 1b
  229. mov r0, #0
  230. mcr p15, 0, r0, c7, c5, 0 @ invalidate L1 I cache and BTB
  231. mcr p15, 0, r0, c7, c10, 4 @ data write barrier
  232. mcr p15, 0, r0, c7, c5, 4 @ prefetch flush
  233. mov pc, lr
  234. /*
  235. * dma_inv_range(start, end)
  236. *
  237. * Invalidate (discard) the specified virtual address range.
  238. * May not write back any entries. If 'start' or 'end'
  239. * are not cache line aligned, those lines must be written
  240. * back.
  241. *
  242. * - start - virtual start address
  243. * - end - virtual end address
  244. */
  245. xsc3_dma_inv_range:
  246. tst r0, #CACHELINESIZE - 1
  247. bic r0, r0, #CACHELINESIZE - 1
  248. mcrne p15, 0, r0, c7, c10, 1 @ clean L1 D line
  249. tst r1, #CACHELINESIZE - 1
  250. mcrne p15, 0, r1, c7, c10, 1 @ clean L1 D line
  251. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate L1 D line
  252. add r0, r0, #CACHELINESIZE
  253. cmp r0, r1
  254. blo 1b
  255. mcr p15, 0, r0, c7, c10, 4 @ data write barrier
  256. mov pc, lr
  257. /*
  258. * dma_clean_range(start, end)
  259. *
  260. * Clean the specified virtual address range.
  261. *
  262. * - start - virtual start address
  263. * - end - virtual end address
  264. */
  265. xsc3_dma_clean_range:
  266. bic r0, r0, #CACHELINESIZE - 1
  267. 1: mcr p15, 0, r0, c7, c10, 1 @ clean L1 D line
  268. add r0, r0, #CACHELINESIZE
  269. cmp r0, r1
  270. blo 1b
  271. mcr p15, 0, r0, c7, c10, 4 @ data write barrier
  272. mov pc, lr
  273. /*
  274. * dma_flush_range(start, end)
  275. *
  276. * Clean and invalidate the specified virtual address range.
  277. *
  278. * - start - virtual start address
  279. * - end - virtual end address
  280. */
  281. ENTRY(xsc3_dma_flush_range)
  282. bic r0, r0, #CACHELINESIZE - 1
  283. 1: mcr p15, 0, r0, c7, c14, 1 @ clean/invalidate L1 D line
  284. add r0, r0, #CACHELINESIZE
  285. cmp r0, r1
  286. blo 1b
  287. mcr p15, 0, r0, c7, c10, 4 @ data write barrier
  288. mov pc, lr
  289. /*
  290. * dma_map_area(start, size, dir)
  291. * - start - kernel virtual start address
  292. * - size - size of region
  293. * - dir - DMA direction
  294. */
  295. ENTRY(xsc3_dma_map_area)
  296. add r1, r1, r0
  297. cmp r2, #DMA_TO_DEVICE
  298. beq xsc3_dma_clean_range
  299. bcs xsc3_dma_inv_range
  300. b xsc3_dma_flush_range
  301. ENDPROC(xsc3_dma_map_area)
  302. /*
  303. * dma_unmap_area(start, size, dir)
  304. * - start - kernel virtual start address
  305. * - size - size of region
  306. * - dir - DMA direction
  307. */
  308. ENTRY(xsc3_dma_unmap_area)
  309. mov pc, lr
  310. ENDPROC(xsc3_dma_unmap_area)
  311. ENTRY(xsc3_cache_fns)
  312. .long xsc3_flush_icache_all
  313. .long xsc3_flush_kern_cache_all
  314. .long xsc3_flush_user_cache_all
  315. .long xsc3_flush_user_cache_range
  316. .long xsc3_coherent_kern_range
  317. .long xsc3_coherent_user_range
  318. .long xsc3_flush_kern_dcache_area
  319. .long xsc3_dma_map_area
  320. .long xsc3_dma_unmap_area
  321. .long xsc3_dma_flush_range
  322. ENTRY(cpu_xsc3_dcache_clean_area)
  323. 1: mcr p15, 0, r0, c7, c10, 1 @ clean L1 D line
  324. add r0, r0, #CACHELINESIZE
  325. subs r1, r1, #CACHELINESIZE
  326. bhi 1b
  327. mov pc, lr
  328. /* =============================== PageTable ============================== */
  329. /*
  330. * cpu_xsc3_switch_mm(pgd)
  331. *
  332. * Set the translation base pointer to be as described by pgd.
  333. *
  334. * pgd: new page tables
  335. */
  336. .align 5
  337. ENTRY(cpu_xsc3_switch_mm)
  338. clean_d_cache r1, r2
  339. mcr p15, 0, ip, c7, c5, 0 @ invalidate L1 I cache and BTB
  340. mcr p15, 0, ip, c7, c10, 4 @ data write barrier
  341. mcr p15, 0, ip, c7, c5, 4 @ prefetch flush
  342. orr r0, r0, #0x18 @ cache the page table in L2
  343. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  344. mcr p15, 0, ip, c8, c7, 0 @ invalidate I and D TLBs
  345. cpwait_ret lr, ip
  346. /*
  347. * cpu_xsc3_set_pte_ext(ptep, pte, ext)
  348. *
  349. * Set a PTE and flush it out
  350. */
  351. cpu_xsc3_mt_table:
  352. .long 0x00 @ L_PTE_MT_UNCACHED
  353. .long PTE_EXT_TEX(1) @ L_PTE_MT_BUFFERABLE
  354. .long PTE_EXT_TEX(5) | PTE_CACHEABLE @ L_PTE_MT_WRITETHROUGH
  355. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEBACK
  356. .long PTE_EXT_TEX(1) | PTE_BUFFERABLE @ L_PTE_MT_DEV_SHARED
  357. .long 0x00 @ unused
  358. .long 0x00 @ L_PTE_MT_MINICACHE (not present)
  359. .long PTE_EXT_TEX(5) | PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEALLOC (not present?)
  360. .long 0x00 @ unused
  361. .long PTE_EXT_TEX(1) @ L_PTE_MT_DEV_WC
  362. .long 0x00 @ unused
  363. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_DEV_CACHED
  364. .long PTE_EXT_TEX(2) @ L_PTE_MT_DEV_NONSHARED
  365. .long 0x00 @ unused
  366. .long 0x00 @ unused
  367. .long 0x00 @ unused
  368. .align 5
  369. ENTRY(cpu_xsc3_set_pte_ext)
  370. xscale_set_pte_ext_prologue
  371. tst r1, #L_PTE_SHARED @ shared?
  372. and r1, r1, #L_PTE_MT_MASK
  373. adr ip, cpu_xsc3_mt_table
  374. ldr ip, [ip, r1]
  375. orrne r2, r2, #PTE_EXT_COHERENT @ interlock: mask in coherent bit
  376. bic r2, r2, #0x0c @ clear old C,B bits
  377. orr r2, r2, ip
  378. xscale_set_pte_ext_epilogue
  379. mov pc, lr
  380. .ltorg
  381. .align
  382. .globl cpu_xsc3_suspend_size
  383. .equ cpu_xsc3_suspend_size, 4 * 8
  384. #ifdef CONFIG_PM
  385. ENTRY(cpu_xsc3_do_suspend)
  386. stmfd sp!, {r4 - r10, lr}
  387. mrc p14, 0, r4, c6, c0, 0 @ clock configuration, for turbo mode
  388. mrc p15, 0, r5, c15, c1, 0 @ CP access reg
  389. mrc p15, 0, r6, c13, c0, 0 @ PID
  390. mrc p15, 0, r7, c3, c0, 0 @ domain ID
  391. mrc p15, 0, r8, c2, c0, 0 @ translation table base addr
  392. mrc p15, 0, r9, c1, c0, 1 @ auxiliary control reg
  393. mrc p15, 0, r10, c1, c0, 0 @ control reg
  394. bic r4, r4, #2 @ clear frequency change bit
  395. stmia r0, {r1, r4 - r10} @ store v:p offset + cp regs
  396. ldmia sp!, {r4 - r10, pc}
  397. ENDPROC(cpu_xsc3_do_suspend)
  398. ENTRY(cpu_xsc3_do_resume)
  399. ldmia r0, {r1, r4 - r10} @ load v:p offset + cp regs
  400. mov ip, #0
  401. mcr p15, 0, ip, c7, c7, 0 @ invalidate I & D caches, BTB
  402. mcr p15, 0, ip, c7, c10, 4 @ drain write (&fill) buffer
  403. mcr p15, 0, ip, c7, c5, 4 @ flush prefetch buffer
  404. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  405. mcr p14, 0, r4, c6, c0, 0 @ clock configuration, turbo mode.
  406. mcr p15, 0, r5, c15, c1, 0 @ CP access reg
  407. mcr p15, 0, r6, c13, c0, 0 @ PID
  408. mcr p15, 0, r7, c3, c0, 0 @ domain ID
  409. mcr p15, 0, r8, c2, c0, 0 @ translation table base addr
  410. mcr p15, 0, r9, c1, c0, 1 @ auxiliary control reg
  411. @ temporarily map resume_turn_on_mmu into the page table,
  412. @ otherwise prefetch abort occurs after MMU is turned on
  413. mov r0, r10 @ control register
  414. mov r2, r8, lsr #14 @ get TTB0 base
  415. mov r2, r2, lsl #14
  416. ldr r3, =0x542e @ section flags
  417. b cpu_resume_mmu
  418. ENDPROC(cpu_xsc3_do_resume)
  419. #else
  420. #define cpu_xsc3_do_suspend 0
  421. #define cpu_xsc3_do_resume 0
  422. #endif
  423. __CPUINIT
  424. .type __xsc3_setup, #function
  425. __xsc3_setup:
  426. mov r0, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  427. msr cpsr_c, r0
  428. mcr p15, 0, ip, c7, c7, 0 @ invalidate L1 caches and BTB
  429. mcr p15, 0, ip, c7, c10, 4 @ data write barrier
  430. mcr p15, 0, ip, c7, c5, 4 @ prefetch flush
  431. mcr p15, 0, ip, c8, c7, 0 @ invalidate I and D TLBs
  432. orr r4, r4, #0x18 @ cache the page table in L2
  433. mcr p15, 0, r4, c2, c0, 0 @ load page table pointer
  434. mov r0, #1 << 6 @ cp6 access for early sched_clock
  435. mcr p15, 0, r0, c15, c1, 0 @ write CP access register
  436. mrc p15, 0, r0, c1, c0, 1 @ get auxiliary control reg
  437. and r0, r0, #2 @ preserve bit P bit setting
  438. orr r0, r0, #(1 << 10) @ enable L2 for LLR cache
  439. mcr p15, 0, r0, c1, c0, 1 @ set auxiliary control reg
  440. adr r5, xsc3_crval
  441. ldmia r5, {r5, r6}
  442. #ifdef CONFIG_CACHE_XSC3L2
  443. mrc p15, 1, r0, c0, c0, 1 @ get L2 present information
  444. ands r0, r0, #0xf8
  445. orrne r6, r6, #(1 << 26) @ enable L2 if present
  446. #endif
  447. mrc p15, 0, r0, c1, c0, 0 @ get control register
  448. bic r0, r0, r5 @ ..V. ..R. .... ..A.
  449. orr r0, r0, r6 @ ..VI Z..S .... .C.M (mmu)
  450. @ ...I Z..S .... .... (uc)
  451. mov pc, lr
  452. .size __xsc3_setup, . - __xsc3_setup
  453. .type xsc3_crval, #object
  454. xsc3_crval:
  455. crval clear=0x04002202, mmuset=0x00003905, ucset=0x00001900
  456. __INITDATA
  457. /*
  458. * Purpose : Function pointers used to access above functions - all calls
  459. * come through these
  460. */
  461. .type xsc3_processor_functions, #object
  462. ENTRY(xsc3_processor_functions)
  463. .word v5t_early_abort
  464. .word legacy_pabort
  465. .word cpu_xsc3_proc_init
  466. .word cpu_xsc3_proc_fin
  467. .word cpu_xsc3_reset
  468. .word cpu_xsc3_do_idle
  469. .word cpu_xsc3_dcache_clean_area
  470. .word cpu_xsc3_switch_mm
  471. .word cpu_xsc3_set_pte_ext
  472. .word cpu_xsc3_suspend_size
  473. .word cpu_xsc3_do_suspend
  474. .word cpu_xsc3_do_resume
  475. .size xsc3_processor_functions, . - xsc3_processor_functions
  476. .section ".rodata"
  477. .type cpu_arch_name, #object
  478. cpu_arch_name:
  479. .asciz "armv5te"
  480. .size cpu_arch_name, . - cpu_arch_name
  481. .type cpu_elf_name, #object
  482. cpu_elf_name:
  483. .asciz "v5"
  484. .size cpu_elf_name, . - cpu_elf_name
  485. .type cpu_xsc3_name, #object
  486. cpu_xsc3_name:
  487. .asciz "XScale-V3 based processor"
  488. .size cpu_xsc3_name, . - cpu_xsc3_name
  489. .align
  490. .section ".proc.info.init", #alloc, #execinstr
  491. .type __xsc3_proc_info,#object
  492. __xsc3_proc_info:
  493. .long 0x69056000
  494. .long 0xffffe000
  495. .long PMD_TYPE_SECT | \
  496. PMD_SECT_BUFFERABLE | \
  497. PMD_SECT_CACHEABLE | \
  498. PMD_SECT_AP_WRITE | \
  499. PMD_SECT_AP_READ
  500. .long PMD_TYPE_SECT | \
  501. PMD_SECT_AP_WRITE | \
  502. PMD_SECT_AP_READ
  503. b __xsc3_setup
  504. .long cpu_arch_name
  505. .long cpu_elf_name
  506. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  507. .long cpu_xsc3_name
  508. .long xsc3_processor_functions
  509. .long v4wbi_tlb_fns
  510. .long xsc3_mc_user_fns
  511. .long xsc3_cache_fns
  512. .size __xsc3_proc_info, . - __xsc3_proc_info
  513. /* Note: PXA935 changed its implementor ID from Intel to Marvell */
  514. .type __xsc3_pxa935_proc_info,#object
  515. __xsc3_pxa935_proc_info:
  516. .long 0x56056000
  517. .long 0xffffe000
  518. .long PMD_TYPE_SECT | \
  519. PMD_SECT_BUFFERABLE | \
  520. PMD_SECT_CACHEABLE | \
  521. PMD_SECT_AP_WRITE | \
  522. PMD_SECT_AP_READ
  523. .long PMD_TYPE_SECT | \
  524. PMD_SECT_AP_WRITE | \
  525. PMD_SECT_AP_READ
  526. b __xsc3_setup
  527. .long cpu_arch_name
  528. .long cpu_elf_name
  529. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  530. .long cpu_xsc3_name
  531. .long xsc3_processor_functions
  532. .long v4wbi_tlb_fns
  533. .long xsc3_mc_user_fns
  534. .long xsc3_cache_fns
  535. .size __xsc3_pxa935_proc_info, . - __xsc3_pxa935_proc_info