proc-feroceon.S 17 KB

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