start.S 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. /*
  2. * armboot - Startup Code for ARM720 CPU-core
  3. *
  4. * Copyright (c) 2001 Marius Gröger <mag@sysgo.de>
  5. * Copyright (c) 2002 Alex Züpke <azu@sysgo.de>
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #include <asm-offsets.h>
  26. #include <config.h>
  27. #include <version.h>
  28. #include <asm/hardware.h>
  29. /*
  30. *************************************************************************
  31. *
  32. * Jump vector table as in table 3.1 in [1]
  33. *
  34. *************************************************************************
  35. */
  36. .globl _start
  37. _start: b reset
  38. ldr pc, _undefined_instruction
  39. ldr pc, _software_interrupt
  40. ldr pc, _prefetch_abort
  41. ldr pc, _data_abort
  42. #ifdef CONFIG_LPC2292
  43. .word 0xB4405F76 /* 2's complement of the checksum of the vectors */
  44. #else
  45. ldr pc, _not_used
  46. #endif
  47. ldr pc, _irq
  48. ldr pc, _fiq
  49. #ifdef CONFIG_SPL_BUILD
  50. _undefined_instruction: .word _undefined_instruction
  51. _software_interrupt: .word _software_interrupt
  52. _prefetch_abort: .word _prefetch_abort
  53. _data_abort: .word _data_abort
  54. _not_used: .word _not_used
  55. _irq: .word _irq
  56. _fiq: .word _fiq
  57. _pad: .word 0x12345678 /* now 16*4=64 */
  58. #else
  59. _undefined_instruction: .word undefined_instruction
  60. _software_interrupt: .word software_interrupt
  61. _prefetch_abort: .word prefetch_abort
  62. _data_abort: .word data_abort
  63. _not_used: .word not_used
  64. _irq: .word irq
  65. _fiq: .word fiq
  66. _pad: .word 0x12345678 /* now 16*4=64 */
  67. #endif /* CONFIG_SPL_BUILD */
  68. .balignl 16,0xdeadbeef
  69. /*
  70. *************************************************************************
  71. *
  72. * Startup Code (reset vector)
  73. *
  74. * do important init only if we don't start from RAM!
  75. * relocate armboot to ram
  76. * setup stack
  77. * jump to second stage
  78. *
  79. *************************************************************************
  80. */
  81. .globl _TEXT_BASE
  82. _TEXT_BASE:
  83. #ifdef CONFIG_SPL_BUILD
  84. .word CONFIG_SPL_TEXT_BASE
  85. #else
  86. .word CONFIG_SYS_TEXT_BASE
  87. #endif
  88. /*
  89. * These are defined in the board-specific linker script.
  90. * Subtracting _start from them lets the linker put their
  91. * relative position in the executable instead of leaving
  92. * them null.
  93. */
  94. .globl _bss_start_ofs
  95. _bss_start_ofs:
  96. .word __bss_start - _start
  97. .globl _bss_end_ofs
  98. _bss_end_ofs:
  99. .word __bss_end__ - _start
  100. .globl _end_ofs
  101. _end_ofs:
  102. .word _end - _start
  103. #ifdef CONFIG_USE_IRQ
  104. /* IRQ stack memory (calculated at run-time) */
  105. .globl IRQ_STACK_START
  106. IRQ_STACK_START:
  107. .word 0x0badc0de
  108. /* IRQ stack memory (calculated at run-time) */
  109. .globl FIQ_STACK_START
  110. FIQ_STACK_START:
  111. .word 0x0badc0de
  112. #endif
  113. /* IRQ stack memory (calculated at run-time) + 8 bytes */
  114. .globl IRQ_STACK_START_IN
  115. IRQ_STACK_START_IN:
  116. .word 0x0badc0de
  117. /*
  118. * the actual reset code
  119. */
  120. reset:
  121. /*
  122. * set the cpu to SVC32 mode
  123. */
  124. mrs r0,cpsr
  125. bic r0,r0,#0x1f
  126. orr r0,r0,#0xd3
  127. msr cpsr,r0
  128. /*
  129. * we do sys-critical inits only at reboot,
  130. * not when booting from ram!
  131. */
  132. #ifndef CONFIG_SKIP_LOWLEVEL_INIT
  133. bl cpu_init_crit
  134. #endif
  135. #ifdef CONFIG_LPC2292
  136. bl lowlevel_init
  137. #endif
  138. /* Set stackpointer in internal RAM to call board_init_f */
  139. call_board_init_f:
  140. ldr sp, =(CONFIG_SYS_INIT_SP_ADDR)
  141. bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
  142. ldr r0,=0x00000000
  143. bl board_init_f
  144. /*------------------------------------------------------------------------------*/
  145. /*
  146. * void relocate_code (addr_sp, gd, addr_moni)
  147. *
  148. * This "function" does not return, instead it continues in RAM
  149. * after relocating the monitor code.
  150. *
  151. */
  152. .globl relocate_code
  153. relocate_code:
  154. mov r4, r0 /* save addr_sp */
  155. mov r5, r1 /* save addr of gd */
  156. mov r6, r2 /* save addr of destination */
  157. /* Set up the stack */
  158. stack_setup:
  159. mov sp, r4
  160. adr r0, _start
  161. cmp r0, r6
  162. moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
  163. beq clear_bss /* skip relocation */
  164. mov r1, r6 /* r1 <- scratch for copy_loop */
  165. ldr r3, _bss_start_ofs
  166. add r2, r0, r3 /* r2 <- source end address */
  167. copy_loop:
  168. ldmia r0!, {r9-r10} /* copy from source address [r0] */
  169. stmia r1!, {r9-r10} /* copy to target address [r1] */
  170. cmp r0, r2 /* until source end address [r2] */
  171. blo copy_loop
  172. #ifndef CONFIG_SPL_BUILD
  173. /*
  174. * fix .rel.dyn relocations
  175. */
  176. ldr r0, _TEXT_BASE /* r0 <- Text base */
  177. sub r9, r6, r0 /* r9 <- relocation offset */
  178. ldr r10, _dynsym_start_ofs /* r10 <- sym table ofs */
  179. add r10, r10, r0 /* r10 <- sym table in FLASH */
  180. ldr r2, _rel_dyn_start_ofs /* r2 <- rel dyn start ofs */
  181. add r2, r2, r0 /* r2 <- rel dyn start in FLASH */
  182. ldr r3, _rel_dyn_end_ofs /* r3 <- rel dyn end ofs */
  183. add r3, r3, r0 /* r3 <- rel dyn end in FLASH */
  184. fixloop:
  185. ldr r0, [r2] /* r0 <- location to fix up, IN FLASH! */
  186. add r0, r0, r9 /* r0 <- location to fix up in RAM */
  187. ldr r1, [r2, #4]
  188. and r7, r1, #0xff
  189. cmp r7, #23 /* relative fixup? */
  190. beq fixrel
  191. cmp r7, #2 /* absolute fixup? */
  192. beq fixabs
  193. /* ignore unknown type of fixup */
  194. b fixnext
  195. fixabs:
  196. /* absolute fix: set location to (offset) symbol value */
  197. mov r1, r1, LSR #4 /* r1 <- symbol index in .dynsym */
  198. add r1, r10, r1 /* r1 <- address of symbol in table */
  199. ldr r1, [r1, #4] /* r1 <- symbol value */
  200. add r1, r1, r9 /* r1 <- relocated sym addr */
  201. b fixnext
  202. fixrel:
  203. /* relative fix: increase location by offset */
  204. ldr r1, [r0]
  205. add r1, r1, r9
  206. fixnext:
  207. str r1, [r0]
  208. add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
  209. cmp r2, r3
  210. blo fixloop
  211. #endif
  212. clear_bss:
  213. #ifndef CONFIG_SPL_BUILD
  214. ldr r0, _bss_start_ofs
  215. ldr r1, _bss_end_ofs
  216. mov r4, r6 /* reloc addr */
  217. add r0, r0, r4
  218. add r1, r1, r4
  219. mov r2, #0x00000000 /* clear */
  220. clbss_l:cmp r0, r1 /* clear loop... */
  221. bhs clbss_e /* if reached end of bss, exit */
  222. str r2, [r0]
  223. add r0, r0, #4
  224. b clbss_l
  225. clbss_e:
  226. bl coloured_LED_init
  227. bl red_led_on
  228. #endif
  229. /*
  230. * We are done. Do not return, instead branch to second part of board
  231. * initialization, now running from RAM.
  232. */
  233. ldr r0, _board_init_r_ofs
  234. adr r1, _start
  235. add lr, r0, r1
  236. add lr, lr, r9
  237. /* setup parameters for board_init_r */
  238. mov r0, r5 /* gd_t */
  239. mov r1, r6 /* dest_addr */
  240. /* jump to it ... */
  241. mov pc, lr
  242. _board_init_r_ofs:
  243. .word board_init_r - _start
  244. _rel_dyn_start_ofs:
  245. .word __rel_dyn_start - _start
  246. _rel_dyn_end_ofs:
  247. .word __rel_dyn_end - _start
  248. _dynsym_start_ofs:
  249. .word __dynsym_start - _start
  250. /*
  251. *************************************************************************
  252. *
  253. * CPU_init_critical registers
  254. *
  255. * setup important registers
  256. * setup memory timing
  257. *
  258. *************************************************************************
  259. */
  260. #if defined(CONFIG_LPC2292)
  261. PLLCFG_ADR: .word PLLCFG
  262. PLLFEED_ADR: .word PLLFEED
  263. PLLCON_ADR: .word PLLCON
  264. PLLSTAT_ADR: .word PLLSTAT
  265. VPBDIV_ADR: .word VPBDIV
  266. MEMMAP_ADR: .word MEMMAP
  267. #endif
  268. cpu_init_crit:
  269. #if defined(CONFIG_NETARM)
  270. /*
  271. * prior to software reset : need to set pin PORTC4 to be *HRESET
  272. */
  273. ldr r0, =NETARM_GEN_MODULE_BASE
  274. ldr r1, =(NETARM_GEN_PORT_MODE(0x10) | \
  275. NETARM_GEN_PORT_DIR(0x10))
  276. str r1, [r0, #+NETARM_GEN_PORTC]
  277. /*
  278. * software reset : see HW Ref. Guide 8.2.4 : Software Service register
  279. * for an explanation of this process
  280. */
  281. ldr r0, =NETARM_GEN_MODULE_BASE
  282. ldr r1, =NETARM_GEN_SW_SVC_RESETA
  283. str r1, [r0, #+NETARM_GEN_SOFTWARE_SERVICE]
  284. ldr r1, =NETARM_GEN_SW_SVC_RESETB
  285. str r1, [r0, #+NETARM_GEN_SOFTWARE_SERVICE]
  286. ldr r1, =NETARM_GEN_SW_SVC_RESETA
  287. str r1, [r0, #+NETARM_GEN_SOFTWARE_SERVICE]
  288. ldr r1, =NETARM_GEN_SW_SVC_RESETB
  289. str r1, [r0, #+NETARM_GEN_SOFTWARE_SERVICE]
  290. /*
  291. * setup PLL and System Config
  292. */
  293. ldr r0, =NETARM_GEN_MODULE_BASE
  294. ldr r1, =( NETARM_GEN_SYS_CFG_LENDIAN | \
  295. NETARM_GEN_SYS_CFG_BUSFULL | \
  296. NETARM_GEN_SYS_CFG_USER_EN | \
  297. NETARM_GEN_SYS_CFG_ALIGN_ABORT | \
  298. NETARM_GEN_SYS_CFG_BUSARB_INT | \
  299. NETARM_GEN_SYS_CFG_BUSMON_EN )
  300. str r1, [r0, #+NETARM_GEN_SYSTEM_CONTROL]
  301. #ifndef CONFIG_NETARM_PLL_BYPASS
  302. ldr r1, =( NETARM_GEN_PLL_CTL_PLLCNT(NETARM_PLL_COUNT_VAL) | \
  303. NETARM_GEN_PLL_CTL_POLTST_DEF | \
  304. NETARM_GEN_PLL_CTL_INDIV(1) | \
  305. NETARM_GEN_PLL_CTL_ICP_DEF | \
  306. NETARM_GEN_PLL_CTL_OUTDIV(2) )
  307. str r1, [r0, #+NETARM_GEN_PLL_CONTROL]
  308. #endif
  309. /*
  310. * mask all IRQs by clearing all bits in the INTMRs
  311. */
  312. mov r1, #0
  313. ldr r0, =NETARM_GEN_MODULE_BASE
  314. str r1, [r0, #+NETARM_GEN_INTR_ENABLE]
  315. #elif defined(CONFIG_S3C4510B)
  316. /*
  317. * Mask off all IRQ sources
  318. */
  319. ldr r1, =REG_INTMASK
  320. ldr r0, =0x3FFFFF
  321. str r0, [r1]
  322. /*
  323. * Disable Cache
  324. */
  325. ldr r0, =REG_SYSCFG
  326. ldr r1, =0x83ffffa0 /* cache-disabled */
  327. str r1, [r0]
  328. #elif defined(CONFIG_INTEGRATOR) && defined(CONFIG_ARCH_INTEGRATOR)
  329. /* No specific initialisation for IntegratorAP/CM720T as yet */
  330. #elif defined(CONFIG_LPC2292)
  331. /* Set-up PLL */
  332. mov r3, #0xAA
  333. mov r4, #0x55
  334. /* First disconnect and disable the PLL */
  335. ldr r0, PLLCON_ADR
  336. mov r1, #0x00
  337. str r1, [r0]
  338. ldr r0, PLLFEED_ADR /* start feed sequence */
  339. str r3, [r0]
  340. str r4, [r0] /* feed sequence done */
  341. /* Set new M and P values */
  342. ldr r0, PLLCFG_ADR
  343. mov r1, #0x23 /* M=4 and P=2 */
  344. str r1, [r0]
  345. ldr r0, PLLFEED_ADR /* start feed sequence */
  346. str r3, [r0]
  347. str r4, [r0] /* feed sequence done */
  348. /* Then enable the PLL */
  349. ldr r0, PLLCON_ADR
  350. mov r1, #0x01 /* PLL enable bit */
  351. str r1, [r0]
  352. ldr r0, PLLFEED_ADR /* start feed sequence */
  353. str r3, [r0]
  354. str r4, [r0] /* feed sequence done */
  355. /* Wait for the lock */
  356. ldr r0, PLLSTAT_ADR
  357. mov r1, #0x400 /* lock bit */
  358. lock_loop:
  359. ldr r2, [r0]
  360. and r2, r1, r2
  361. cmp r2, #0
  362. beq lock_loop
  363. /* And finally connect the PLL */
  364. ldr r0, PLLCON_ADR
  365. mov r1, #0x03 /* PLL enable bit and connect bit */
  366. str r1, [r0]
  367. ldr r0, PLLFEED_ADR /* start feed sequence */
  368. str r3, [r0]
  369. str r4, [r0] /* feed sequence done */
  370. /* Set-up VPBDIV register */
  371. ldr r0, VPBDIV_ADR
  372. mov r1, #0x01 /* VPB clock is same as process clock */
  373. str r1, [r0]
  374. #elif defined(CONFIG_TEGRA)
  375. /* No cpu_init_crit for tegra as yet */
  376. #else
  377. #error No cpu_init_crit() defined for current CPU type
  378. #endif
  379. #ifdef CONFIG_ARM7_REVD
  380. /* set clock speed */
  381. /* !!! we run @ 36 MHz due to a hardware flaw in Rev. D processors */
  382. /* !!! not doing DRAM refresh properly! */
  383. ldr r0, SYSCON3
  384. ldr r1, [r0]
  385. bic r1, r1, #CLKCTL
  386. orr r1, r1, #CLKCTL_36
  387. str r1, [r0]
  388. #endif
  389. #if !defined(CONFIG_LPC2292) && !defined(CONFIG_TEGRA)
  390. mov ip, lr
  391. /*
  392. * before relocating, we have to setup RAM timing
  393. * because memory timing is board-dependent, you will
  394. * find a lowlevel_init.S in your board directory.
  395. */
  396. bl lowlevel_init
  397. mov lr, ip
  398. #endif
  399. mov pc, lr
  400. #ifndef CONFIG_SPL_BUILD
  401. /*
  402. *************************************************************************
  403. *
  404. * Interrupt handling
  405. *
  406. *************************************************************************
  407. */
  408. @
  409. @ IRQ stack frame.
  410. @
  411. #define S_FRAME_SIZE 72
  412. #define S_OLD_R0 68
  413. #define S_PSR 64
  414. #define S_PC 60
  415. #define S_LR 56
  416. #define S_SP 52
  417. #define S_IP 48
  418. #define S_FP 44
  419. #define S_R10 40
  420. #define S_R9 36
  421. #define S_R8 32
  422. #define S_R7 28
  423. #define S_R6 24
  424. #define S_R5 20
  425. #define S_R4 16
  426. #define S_R3 12
  427. #define S_R2 8
  428. #define S_R1 4
  429. #define S_R0 0
  430. #define MODE_SVC 0x13
  431. #define I_BIT 0x80
  432. /*
  433. * use bad_save_user_regs for abort/prefetch/undef/swi ...
  434. * use irq_save_user_regs / irq_restore_user_regs for IRQ/FIQ handling
  435. */
  436. .macro bad_save_user_regs
  437. sub sp, sp, #S_FRAME_SIZE
  438. stmia sp, {r0 - r12} @ Calling r0-r12
  439. add r8, sp, #S_PC
  440. ldr r2, IRQ_STACK_START_IN
  441. ldmia r2, {r2 - r4} @ get pc, cpsr, old_r0
  442. add r0, sp, #S_FRAME_SIZE @ restore sp_SVC
  443. add r5, sp, #S_SP
  444. mov r1, lr
  445. stmia r5, {r0 - r4} @ save sp_SVC, lr_SVC, pc, cpsr, old_r
  446. mov r0, sp
  447. .endm
  448. .macro irq_save_user_regs
  449. sub sp, sp, #S_FRAME_SIZE
  450. stmia sp, {r0 - r12} @ Calling r0-r12
  451. add r8, sp, #S_PC
  452. stmdb r8, {sp, lr}^ @ Calling SP, LR
  453. str lr, [r8, #0] @ Save calling PC
  454. mrs r6, spsr
  455. str r6, [r8, #4] @ Save CPSR
  456. str r0, [r8, #8] @ Save OLD_R0
  457. mov r0, sp
  458. .endm
  459. .macro irq_restore_user_regs
  460. ldmia sp, {r0 - lr}^ @ Calling r0 - lr
  461. mov r0, r0
  462. ldr lr, [sp, #S_PC] @ Get PC
  463. add sp, sp, #S_FRAME_SIZE
  464. subs pc, lr, #4 @ return & move spsr_svc into cpsr
  465. .endm
  466. .macro get_bad_stack
  467. ldr r13, IRQ_STACK_START_IN @ setup our mode stack
  468. str lr, [r13] @ save caller lr / spsr
  469. mrs lr, spsr
  470. str lr, [r13, #4]
  471. mov r13, #MODE_SVC @ prepare SVC-Mode
  472. msr spsr_c, r13
  473. mov lr, pc
  474. movs pc, lr
  475. .endm
  476. .macro get_irq_stack @ setup IRQ stack
  477. ldr sp, IRQ_STACK_START
  478. .endm
  479. .macro get_fiq_stack @ setup FIQ stack
  480. ldr sp, FIQ_STACK_START
  481. .endm
  482. /*
  483. * exception handlers
  484. */
  485. .align 5
  486. undefined_instruction:
  487. get_bad_stack
  488. bad_save_user_regs
  489. bl do_undefined_instruction
  490. .align 5
  491. software_interrupt:
  492. get_bad_stack
  493. bad_save_user_regs
  494. bl do_software_interrupt
  495. .align 5
  496. prefetch_abort:
  497. get_bad_stack
  498. bad_save_user_regs
  499. bl do_prefetch_abort
  500. .align 5
  501. data_abort:
  502. get_bad_stack
  503. bad_save_user_regs
  504. bl do_data_abort
  505. .align 5
  506. not_used:
  507. get_bad_stack
  508. bad_save_user_regs
  509. bl do_not_used
  510. #ifdef CONFIG_USE_IRQ
  511. .align 5
  512. irq:
  513. get_irq_stack
  514. irq_save_user_regs
  515. bl do_irq
  516. irq_restore_user_regs
  517. .align 5
  518. fiq:
  519. get_fiq_stack
  520. /* someone ought to write a more effiction fiq_save_user_regs */
  521. irq_save_user_regs
  522. bl do_fiq
  523. irq_restore_user_regs
  524. #else
  525. .align 5
  526. irq:
  527. get_bad_stack
  528. bad_save_user_regs
  529. bl do_irq
  530. .align 5
  531. fiq:
  532. get_bad_stack
  533. bad_save_user_regs
  534. bl do_fiq
  535. #endif
  536. #endif /* CONFIG_SPL_BUILD */
  537. #if defined(CONFIG_NETARM)
  538. .align 5
  539. .globl reset_cpu
  540. reset_cpu:
  541. ldr r1, =NETARM_MEM_MODULE_BASE
  542. ldr r0, [r1, #+NETARM_MEM_CS0_BASE_ADDR]
  543. ldr r1, =0xFFFFF000
  544. and r0, r1, r0
  545. ldr r1, =(relocate-CONFIG_SYS_TEXT_BASE)
  546. add r0, r1, r0
  547. ldr r4, =NETARM_GEN_MODULE_BASE
  548. ldr r1, =NETARM_GEN_SW_SVC_RESETA
  549. str r1, [r4, #+NETARM_GEN_SOFTWARE_SERVICE]
  550. ldr r1, =NETARM_GEN_SW_SVC_RESETB
  551. str r1, [r4, #+NETARM_GEN_SOFTWARE_SERVICE]
  552. ldr r1, =NETARM_GEN_SW_SVC_RESETA
  553. str r1, [r4, #+NETARM_GEN_SOFTWARE_SERVICE]
  554. ldr r1, =NETARM_GEN_SW_SVC_RESETB
  555. str r1, [r4, #+NETARM_GEN_SOFTWARE_SERVICE]
  556. mov pc, r0
  557. #elif defined(CONFIG_S3C4510B)
  558. /* Nothing done here as reseting the CPU is board specific, depending
  559. * on external peripherals such as watchdog timers, etc. */
  560. #elif defined(CONFIG_INTEGRATOR) && defined(CONFIG_ARCH_INTEGRATOR)
  561. /* No specific reset actions for IntegratorAP/CM720T as yet */
  562. #elif defined(CONFIG_LPC2292)
  563. .align 5
  564. .globl reset_cpu
  565. reset_cpu:
  566. mov pc, r0
  567. #elif defined(CONFIG_TEGRA)
  568. /* No specific reset actions for tegra as yet */
  569. #else
  570. #error No reset_cpu() defined for current CPU type
  571. #endif