proc-feroceon.S 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. /*
  2. * linux/arch/arm/mm/proc-feroceon.S: MMU functions for Feroceon
  3. *
  4. * Heavily based on proc-arm926.S
  5. * Maintainer: Assaf Hoffman <hoffman@marvell.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #include <linux/linkage.h>
  22. #include <linux/init.h>
  23. #include <asm/assembler.h>
  24. #include <asm/elf.h>
  25. #include <asm/pgtable-hwdef.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 invalidated
  32. * using the single invalidate entry instructions. Anything larger
  33. * than this, and we go for the whole cache.
  34. *
  35. * This value should be chosen such that we choose the cheapest
  36. * alternative.
  37. */
  38. #define CACHE_DLIMIT 16384
  39. /*
  40. * the cache line size of the I and D cache
  41. */
  42. #define CACHE_DLINESIZE 32
  43. .bss
  44. .align 3
  45. __cache_params_loc:
  46. .space 8
  47. .text
  48. __cache_params:
  49. .word __cache_params_loc
  50. /*
  51. * cpu_feroceon_proc_init()
  52. */
  53. ENTRY(cpu_feroceon_proc_init)
  54. mrc p15, 0, r0, c0, c0, 1 @ read cache type register
  55. ldr r1, __cache_params
  56. mov r2, #(16 << 5)
  57. tst r0, #(1 << 16) @ get way
  58. mov r0, r0, lsr #18 @ get cache size order
  59. movne r3, #((4 - 1) << 30) @ 4-way
  60. and r0, r0, #0xf
  61. moveq r3, #0 @ 1-way
  62. mov r2, r2, lsl r0 @ actual cache size
  63. movne r2, r2, lsr #2 @ turned into # of sets
  64. sub r2, r2, #(1 << 5)
  65. stmia r1, {r2, r3}
  66. mov pc, lr
  67. /*
  68. * cpu_feroceon_proc_fin()
  69. */
  70. ENTRY(cpu_feroceon_proc_fin)
  71. stmfd sp!, {lr}
  72. mov ip, #PSR_F_BIT | PSR_I_BIT | SVC_MODE
  73. msr cpsr_c, ip
  74. bl feroceon_flush_kern_cache_all
  75. #if defined(CONFIG_CACHE_FEROCEON_L2) && !defined(CONFIG_L2_CACHE_WRITETHROUGH)
  76. mov r0, #0
  77. mcr p15, 1, r0, c15, c9, 0 @ clean L2
  78. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  79. #endif
  80. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  81. bic r0, r0, #0x1000 @ ...i............
  82. bic r0, r0, #0x000e @ ............wca.
  83. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  84. ldmfd sp!, {pc}
  85. /*
  86. * cpu_feroceon_reset(loc)
  87. *
  88. * Perform a soft reset of the system. Put the CPU into the
  89. * same state as it would be if it had been reset, and branch
  90. * to what would be the reset vector.
  91. *
  92. * loc: location to jump to for soft reset
  93. */
  94. .align 5
  95. ENTRY(cpu_feroceon_reset)
  96. mov ip, #0
  97. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
  98. mcr p15, 0, ip, c7, c10, 4 @ drain WB
  99. #ifdef CONFIG_MMU
  100. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  101. #endif
  102. mrc p15, 0, ip, c1, c0, 0 @ ctrl register
  103. bic ip, ip, #0x000f @ ............wcam
  104. bic ip, ip, #0x1100 @ ...i...s........
  105. mcr p15, 0, ip, c1, c0, 0 @ ctrl register
  106. mov pc, r0
  107. /*
  108. * cpu_feroceon_do_idle()
  109. *
  110. * Called with IRQs disabled
  111. */
  112. .align 5
  113. ENTRY(cpu_feroceon_do_idle)
  114. mov r0, #0
  115. mcr p15, 0, r0, c7, c10, 4 @ Drain write buffer
  116. mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt
  117. mov pc, lr
  118. /*
  119. * flush_user_cache_all()
  120. *
  121. * Clean and invalidate all cache entries in a particular
  122. * address space.
  123. */
  124. .align 5
  125. ENTRY(feroceon_flush_user_cache_all)
  126. /* FALLTHROUGH */
  127. /*
  128. * flush_kern_cache_all()
  129. *
  130. * Clean and invalidate the entire cache.
  131. */
  132. ENTRY(feroceon_flush_kern_cache_all)
  133. mov r2, #VM_EXEC
  134. __flush_whole_cache:
  135. ldr r1, __cache_params
  136. ldmia r1, {r1, r3}
  137. 1: orr ip, r1, r3
  138. 2: mcr p15, 0, ip, c7, c14, 2 @ clean + invalidate D set/way
  139. subs ip, ip, #(1 << 30) @ next way
  140. bcs 2b
  141. subs r1, r1, #(1 << 5) @ next set
  142. bcs 1b
  143. tst r2, #VM_EXEC
  144. mov ip, #0
  145. mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
  146. mcrne p15, 0, ip, c7, c10, 4 @ drain WB
  147. mov pc, lr
  148. /*
  149. * flush_user_cache_range(start, end, flags)
  150. *
  151. * Clean and invalidate a range of cache entries in the
  152. * specified address range.
  153. *
  154. * - start - start address (inclusive)
  155. * - end - end address (exclusive)
  156. * - flags - vm_flags describing address space
  157. */
  158. .align 5
  159. ENTRY(feroceon_flush_user_cache_range)
  160. sub r3, r1, r0 @ calculate total size
  161. cmp r3, #CACHE_DLIMIT
  162. bgt __flush_whole_cache
  163. 1: tst r2, #VM_EXEC
  164. mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
  165. mcrne p15, 0, r0, c7, c5, 1 @ invalidate I entry
  166. add r0, r0, #CACHE_DLINESIZE
  167. mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
  168. mcrne p15, 0, r0, c7, c5, 1 @ invalidate I entry
  169. add r0, r0, #CACHE_DLINESIZE
  170. cmp r0, r1
  171. blo 1b
  172. tst r2, #VM_EXEC
  173. mov ip, #0
  174. mcrne p15, 0, ip, c7, c10, 4 @ drain WB
  175. mov pc, lr
  176. /*
  177. * coherent_kern_range(start, end)
  178. *
  179. * Ensure coherency between the Icache and the Dcache in the
  180. * region described by start, end. If you have non-snooping
  181. * Harvard caches, you need to implement this function.
  182. *
  183. * - start - virtual start address
  184. * - end - virtual end address
  185. */
  186. .align 5
  187. ENTRY(feroceon_coherent_kern_range)
  188. /* FALLTHROUGH */
  189. /*
  190. * coherent_user_range(start, end)
  191. *
  192. * Ensure coherency between the Icache and the Dcache in the
  193. * region described by start, end. If you have non-snooping
  194. * Harvard caches, you need to implement this function.
  195. *
  196. * - start - virtual start address
  197. * - end - virtual end address
  198. */
  199. ENTRY(feroceon_coherent_user_range)
  200. bic r0, r0, #CACHE_DLINESIZE - 1
  201. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  202. mcr p15, 0, r0, c7, c5, 1 @ invalidate I entry
  203. add r0, r0, #CACHE_DLINESIZE
  204. cmp r0, r1
  205. blo 1b
  206. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  207. mov pc, lr
  208. /*
  209. * flush_kern_dcache_page(void *page)
  210. *
  211. * Ensure no D cache aliasing occurs, either with itself or
  212. * the I cache
  213. *
  214. * - addr - page aligned address
  215. */
  216. .align 5
  217. ENTRY(feroceon_flush_kern_dcache_page)
  218. add r1, r0, #PAGE_SZ
  219. 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
  220. add r0, r0, #CACHE_DLINESIZE
  221. cmp r0, r1
  222. blo 1b
  223. mov r0, #0
  224. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  225. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  226. mov pc, lr
  227. .align 5
  228. ENTRY(feroceon_range_flush_kern_dcache_page)
  229. mrs r2, cpsr
  230. add r1, r0, #PAGE_SZ - CACHE_DLINESIZE @ top addr is inclusive
  231. orr r3, r2, #PSR_I_BIT
  232. msr cpsr_c, r3 @ disable interrupts
  233. mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
  234. mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
  235. msr cpsr_c, r2 @ restore interrupts
  236. mov r0, #0
  237. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  238. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  239. mov pc, lr
  240. /*
  241. * dma_inv_range(start, end)
  242. *
  243. * Invalidate (discard) the specified virtual address range.
  244. * May not write back any entries. If 'start' or 'end'
  245. * are not cache line aligned, those lines must be written
  246. * back.
  247. *
  248. * - start - virtual start address
  249. * - end - virtual end address
  250. *
  251. * (same as v4wb)
  252. */
  253. .align 5
  254. ENTRY(feroceon_dma_inv_range)
  255. tst r0, #CACHE_DLINESIZE - 1
  256. bic r0, r0, #CACHE_DLINESIZE - 1
  257. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  258. tst r1, #CACHE_DLINESIZE - 1
  259. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  260. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  261. add r0, r0, #CACHE_DLINESIZE
  262. cmp r0, r1
  263. blo 1b
  264. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  265. mov pc, lr
  266. .align 5
  267. ENTRY(feroceon_range_dma_inv_range)
  268. mrs r2, cpsr
  269. tst r0, #CACHE_DLINESIZE - 1
  270. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  271. tst r1, #CACHE_DLINESIZE - 1
  272. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  273. cmp r1, r0
  274. subne r1, r1, #1 @ top address is inclusive
  275. orr r3, r2, #PSR_I_BIT
  276. msr cpsr_c, r3 @ disable interrupts
  277. mcr p15, 5, r0, c15, c14, 0 @ D inv range start
  278. mcr p15, 5, r1, c15, c14, 1 @ D inv range top
  279. msr cpsr_c, r2 @ restore interrupts
  280. mov pc, lr
  281. /*
  282. * dma_clean_range(start, end)
  283. *
  284. * Clean the specified virtual address range.
  285. *
  286. * - start - virtual start address
  287. * - end - virtual end address
  288. *
  289. * (same as v4wb)
  290. */
  291. .align 5
  292. ENTRY(feroceon_dma_clean_range)
  293. bic r0, r0, #CACHE_DLINESIZE - 1
  294. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  295. add r0, r0, #CACHE_DLINESIZE
  296. cmp r0, r1
  297. blo 1b
  298. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  299. mov pc, lr
  300. .align 5
  301. ENTRY(feroceon_range_dma_clean_range)
  302. mrs r2, cpsr
  303. cmp r1, r0
  304. subne r1, r1, #1 @ top address is inclusive
  305. orr r3, r2, #PSR_I_BIT
  306. msr cpsr_c, r3 @ disable interrupts
  307. mcr p15, 5, r0, c15, c13, 0 @ D clean range start
  308. mcr p15, 5, r1, c15, c13, 1 @ D clean range top
  309. msr cpsr_c, r2 @ restore interrupts
  310. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  311. mov pc, lr
  312. /*
  313. * dma_flush_range(start, end)
  314. *
  315. * Clean and invalidate the specified virtual address range.
  316. *
  317. * - start - virtual start address
  318. * - end - virtual end address
  319. */
  320. .align 5
  321. ENTRY(feroceon_dma_flush_range)
  322. bic r0, r0, #CACHE_DLINESIZE - 1
  323. 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
  324. add r0, r0, #CACHE_DLINESIZE
  325. cmp r0, r1
  326. blo 1b
  327. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  328. mov pc, lr
  329. .align 5
  330. ENTRY(feroceon_range_dma_flush_range)
  331. mrs r2, cpsr
  332. cmp r1, r0
  333. subne r1, r1, #1 @ top address is inclusive
  334. orr r3, r2, #PSR_I_BIT
  335. msr cpsr_c, r3 @ disable interrupts
  336. mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
  337. mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
  338. msr cpsr_c, r2 @ restore interrupts
  339. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  340. mov pc, lr
  341. ENTRY(feroceon_cache_fns)
  342. .long feroceon_flush_kern_cache_all
  343. .long feroceon_flush_user_cache_all
  344. .long feroceon_flush_user_cache_range
  345. .long feroceon_coherent_kern_range
  346. .long feroceon_coherent_user_range
  347. .long feroceon_flush_kern_dcache_page
  348. .long feroceon_dma_inv_range
  349. .long feroceon_dma_clean_range
  350. .long feroceon_dma_flush_range
  351. ENTRY(feroceon_range_cache_fns)
  352. .long feroceon_flush_kern_cache_all
  353. .long feroceon_flush_user_cache_all
  354. .long feroceon_flush_user_cache_range
  355. .long feroceon_coherent_kern_range
  356. .long feroceon_coherent_user_range
  357. .long feroceon_range_flush_kern_dcache_page
  358. .long feroceon_range_dma_inv_range
  359. .long feroceon_range_dma_clean_range
  360. .long feroceon_range_dma_flush_range
  361. .align 5
  362. ENTRY(cpu_feroceon_dcache_clean_area)
  363. #if defined(CONFIG_CACHE_FEROCEON_L2) && !defined(CONFIG_L2_CACHE_WRITETHROUGH)
  364. mov r2, r0
  365. mov r3, r1
  366. #endif
  367. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  368. add r0, r0, #CACHE_DLINESIZE
  369. subs r1, r1, #CACHE_DLINESIZE
  370. bhi 1b
  371. #if defined(CONFIG_CACHE_FEROCEON_L2) && !defined(CONFIG_L2_CACHE_WRITETHROUGH)
  372. 1: mcr p15, 1, r2, c15, c9, 1 @ clean L2 entry
  373. add r2, r2, #CACHE_DLINESIZE
  374. subs r3, r3, #CACHE_DLINESIZE
  375. bhi 1b
  376. #endif
  377. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  378. mov pc, lr
  379. /* =============================== PageTable ============================== */
  380. /*
  381. * cpu_feroceon_switch_mm(pgd)
  382. *
  383. * Set the translation base pointer to be as described by pgd.
  384. *
  385. * pgd: new page tables
  386. */
  387. .align 5
  388. ENTRY(cpu_feroceon_switch_mm)
  389. #ifdef CONFIG_MMU
  390. /*
  391. * Note: we wish to call __flush_whole_cache but we need to preserve
  392. * lr to do so. The only way without touching main memory is to
  393. * use r2 which is normally used to test the VM_EXEC flag, and
  394. * compensate locally for the skipped ops if it is not set.
  395. */
  396. mov r2, lr @ abuse r2 to preserve lr
  397. bl __flush_whole_cache
  398. @ if r2 contains the VM_EXEC bit then the next 2 ops are done already
  399. tst r2, #VM_EXEC
  400. mcreq p15, 0, ip, c7, c5, 0 @ invalidate I cache
  401. mcreq p15, 0, ip, c7, c10, 4 @ drain WB
  402. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  403. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  404. mov pc, r2
  405. #else
  406. mov pc, lr
  407. #endif
  408. /*
  409. * cpu_feroceon_set_pte_ext(ptep, pte, ext)
  410. *
  411. * Set a PTE and flush it out
  412. */
  413. .align 5
  414. ENTRY(cpu_feroceon_set_pte_ext)
  415. #ifdef CONFIG_MMU
  416. str r1, [r0], #-2048 @ linux version
  417. eor r1, r1, #L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_WRITE | L_PTE_DIRTY
  418. bic r2, r1, #PTE_SMALL_AP_MASK
  419. bic r2, r2, #PTE_TYPE_MASK
  420. orr r2, r2, #PTE_TYPE_SMALL
  421. tst r1, #L_PTE_USER @ User?
  422. orrne r2, r2, #PTE_SMALL_AP_URO_SRW
  423. tst r1, #L_PTE_WRITE | L_PTE_DIRTY @ Write and Dirty?
  424. orreq r2, r2, #PTE_SMALL_AP_UNO_SRW
  425. tst r1, #L_PTE_PRESENT | L_PTE_YOUNG @ Present and Young?
  426. movne r2, #0
  427. str r2, [r0] @ hardware version
  428. mov r0, r0
  429. mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  430. #if defined(CONFIG_CACHE_FEROCEON_L2) && !defined(CONFIG_L2_CACHE_WRITETHROUGH)
  431. mcr p15, 1, r0, c15, c9, 1 @ clean L2 entry
  432. #endif
  433. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  434. #endif
  435. mov pc, lr
  436. __INIT
  437. .type __feroceon_setup, #function
  438. __feroceon_setup:
  439. mov r0, #0
  440. mcr p15, 0, r0, c7, c7 @ invalidate I,D caches on v4
  441. mcr p15, 0, r0, c7, c10, 4 @ drain write buffer on v4
  442. #ifdef CONFIG_MMU
  443. mcr p15, 0, r0, c8, c7 @ invalidate I,D TLBs on v4
  444. #endif
  445. adr r5, feroceon_crval
  446. ldmia r5, {r5, r6}
  447. mrc p15, 0, r0, c1, c0 @ get control register v4
  448. bic r0, r0, r5
  449. orr r0, r0, r6
  450. mov pc, lr
  451. .size __feroceon_setup, . - __feroceon_setup
  452. /*
  453. * B
  454. * R P
  455. * .RVI UFRS BLDP WCAM
  456. * .011 .001 ..11 0101
  457. *
  458. */
  459. .type feroceon_crval, #object
  460. feroceon_crval:
  461. crval clear=0x0000773f, mmuset=0x00003135, ucset=0x00001134
  462. __INITDATA
  463. /*
  464. * Purpose : Function pointers used to access above functions - all calls
  465. * come through these
  466. */
  467. .type feroceon_processor_functions, #object
  468. feroceon_processor_functions:
  469. .word v5t_early_abort
  470. .word pabort_noifar
  471. .word cpu_feroceon_proc_init
  472. .word cpu_feroceon_proc_fin
  473. .word cpu_feroceon_reset
  474. .word cpu_feroceon_do_idle
  475. .word cpu_feroceon_dcache_clean_area
  476. .word cpu_feroceon_switch_mm
  477. .word cpu_feroceon_set_pte_ext
  478. .size feroceon_processor_functions, . - feroceon_processor_functions
  479. .section ".rodata"
  480. .type cpu_arch_name, #object
  481. cpu_arch_name:
  482. .asciz "armv5te"
  483. .size cpu_arch_name, . - cpu_arch_name
  484. .type cpu_elf_name, #object
  485. cpu_elf_name:
  486. .asciz "v5"
  487. .size cpu_elf_name, . - cpu_elf_name
  488. .type cpu_feroceon_name, #object
  489. cpu_feroceon_name:
  490. .asciz "Feroceon"
  491. .size cpu_feroceon_name, . - cpu_feroceon_name
  492. .type cpu_88fr531_name, #object
  493. cpu_88fr531_name:
  494. .asciz "Feroceon 88FR531-vd"
  495. .size cpu_88fr531_name, . - cpu_88fr531_name
  496. .type cpu_88fr571_name, #object
  497. cpu_88fr571_name:
  498. .asciz "Feroceon 88FR571-vd"
  499. .size cpu_88fr571_name, . - cpu_88fr571_name
  500. .type cpu_88fr131_name, #object
  501. cpu_88fr131_name:
  502. .asciz "Feroceon 88FR131"
  503. .size cpu_88fr131_name, . - cpu_88fr131_name
  504. .align
  505. .section ".proc.info.init", #alloc, #execinstr
  506. #ifdef CONFIG_CPU_FEROCEON_OLD_ID
  507. .type __feroceon_old_id_proc_info,#object
  508. __feroceon_old_id_proc_info:
  509. .long 0x41009260
  510. .long 0xff00fff0
  511. .long PMD_TYPE_SECT | \
  512. PMD_SECT_BUFFERABLE | \
  513. PMD_SECT_CACHEABLE | \
  514. PMD_BIT4 | \
  515. PMD_SECT_AP_WRITE | \
  516. PMD_SECT_AP_READ
  517. .long PMD_TYPE_SECT | \
  518. PMD_BIT4 | \
  519. PMD_SECT_AP_WRITE | \
  520. PMD_SECT_AP_READ
  521. b __feroceon_setup
  522. .long cpu_arch_name
  523. .long cpu_elf_name
  524. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  525. .long cpu_feroceon_name
  526. .long feroceon_processor_functions
  527. .long v4wbi_tlb_fns
  528. .long feroceon_user_fns
  529. .long feroceon_cache_fns
  530. .size __feroceon_old_id_proc_info, . - __feroceon_old_id_proc_info
  531. #endif
  532. .type __88fr531_proc_info,#object
  533. __88fr531_proc_info:
  534. .long 0x56055310
  535. .long 0xfffffff0
  536. .long PMD_TYPE_SECT | \
  537. PMD_SECT_BUFFERABLE | \
  538. PMD_SECT_CACHEABLE | \
  539. PMD_BIT4 | \
  540. PMD_SECT_AP_WRITE | \
  541. PMD_SECT_AP_READ
  542. .long PMD_TYPE_SECT | \
  543. PMD_BIT4 | \
  544. PMD_SECT_AP_WRITE | \
  545. PMD_SECT_AP_READ
  546. b __feroceon_setup
  547. .long cpu_arch_name
  548. .long cpu_elf_name
  549. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  550. .long cpu_88fr531_name
  551. .long feroceon_processor_functions
  552. .long v4wbi_tlb_fns
  553. .long feroceon_user_fns
  554. .long feroceon_cache_fns
  555. .size __88fr531_proc_info, . - __88fr531_proc_info
  556. .type __88fr571_proc_info,#object
  557. __88fr571_proc_info:
  558. .long 0x56155710
  559. .long 0xfffffff0
  560. .long PMD_TYPE_SECT | \
  561. PMD_SECT_BUFFERABLE | \
  562. PMD_SECT_CACHEABLE | \
  563. PMD_BIT4 | \
  564. PMD_SECT_AP_WRITE | \
  565. PMD_SECT_AP_READ
  566. .long PMD_TYPE_SECT | \
  567. PMD_BIT4 | \
  568. PMD_SECT_AP_WRITE | \
  569. PMD_SECT_AP_READ
  570. b __feroceon_setup
  571. .long cpu_arch_name
  572. .long cpu_elf_name
  573. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  574. .long cpu_88fr571_name
  575. .long feroceon_processor_functions
  576. .long v4wbi_tlb_fns
  577. .long feroceon_user_fns
  578. .long feroceon_range_cache_fns
  579. .size __88fr571_proc_info, . - __88fr571_proc_info
  580. .type __88fr131_proc_info,#object
  581. __88fr131_proc_info:
  582. .long 0x56251310
  583. .long 0xfffffff0
  584. .long PMD_TYPE_SECT | \
  585. PMD_SECT_BUFFERABLE | \
  586. PMD_SECT_CACHEABLE | \
  587. PMD_BIT4 | \
  588. PMD_SECT_AP_WRITE | \
  589. PMD_SECT_AP_READ
  590. .long PMD_TYPE_SECT | \
  591. PMD_BIT4 | \
  592. PMD_SECT_AP_WRITE | \
  593. PMD_SECT_AP_READ
  594. b __feroceon_setup
  595. .long cpu_arch_name
  596. .long cpu_elf_name
  597. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  598. .long cpu_88fr131_name
  599. .long feroceon_processor_functions
  600. .long v4wbi_tlb_fns
  601. .long feroceon_user_fns
  602. .long feroceon_range_cache_fns
  603. .size __88fr131_proc_info, . - __88fr131_proc_info