proc-feroceon.S 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  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/hwcap.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) && \
  76. !defined(CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH)
  77. mov r0, #0
  78. mcr p15, 1, r0, c15, c9, 0 @ clean L2
  79. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  80. #endif
  81. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  82. bic r0, r0, #0x1000 @ ...i............
  83. bic r0, r0, #0x000e @ ............wca.
  84. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  85. ldmfd sp!, {pc}
  86. /*
  87. * cpu_feroceon_reset(loc)
  88. *
  89. * Perform a soft reset of the system. Put the CPU into the
  90. * same state as it would be if it had been reset, and branch
  91. * to what would be the reset vector.
  92. *
  93. * loc: location to jump to for soft reset
  94. */
  95. .align 5
  96. ENTRY(cpu_feroceon_reset)
  97. mov ip, #0
  98. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
  99. mcr p15, 0, ip, c7, c10, 4 @ drain WB
  100. #ifdef CONFIG_MMU
  101. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  102. #endif
  103. mrc p15, 0, ip, c1, c0, 0 @ ctrl register
  104. bic ip, ip, #0x000f @ ............wcam
  105. bic ip, ip, #0x1100 @ ...i...s........
  106. mcr p15, 0, ip, c1, c0, 0 @ ctrl register
  107. mov pc, r0
  108. /*
  109. * cpu_feroceon_do_idle()
  110. *
  111. * Called with IRQs disabled
  112. */
  113. .align 5
  114. ENTRY(cpu_feroceon_do_idle)
  115. mov r0, #0
  116. mcr p15, 0, r0, c7, c10, 4 @ Drain write buffer
  117. mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt
  118. mov pc, lr
  119. /*
  120. * flush_user_cache_all()
  121. *
  122. * Clean and invalidate all cache entries in a particular
  123. * address space.
  124. */
  125. .align 5
  126. ENTRY(feroceon_flush_user_cache_all)
  127. /* FALLTHROUGH */
  128. /*
  129. * flush_kern_cache_all()
  130. *
  131. * Clean and invalidate the entire cache.
  132. */
  133. ENTRY(feroceon_flush_kern_cache_all)
  134. mov r2, #VM_EXEC
  135. __flush_whole_cache:
  136. ldr r1, __cache_params
  137. ldmia r1, {r1, r3}
  138. 1: orr ip, r1, r3
  139. 2: mcr p15, 0, ip, c7, c14, 2 @ clean + invalidate D set/way
  140. subs ip, ip, #(1 << 30) @ next way
  141. bcs 2b
  142. subs r1, r1, #(1 << 5) @ next set
  143. bcs 1b
  144. tst r2, #VM_EXEC
  145. mov ip, #0
  146. mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
  147. mcrne p15, 0, ip, c7, c10, 4 @ drain WB
  148. mov pc, lr
  149. /*
  150. * flush_user_cache_range(start, end, flags)
  151. *
  152. * Clean and invalidate a range of cache entries in the
  153. * specified address range.
  154. *
  155. * - start - start address (inclusive)
  156. * - end - end address (exclusive)
  157. * - flags - vm_flags describing address space
  158. */
  159. .align 5
  160. ENTRY(feroceon_flush_user_cache_range)
  161. sub r3, r1, r0 @ calculate total size
  162. cmp r3, #CACHE_DLIMIT
  163. bgt __flush_whole_cache
  164. 1: tst r2, #VM_EXEC
  165. mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
  166. mcrne p15, 0, r0, c7, c5, 1 @ invalidate I entry
  167. add r0, r0, #CACHE_DLINESIZE
  168. mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
  169. mcrne p15, 0, r0, c7, c5, 1 @ invalidate I entry
  170. add r0, r0, #CACHE_DLINESIZE
  171. cmp r0, r1
  172. blo 1b
  173. tst r2, #VM_EXEC
  174. mov ip, #0
  175. mcrne p15, 0, ip, c7, c10, 4 @ drain WB
  176. mov pc, lr
  177. /*
  178. * coherent_kern_range(start, end)
  179. *
  180. * Ensure coherency between the Icache and the Dcache in the
  181. * region described by start, end. If you have non-snooping
  182. * Harvard caches, you need to implement this function.
  183. *
  184. * - start - virtual start address
  185. * - end - virtual end address
  186. */
  187. .align 5
  188. ENTRY(feroceon_coherent_kern_range)
  189. /* FALLTHROUGH */
  190. /*
  191. * coherent_user_range(start, end)
  192. *
  193. * Ensure coherency between the Icache and the Dcache in the
  194. * region described by start, end. If you have non-snooping
  195. * Harvard caches, you need to implement this function.
  196. *
  197. * - start - virtual start address
  198. * - end - virtual end address
  199. */
  200. ENTRY(feroceon_coherent_user_range)
  201. bic r0, r0, #CACHE_DLINESIZE - 1
  202. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  203. mcr p15, 0, r0, c7, c5, 1 @ invalidate I entry
  204. add r0, r0, #CACHE_DLINESIZE
  205. cmp r0, r1
  206. blo 1b
  207. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  208. mov pc, lr
  209. /*
  210. * flush_kern_dcache_area(void *addr, size_t size)
  211. *
  212. * Ensure no D cache aliasing occurs, either with itself or
  213. * the I cache
  214. *
  215. * - addr - kernel address
  216. * - size - region size
  217. */
  218. .align 5
  219. ENTRY(feroceon_flush_kern_dcache_area)
  220. add r1, r0, r1
  221. 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
  222. add r0, r0, #CACHE_DLINESIZE
  223. cmp r0, r1
  224. blo 1b
  225. mov r0, #0
  226. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  227. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  228. mov pc, lr
  229. .align 5
  230. ENTRY(feroceon_range_flush_kern_dcache_area)
  231. mrs r2, cpsr
  232. add r1, r0, #PAGE_SZ - CACHE_DLINESIZE @ top addr is inclusive
  233. orr r3, r2, #PSR_I_BIT
  234. msr cpsr_c, r3 @ disable interrupts
  235. mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
  236. mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
  237. msr cpsr_c, r2 @ restore interrupts
  238. mov r0, #0
  239. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  240. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  241. mov pc, lr
  242. /*
  243. * dma_inv_range(start, end)
  244. *
  245. * Invalidate (discard) the specified virtual address range.
  246. * May not write back any entries. If 'start' or 'end'
  247. * are not cache line aligned, those lines must be written
  248. * back.
  249. *
  250. * - start - virtual start address
  251. * - end - virtual end address
  252. *
  253. * (same as v4wb)
  254. */
  255. .align 5
  256. feroceon_dma_inv_range:
  257. tst r0, #CACHE_DLINESIZE - 1
  258. bic r0, r0, #CACHE_DLINESIZE - 1
  259. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  260. tst r1, #CACHE_DLINESIZE - 1
  261. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  262. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  263. add r0, r0, #CACHE_DLINESIZE
  264. cmp r0, r1
  265. blo 1b
  266. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  267. mov pc, lr
  268. .align 5
  269. feroceon_range_dma_inv_range:
  270. mrs r2, cpsr
  271. tst r0, #CACHE_DLINESIZE - 1
  272. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  273. tst r1, #CACHE_DLINESIZE - 1
  274. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  275. cmp r1, r0
  276. subne r1, r1, #1 @ top address is inclusive
  277. orr r3, r2, #PSR_I_BIT
  278. msr cpsr_c, r3 @ disable interrupts
  279. mcr p15, 5, r0, c15, c14, 0 @ D inv range start
  280. mcr p15, 5, r1, c15, c14, 1 @ D inv range top
  281. msr cpsr_c, r2 @ restore interrupts
  282. mov pc, lr
  283. /*
  284. * dma_clean_range(start, end)
  285. *
  286. * Clean the specified virtual address range.
  287. *
  288. * - start - virtual start address
  289. * - end - virtual end address
  290. *
  291. * (same as v4wb)
  292. */
  293. .align 5
  294. feroceon_dma_clean_range:
  295. bic r0, r0, #CACHE_DLINESIZE - 1
  296. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  297. add r0, r0, #CACHE_DLINESIZE
  298. cmp r0, r1
  299. blo 1b
  300. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  301. mov pc, lr
  302. .align 5
  303. feroceon_range_dma_clean_range:
  304. mrs r2, cpsr
  305. cmp r1, r0
  306. subne r1, r1, #1 @ top address is inclusive
  307. orr r3, r2, #PSR_I_BIT
  308. msr cpsr_c, r3 @ disable interrupts
  309. mcr p15, 5, r0, c15, c13, 0 @ D clean range start
  310. mcr p15, 5, r1, c15, c13, 1 @ D clean range top
  311. msr cpsr_c, r2 @ restore interrupts
  312. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  313. mov pc, lr
  314. /*
  315. * dma_flush_range(start, end)
  316. *
  317. * Clean and invalidate the specified virtual address range.
  318. *
  319. * - start - virtual start address
  320. * - end - virtual end address
  321. */
  322. .align 5
  323. ENTRY(feroceon_dma_flush_range)
  324. bic r0, r0, #CACHE_DLINESIZE - 1
  325. 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
  326. add r0, r0, #CACHE_DLINESIZE
  327. cmp r0, r1
  328. blo 1b
  329. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  330. mov pc, lr
  331. .align 5
  332. ENTRY(feroceon_range_dma_flush_range)
  333. mrs r2, cpsr
  334. cmp r1, r0
  335. subne r1, r1, #1 @ top address is inclusive
  336. orr r3, r2, #PSR_I_BIT
  337. msr cpsr_c, r3 @ disable interrupts
  338. mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
  339. mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
  340. msr cpsr_c, r2 @ restore interrupts
  341. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  342. mov pc, lr
  343. /*
  344. * dma_map_area(start, size, dir)
  345. * - start - kernel virtual start address
  346. * - size - size of region
  347. * - dir - DMA direction
  348. */
  349. ENTRY(feroceon_dma_map_area)
  350. add r1, r1, r0
  351. cmp r2, #DMA_TO_DEVICE
  352. beq feroceon_dma_clean_range
  353. bcs feroceon_dma_inv_range
  354. b feroceon_dma_flush_range
  355. ENDPROC(feroceon_dma_map_area)
  356. /*
  357. * dma_map_area(start, size, dir)
  358. * - start - kernel virtual start address
  359. * - size - size of region
  360. * - dir - DMA direction
  361. */
  362. ENTRY(feroceon_range_dma_map_area)
  363. add r1, r1, r0
  364. cmp r2, #DMA_TO_DEVICE
  365. beq feroceon_range_dma_clean_range
  366. bcs feroceon_range_dma_inv_range
  367. b feroceon_range_dma_flush_range
  368. ENDPROC(feroceon_range_dma_map_area)
  369. /*
  370. * dma_unmap_area(start, size, dir)
  371. * - start - kernel virtual start address
  372. * - size - size of region
  373. * - dir - DMA direction
  374. */
  375. ENTRY(feroceon_dma_unmap_area)
  376. mov pc, lr
  377. ENDPROC(feroceon_dma_unmap_area)
  378. ENTRY(feroceon_cache_fns)
  379. .long feroceon_flush_kern_cache_all
  380. .long feroceon_flush_user_cache_all
  381. .long feroceon_flush_user_cache_range
  382. .long feroceon_coherent_kern_range
  383. .long feroceon_coherent_user_range
  384. .long feroceon_flush_kern_dcache_area
  385. .long feroceon_dma_map_area
  386. .long feroceon_dma_unmap_area
  387. .long feroceon_dma_flush_range
  388. ENTRY(feroceon_range_cache_fns)
  389. .long feroceon_flush_kern_cache_all
  390. .long feroceon_flush_user_cache_all
  391. .long feroceon_flush_user_cache_range
  392. .long feroceon_coherent_kern_range
  393. .long feroceon_coherent_user_range
  394. .long feroceon_range_flush_kern_dcache_area
  395. .long feroceon_range_dma_map_area
  396. .long feroceon_dma_unmap_area
  397. .long feroceon_range_dma_flush_range
  398. .align 5
  399. ENTRY(cpu_feroceon_dcache_clean_area)
  400. #if defined(CONFIG_CACHE_FEROCEON_L2) && \
  401. !defined(CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH)
  402. mov r2, r0
  403. mov r3, r1
  404. #endif
  405. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  406. add r0, r0, #CACHE_DLINESIZE
  407. subs r1, r1, #CACHE_DLINESIZE
  408. bhi 1b
  409. #if defined(CONFIG_CACHE_FEROCEON_L2) && \
  410. !defined(CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH)
  411. 1: mcr p15, 1, r2, c15, c9, 1 @ clean L2 entry
  412. add r2, r2, #CACHE_DLINESIZE
  413. subs r3, r3, #CACHE_DLINESIZE
  414. bhi 1b
  415. #endif
  416. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  417. mov pc, lr
  418. /* =============================== PageTable ============================== */
  419. /*
  420. * cpu_feroceon_switch_mm(pgd)
  421. *
  422. * Set the translation base pointer to be as described by pgd.
  423. *
  424. * pgd: new page tables
  425. */
  426. .align 5
  427. ENTRY(cpu_feroceon_switch_mm)
  428. #ifdef CONFIG_MMU
  429. /*
  430. * Note: we wish to call __flush_whole_cache but we need to preserve
  431. * lr to do so. The only way without touching main memory is to
  432. * use r2 which is normally used to test the VM_EXEC flag, and
  433. * compensate locally for the skipped ops if it is not set.
  434. */
  435. mov r2, lr @ abuse r2 to preserve lr
  436. bl __flush_whole_cache
  437. @ if r2 contains the VM_EXEC bit then the next 2 ops are done already
  438. tst r2, #VM_EXEC
  439. mcreq p15, 0, ip, c7, c5, 0 @ invalidate I cache
  440. mcreq p15, 0, ip, c7, c10, 4 @ drain WB
  441. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  442. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  443. mov pc, r2
  444. #else
  445. mov pc, lr
  446. #endif
  447. /*
  448. * cpu_feroceon_set_pte_ext(ptep, pte, ext)
  449. *
  450. * Set a PTE and flush it out
  451. */
  452. .align 5
  453. ENTRY(cpu_feroceon_set_pte_ext)
  454. #ifdef CONFIG_MMU
  455. armv3_set_pte_ext wc_disable=0
  456. mov r0, r0
  457. mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  458. #if defined(CONFIG_CACHE_FEROCEON_L2) && \
  459. !defined(CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH)
  460. mcr p15, 1, r0, c15, c9, 1 @ clean L2 entry
  461. #endif
  462. mcr p15, 0, r0, c7, c10, 4 @ drain WB
  463. #endif
  464. mov pc, lr
  465. __INIT
  466. .type __feroceon_setup, #function
  467. __feroceon_setup:
  468. mov r0, #0
  469. mcr p15, 0, r0, c7, c7 @ invalidate I,D caches on v4
  470. mcr p15, 0, r0, c7, c10, 4 @ drain write buffer on v4
  471. #ifdef CONFIG_MMU
  472. mcr p15, 0, r0, c8, c7 @ invalidate I,D TLBs on v4
  473. #endif
  474. adr r5, feroceon_crval
  475. ldmia r5, {r5, r6}
  476. mrc p15, 0, r0, c1, c0 @ get control register v4
  477. bic r0, r0, r5
  478. orr r0, r0, r6
  479. mov pc, lr
  480. .size __feroceon_setup, . - __feroceon_setup
  481. /*
  482. * B
  483. * R P
  484. * .RVI UFRS BLDP WCAM
  485. * .011 .001 ..11 0101
  486. *
  487. */
  488. .type feroceon_crval, #object
  489. feroceon_crval:
  490. crval clear=0x0000773f, mmuset=0x00003135, ucset=0x00001134
  491. __INITDATA
  492. /*
  493. * Purpose : Function pointers used to access above functions - all calls
  494. * come through these
  495. */
  496. .type feroceon_processor_functions, #object
  497. feroceon_processor_functions:
  498. .word v5t_early_abort
  499. .word legacy_pabort
  500. .word cpu_feroceon_proc_init
  501. .word cpu_feroceon_proc_fin
  502. .word cpu_feroceon_reset
  503. .word cpu_feroceon_do_idle
  504. .word cpu_feroceon_dcache_clean_area
  505. .word cpu_feroceon_switch_mm
  506. .word cpu_feroceon_set_pte_ext
  507. .size feroceon_processor_functions, . - feroceon_processor_functions
  508. .section ".rodata"
  509. .type cpu_arch_name, #object
  510. cpu_arch_name:
  511. .asciz "armv5te"
  512. .size cpu_arch_name, . - cpu_arch_name
  513. .type cpu_elf_name, #object
  514. cpu_elf_name:
  515. .asciz "v5"
  516. .size cpu_elf_name, . - cpu_elf_name
  517. .type cpu_feroceon_name, #object
  518. cpu_feroceon_name:
  519. .asciz "Feroceon"
  520. .size cpu_feroceon_name, . - cpu_feroceon_name
  521. .type cpu_88fr531_name, #object
  522. cpu_88fr531_name:
  523. .asciz "Feroceon 88FR531-vd"
  524. .size cpu_88fr531_name, . - cpu_88fr531_name
  525. .type cpu_88fr571_name, #object
  526. cpu_88fr571_name:
  527. .asciz "Feroceon 88FR571-vd"
  528. .size cpu_88fr571_name, . - cpu_88fr571_name
  529. .type cpu_88fr131_name, #object
  530. cpu_88fr131_name:
  531. .asciz "Feroceon 88FR131"
  532. .size cpu_88fr131_name, . - cpu_88fr131_name
  533. .align
  534. .section ".proc.info.init", #alloc, #execinstr
  535. #ifdef CONFIG_CPU_FEROCEON_OLD_ID
  536. .type __feroceon_old_id_proc_info,#object
  537. __feroceon_old_id_proc_info:
  538. .long 0x41009260
  539. .long 0xff00fff0
  540. .long PMD_TYPE_SECT | \
  541. PMD_SECT_BUFFERABLE | \
  542. PMD_SECT_CACHEABLE | \
  543. PMD_BIT4 | \
  544. PMD_SECT_AP_WRITE | \
  545. PMD_SECT_AP_READ
  546. .long PMD_TYPE_SECT | \
  547. PMD_BIT4 | \
  548. PMD_SECT_AP_WRITE | \
  549. PMD_SECT_AP_READ
  550. b __feroceon_setup
  551. .long cpu_arch_name
  552. .long cpu_elf_name
  553. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  554. .long cpu_feroceon_name
  555. .long feroceon_processor_functions
  556. .long v4wbi_tlb_fns
  557. .long feroceon_user_fns
  558. .long feroceon_cache_fns
  559. .size __feroceon_old_id_proc_info, . - __feroceon_old_id_proc_info
  560. #endif
  561. .type __88fr531_proc_info,#object
  562. __88fr531_proc_info:
  563. .long 0x56055310
  564. .long 0xfffffff0
  565. .long PMD_TYPE_SECT | \
  566. PMD_SECT_BUFFERABLE | \
  567. PMD_SECT_CACHEABLE | \
  568. PMD_BIT4 | \
  569. PMD_SECT_AP_WRITE | \
  570. PMD_SECT_AP_READ
  571. .long PMD_TYPE_SECT | \
  572. PMD_BIT4 | \
  573. PMD_SECT_AP_WRITE | \
  574. PMD_SECT_AP_READ
  575. b __feroceon_setup
  576. .long cpu_arch_name
  577. .long cpu_elf_name
  578. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  579. .long cpu_88fr531_name
  580. .long feroceon_processor_functions
  581. .long v4wbi_tlb_fns
  582. .long feroceon_user_fns
  583. .long feroceon_cache_fns
  584. .size __88fr531_proc_info, . - __88fr531_proc_info
  585. .type __88fr571_proc_info,#object
  586. __88fr571_proc_info:
  587. .long 0x56155710
  588. .long 0xfffffff0
  589. .long PMD_TYPE_SECT | \
  590. PMD_SECT_BUFFERABLE | \
  591. PMD_SECT_CACHEABLE | \
  592. PMD_BIT4 | \
  593. PMD_SECT_AP_WRITE | \
  594. PMD_SECT_AP_READ
  595. .long PMD_TYPE_SECT | \
  596. PMD_BIT4 | \
  597. PMD_SECT_AP_WRITE | \
  598. PMD_SECT_AP_READ
  599. b __feroceon_setup
  600. .long cpu_arch_name
  601. .long cpu_elf_name
  602. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  603. .long cpu_88fr571_name
  604. .long feroceon_processor_functions
  605. .long v4wbi_tlb_fns
  606. .long feroceon_user_fns
  607. .long feroceon_range_cache_fns
  608. .size __88fr571_proc_info, . - __88fr571_proc_info
  609. .type __88fr131_proc_info,#object
  610. __88fr131_proc_info:
  611. .long 0x56251310
  612. .long 0xfffffff0
  613. .long PMD_TYPE_SECT | \
  614. PMD_SECT_BUFFERABLE | \
  615. PMD_SECT_CACHEABLE | \
  616. PMD_BIT4 | \
  617. PMD_SECT_AP_WRITE | \
  618. PMD_SECT_AP_READ
  619. .long PMD_TYPE_SECT | \
  620. PMD_BIT4 | \
  621. PMD_SECT_AP_WRITE | \
  622. PMD_SECT_AP_READ
  623. b __feroceon_setup
  624. .long cpu_arch_name
  625. .long cpu_elf_name
  626. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  627. .long cpu_88fr131_name
  628. .long feroceon_processor_functions
  629. .long v4wbi_tlb_fns
  630. .long feroceon_user_fns
  631. .long feroceon_range_cache_fns
  632. .size __88fr131_proc_info, . - __88fr131_proc_info