sleep-tegra20.S 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. * Copyright (c) 2010-2012, NVIDIA Corporation. All rights reserved.
  3. * Copyright (c) 2011, Google, Inc.
  4. *
  5. * Author: Colin Cross <ccross@android.com>
  6. * Gary King <gking@nvidia.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms and conditions of the GNU General Public License,
  10. * version 2, as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope it will be useful, but WITHOUT
  13. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  15. * more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include <linux/linkage.h>
  21. #include <asm/assembler.h>
  22. #include <asm/proc-fns.h>
  23. #include <asm/cp15.h>
  24. #include <asm/cache.h>
  25. #include "irammap.h"
  26. #include "sleep.h"
  27. #include "flowctrl.h"
  28. #define EMC_CFG 0xc
  29. #define EMC_ADR_CFG 0x10
  30. #define EMC_REFRESH 0x70
  31. #define EMC_NOP 0xdc
  32. #define EMC_SELF_REF 0xe0
  33. #define EMC_REQ_CTRL 0x2b0
  34. #define EMC_EMC_STATUS 0x2b4
  35. #define CLK_RESET_CCLK_BURST 0x20
  36. #define CLK_RESET_CCLK_DIVIDER 0x24
  37. #define CLK_RESET_SCLK_BURST 0x28
  38. #define CLK_RESET_SCLK_DIVIDER 0x2c
  39. #define CLK_RESET_PLLC_BASE 0x80
  40. #define CLK_RESET_PLLM_BASE 0x90
  41. #define CLK_RESET_PLLP_BASE 0xa0
  42. #define APB_MISC_XM2CFGCPADCTRL 0x8c8
  43. #define APB_MISC_XM2CFGDPADCTRL 0x8cc
  44. #define APB_MISC_XM2CLKCFGPADCTRL 0x8d0
  45. #define APB_MISC_XM2COMPPADCTRL 0x8d4
  46. #define APB_MISC_XM2VTTGENPADCTRL 0x8d8
  47. #define APB_MISC_XM2CFGCPADCTRL2 0x8e4
  48. #define APB_MISC_XM2CFGDPADCTRL2 0x8e8
  49. .macro pll_enable, rd, r_car_base, pll_base
  50. ldr \rd, [\r_car_base, #\pll_base]
  51. tst \rd, #(1 << 30)
  52. orreq \rd, \rd, #(1 << 30)
  53. streq \rd, [\r_car_base, #\pll_base]
  54. .endm
  55. .macro emc_device_mask, rd, base
  56. ldr \rd, [\base, #EMC_ADR_CFG]
  57. tst \rd, #(0x3 << 24)
  58. moveq \rd, #(0x1 << 8) @ just 1 device
  59. movne \rd, #(0x3 << 8) @ 2 devices
  60. .endm
  61. #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_PM_SLEEP)
  62. /*
  63. * tegra20_hotplug_shutdown(void)
  64. *
  65. * puts the current cpu in reset
  66. * should never return
  67. */
  68. ENTRY(tegra20_hotplug_shutdown)
  69. /* Put this CPU down */
  70. cpu_id r0
  71. bl tegra20_cpu_shutdown
  72. ret lr @ should never get here
  73. ENDPROC(tegra20_hotplug_shutdown)
  74. /*
  75. * tegra20_cpu_shutdown(int cpu)
  76. *
  77. * r0 is cpu to reset
  78. *
  79. * puts the specified CPU in wait-for-event mode on the flow controller
  80. * and puts the CPU in reset
  81. * can be called on the current cpu or another cpu
  82. * if called on the current cpu, does not return
  83. * MUST NOT BE CALLED FOR CPU 0.
  84. *
  85. * corrupts r0-r3, r12
  86. */
  87. ENTRY(tegra20_cpu_shutdown)
  88. cmp r0, #0
  89. reteq lr @ must not be called for CPU 0
  90. mov32 r1, TEGRA_IRAM_RESET_BASE_VIRT
  91. ldr r2, =__tegra20_cpu1_resettable_status_offset
  92. mov r12, #CPU_RESETTABLE
  93. strb r12, [r1, r2]
  94. cpu_to_halt_reg r1, r0
  95. ldr r3, =TEGRA_FLOW_CTRL_VIRT
  96. mov r2, #FLOW_CTRL_WAITEVENT | FLOW_CTRL_JTAG_RESUME
  97. str r2, [r3, r1] @ put flow controller in wait event mode
  98. ldr r2, [r3, r1]
  99. isb
  100. dsb
  101. movw r1, 0x1011
  102. mov r1, r1, lsl r0
  103. ldr r3, =TEGRA_CLK_RESET_VIRT
  104. str r1, [r3, #0x340] @ put slave CPU in reset
  105. isb
  106. dsb
  107. cpu_id r3
  108. cmp r3, r0
  109. beq .
  110. ret lr
  111. ENDPROC(tegra20_cpu_shutdown)
  112. #endif
  113. #ifdef CONFIG_PM_SLEEP
  114. /*
  115. * tegra_pen_lock
  116. *
  117. * spinlock implementation with no atomic test-and-set and no coherence
  118. * using Peterson's algorithm on strongly-ordered registers
  119. * used to synchronize a cpu waking up from wfi with entering lp2 on idle
  120. *
  121. * The reference link of Peterson's algorithm:
  122. * http://en.wikipedia.org/wiki/Peterson's_algorithm
  123. *
  124. * SCRATCH37 = r1 = !turn (inverted from Peterson's algorithm)
  125. * on cpu 0:
  126. * r2 = flag[0] (in SCRATCH38)
  127. * r3 = flag[1] (in SCRATCH39)
  128. * on cpu1:
  129. * r2 = flag[1] (in SCRATCH39)
  130. * r3 = flag[0] (in SCRATCH38)
  131. *
  132. * must be called with MMU on
  133. * corrupts r0-r3, r12
  134. */
  135. ENTRY(tegra_pen_lock)
  136. mov32 r3, TEGRA_PMC_VIRT
  137. cpu_id r0
  138. add r1, r3, #PMC_SCRATCH37
  139. cmp r0, #0
  140. addeq r2, r3, #PMC_SCRATCH38
  141. addeq r3, r3, #PMC_SCRATCH39
  142. addne r2, r3, #PMC_SCRATCH39
  143. addne r3, r3, #PMC_SCRATCH38
  144. mov r12, #1
  145. str r12, [r2] @ flag[cpu] = 1
  146. dsb
  147. str r12, [r1] @ !turn = cpu
  148. 1: dsb
  149. ldr r12, [r3]
  150. cmp r12, #1 @ flag[!cpu] == 1?
  151. ldreq r12, [r1]
  152. cmpeq r12, r0 @ !turn == cpu?
  153. beq 1b @ while !turn == cpu && flag[!cpu] == 1
  154. ret lr @ locked
  155. ENDPROC(tegra_pen_lock)
  156. ENTRY(tegra_pen_unlock)
  157. dsb
  158. mov32 r3, TEGRA_PMC_VIRT
  159. cpu_id r0
  160. cmp r0, #0
  161. addeq r2, r3, #PMC_SCRATCH38
  162. addne r2, r3, #PMC_SCRATCH39
  163. mov r12, #0
  164. str r12, [r2]
  165. ret lr
  166. ENDPROC(tegra_pen_unlock)
  167. /*
  168. * tegra20_cpu_clear_resettable(void)
  169. *
  170. * Called to clear the "resettable soon" flag in IRAM variable when
  171. * it is expected that the secondary CPU will be idle soon.
  172. */
  173. ENTRY(tegra20_cpu_clear_resettable)
  174. mov32 r1, TEGRA_IRAM_RESET_BASE_VIRT
  175. ldr r2, =__tegra20_cpu1_resettable_status_offset
  176. mov r12, #CPU_NOT_RESETTABLE
  177. strb r12, [r1, r2]
  178. ret lr
  179. ENDPROC(tegra20_cpu_clear_resettable)
  180. /*
  181. * tegra20_cpu_set_resettable_soon(void)
  182. *
  183. * Called to set the "resettable soon" flag in IRAM variable when
  184. * it is expected that the secondary CPU will be idle soon.
  185. */
  186. ENTRY(tegra20_cpu_set_resettable_soon)
  187. mov32 r1, TEGRA_IRAM_RESET_BASE_VIRT
  188. ldr r2, =__tegra20_cpu1_resettable_status_offset
  189. mov r12, #CPU_RESETTABLE_SOON
  190. strb r12, [r1, r2]
  191. ret lr
  192. ENDPROC(tegra20_cpu_set_resettable_soon)
  193. /*
  194. * tegra20_cpu_is_resettable_soon(void)
  195. *
  196. * Returns true if the "resettable soon" flag in IRAM variable has been
  197. * set because it is expected that the secondary CPU will be idle soon.
  198. */
  199. ENTRY(tegra20_cpu_is_resettable_soon)
  200. mov32 r1, TEGRA_IRAM_RESET_BASE_VIRT
  201. ldr r2, =__tegra20_cpu1_resettable_status_offset
  202. ldrb r12, [r1, r2]
  203. cmp r12, #CPU_RESETTABLE_SOON
  204. moveq r0, #1
  205. movne r0, #0
  206. ret lr
  207. ENDPROC(tegra20_cpu_is_resettable_soon)
  208. /*
  209. * tegra20_sleep_core_finish(unsigned long v2p)
  210. *
  211. * Enters suspend in LP0 or LP1 by turning off the mmu and jumping to
  212. * tegra20_tear_down_core in IRAM
  213. */
  214. ENTRY(tegra20_sleep_core_finish)
  215. /* Flush, disable the L1 data cache and exit SMP */
  216. bl tegra_disable_clean_inv_dcache
  217. mov32 r3, tegra_shut_off_mmu
  218. add r3, r3, r0
  219. mov32 r0, tegra20_tear_down_core
  220. mov32 r1, tegra20_iram_start
  221. sub r0, r0, r1
  222. mov32 r1, TEGRA_IRAM_LPx_RESUME_AREA
  223. add r0, r0, r1
  224. ret r3
  225. ENDPROC(tegra20_sleep_core_finish)
  226. /*
  227. * tegra20_sleep_cpu_secondary_finish(unsigned long v2p)
  228. *
  229. * Enters WFI on secondary CPU by exiting coherency.
  230. */
  231. ENTRY(tegra20_sleep_cpu_secondary_finish)
  232. stmfd sp!, {r4-r11, lr}
  233. mrc p15, 0, r11, c1, c0, 1 @ save actlr before exiting coherency
  234. /* Flush and disable the L1 data cache */
  235. mov r0, #TEGRA_FLUSH_CACHE_LOUIS
  236. bl tegra_disable_clean_inv_dcache
  237. mov32 r0, TEGRA_IRAM_RESET_BASE_VIRT
  238. ldr r4, =__tegra20_cpu1_resettable_status_offset
  239. mov r3, #CPU_RESETTABLE
  240. strb r3, [r0, r4]
  241. bl tegra_cpu_do_idle
  242. /*
  243. * cpu may be reset while in wfi, which will return through
  244. * tegra_resume to cpu_resume
  245. * or interrupt may wake wfi, which will return here
  246. * cpu state is unchanged - MMU is on, cache is on, coherency
  247. * is off, and the data cache is off
  248. *
  249. * r11 contains the original actlr
  250. */
  251. bl tegra_pen_lock
  252. mov32 r0, TEGRA_IRAM_RESET_BASE_VIRT
  253. ldr r4, =__tegra20_cpu1_resettable_status_offset
  254. mov r3, #CPU_NOT_RESETTABLE
  255. strb r3, [r0, r4]
  256. bl tegra_pen_unlock
  257. /* Re-enable the data cache */
  258. mrc p15, 0, r10, c1, c0, 0
  259. orr r10, r10, #CR_C
  260. mcr p15, 0, r10, c1, c0, 0
  261. isb
  262. mcr p15, 0, r11, c1, c0, 1 @ reenable coherency
  263. /* Invalidate the TLBs & BTAC */
  264. mov r1, #0
  265. mcr p15, 0, r1, c8, c3, 0 @ invalidate shared TLBs
  266. mcr p15, 0, r1, c7, c1, 6 @ invalidate shared BTAC
  267. dsb
  268. isb
  269. /* the cpu was running with coherency disabled,
  270. * caches may be out of date */
  271. bl v7_flush_kern_cache_louis
  272. ldmfd sp!, {r4 - r11, pc}
  273. ENDPROC(tegra20_sleep_cpu_secondary_finish)
  274. /*
  275. * tegra20_tear_down_cpu
  276. *
  277. * Switches the CPU cluster to PLL-P and enters sleep.
  278. */
  279. ENTRY(tegra20_tear_down_cpu)
  280. bl tegra_switch_cpu_to_pllp
  281. b tegra20_enter_sleep
  282. ENDPROC(tegra20_tear_down_cpu)
  283. /* START OF ROUTINES COPIED TO IRAM */
  284. .align L1_CACHE_SHIFT
  285. .globl tegra20_iram_start
  286. tegra20_iram_start:
  287. /*
  288. * tegra20_lp1_reset
  289. *
  290. * reset vector for LP1 restore; copied into IRAM during suspend.
  291. * Brings the system back up to a safe staring point (SDRAM out of
  292. * self-refresh, PLLC, PLLM and PLLP reenabled, CPU running on PLLP,
  293. * system clock running on the same PLL that it suspended at), and
  294. * jumps to tegra_resume to restore virtual addressing and PLLX.
  295. * The physical address of tegra_resume expected to be stored in
  296. * PMC_SCRATCH41.
  297. *
  298. * NOTE: THIS *MUST* BE RELOCATED TO TEGRA_IRAM_LPx_RESUME_AREA.
  299. */
  300. ENTRY(tegra20_lp1_reset)
  301. /*
  302. * The CPU and system bus are running at 32KHz and executing from
  303. * IRAM when this code is executed; immediately switch to CLKM and
  304. * enable PLLM, PLLP, PLLC.
  305. */
  306. mov32 r0, TEGRA_CLK_RESET_BASE
  307. mov r1, #(1 << 28)
  308. str r1, [r0, #CLK_RESET_SCLK_BURST]
  309. str r1, [r0, #CLK_RESET_CCLK_BURST]
  310. mov r1, #0
  311. str r1, [r0, #CLK_RESET_CCLK_DIVIDER]
  312. str r1, [r0, #CLK_RESET_SCLK_DIVIDER]
  313. pll_enable r1, r0, CLK_RESET_PLLM_BASE
  314. pll_enable r1, r0, CLK_RESET_PLLP_BASE
  315. pll_enable r1, r0, CLK_RESET_PLLC_BASE
  316. adr r2, tegra20_sdram_pad_address
  317. adr r4, tegra20_sdram_pad_save
  318. mov r5, #0
  319. ldr r6, tegra20_sdram_pad_size
  320. padload:
  321. ldr r7, [r2, r5] @ r7 is the addr in the pad_address
  322. ldr r1, [r4, r5]
  323. str r1, [r7] @ restore the value in pad_save
  324. add r5, r5, #4
  325. cmp r6, r5
  326. bne padload
  327. padload_done:
  328. /* 255uS delay for PLL stabilization */
  329. mov32 r7, TEGRA_TMRUS_BASE
  330. ldr r1, [r7]
  331. add r1, r1, #0xff
  332. wait_until r1, r7, r9
  333. adr r4, tegra20_sclk_save
  334. ldr r4, [r4]
  335. str r4, [r0, #CLK_RESET_SCLK_BURST]
  336. mov32 r4, ((1 << 28) | (4)) @ burst policy is PLLP
  337. str r4, [r0, #CLK_RESET_CCLK_BURST]
  338. mov32 r0, TEGRA_EMC_BASE
  339. ldr r1, [r0, #EMC_CFG]
  340. bic r1, r1, #(1 << 31) @ disable DRAM_CLK_STOP
  341. str r1, [r0, #EMC_CFG]
  342. mov r1, #0
  343. str r1, [r0, #EMC_SELF_REF] @ take DRAM out of self refresh
  344. mov r1, #1
  345. str r1, [r0, #EMC_NOP]
  346. str r1, [r0, #EMC_NOP]
  347. str r1, [r0, #EMC_REFRESH]
  348. emc_device_mask r1, r0
  349. exit_selfrefresh_loop:
  350. ldr r2, [r0, #EMC_EMC_STATUS]
  351. ands r2, r2, r1
  352. bne exit_selfrefresh_loop
  353. mov r1, #0 @ unstall all transactions
  354. str r1, [r0, #EMC_REQ_CTRL]
  355. mov32 r0, TEGRA_PMC_BASE
  356. ldr r0, [r0, #PMC_SCRATCH41]
  357. ret r0 @ jump to tegra_resume
  358. ENDPROC(tegra20_lp1_reset)
  359. /*
  360. * tegra20_tear_down_core
  361. *
  362. * copied into and executed from IRAM
  363. * puts memory in self-refresh for LP0 and LP1
  364. */
  365. tegra20_tear_down_core:
  366. bl tegra20_sdram_self_refresh
  367. bl tegra20_switch_cpu_to_clk32k
  368. b tegra20_enter_sleep
  369. /*
  370. * tegra20_switch_cpu_to_clk32k
  371. *
  372. * In LP0 and LP1 all PLLs will be turned off. Switch the CPU and system clock
  373. * to the 32KHz clock.
  374. */
  375. tegra20_switch_cpu_to_clk32k:
  376. /*
  377. * start by switching to CLKM to safely disable PLLs, then switch to
  378. * CLKS.
  379. */
  380. mov r0, #(1 << 28)
  381. str r0, [r5, #CLK_RESET_SCLK_BURST]
  382. str r0, [r5, #CLK_RESET_CCLK_BURST]
  383. mov r0, #0
  384. str r0, [r5, #CLK_RESET_CCLK_DIVIDER]
  385. str r0, [r5, #CLK_RESET_SCLK_DIVIDER]
  386. /* 2uS delay delay between changing SCLK and disabling PLLs */
  387. mov32 r7, TEGRA_TMRUS_BASE
  388. ldr r1, [r7]
  389. add r1, r1, #2
  390. wait_until r1, r7, r9
  391. /* disable PLLM, PLLP and PLLC */
  392. ldr r0, [r5, #CLK_RESET_PLLM_BASE]
  393. bic r0, r0, #(1 << 30)
  394. str r0, [r5, #CLK_RESET_PLLM_BASE]
  395. ldr r0, [r5, #CLK_RESET_PLLP_BASE]
  396. bic r0, r0, #(1 << 30)
  397. str r0, [r5, #CLK_RESET_PLLP_BASE]
  398. ldr r0, [r5, #CLK_RESET_PLLC_BASE]
  399. bic r0, r0, #(1 << 30)
  400. str r0, [r5, #CLK_RESET_PLLC_BASE]
  401. /* switch to CLKS */
  402. mov r0, #0 /* brust policy = 32KHz */
  403. str r0, [r5, #CLK_RESET_SCLK_BURST]
  404. ret lr
  405. /*
  406. * tegra20_enter_sleep
  407. *
  408. * uses flow controller to enter sleep state
  409. * executes from IRAM with SDRAM in selfrefresh when target state is LP0 or LP1
  410. * executes from SDRAM with target state is LP2
  411. */
  412. tegra20_enter_sleep:
  413. mov32 r6, TEGRA_FLOW_CTRL_BASE
  414. mov r0, #FLOW_CTRL_WAIT_FOR_INTERRUPT
  415. orr r0, r0, #FLOW_CTRL_HALT_CPU_IRQ | FLOW_CTRL_HALT_CPU_FIQ
  416. cpu_id r1
  417. cpu_to_halt_reg r1, r1
  418. str r0, [r6, r1]
  419. dsb
  420. ldr r0, [r6, r1] /* memory barrier */
  421. halted:
  422. dsb
  423. wfe /* CPU should be power gated here */
  424. isb
  425. b halted
  426. /*
  427. * tegra20_sdram_self_refresh
  428. *
  429. * called with MMU off and caches disabled
  430. * puts sdram in self refresh
  431. * must be executed from IRAM
  432. */
  433. tegra20_sdram_self_refresh:
  434. mov32 r1, TEGRA_EMC_BASE @ r1 reserved for emc base addr
  435. mov r2, #3
  436. str r2, [r1, #EMC_REQ_CTRL] @ stall incoming DRAM requests
  437. emcidle:
  438. ldr r2, [r1, #EMC_EMC_STATUS]
  439. tst r2, #4
  440. beq emcidle
  441. mov r2, #1
  442. str r2, [r1, #EMC_SELF_REF]
  443. emc_device_mask r2, r1
  444. emcself:
  445. ldr r3, [r1, #EMC_EMC_STATUS]
  446. and r3, r3, r2
  447. cmp r3, r2
  448. bne emcself @ loop until DDR in self-refresh
  449. adr r2, tegra20_sdram_pad_address
  450. adr r3, tegra20_sdram_pad_safe
  451. adr r4, tegra20_sdram_pad_save
  452. mov r5, #0
  453. ldr r6, tegra20_sdram_pad_size
  454. padsave:
  455. ldr r0, [r2, r5] @ r0 is the addr in the pad_address
  456. ldr r1, [r0]
  457. str r1, [r4, r5] @ save the content of the addr
  458. ldr r1, [r3, r5]
  459. str r1, [r0] @ set the save val to the addr
  460. add r5, r5, #4
  461. cmp r6, r5
  462. bne padsave
  463. padsave_done:
  464. mov32 r5, TEGRA_CLK_RESET_BASE
  465. ldr r0, [r5, #CLK_RESET_SCLK_BURST]
  466. adr r2, tegra20_sclk_save
  467. str r0, [r2]
  468. dsb
  469. ret lr
  470. tegra20_sdram_pad_address:
  471. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGCPADCTRL
  472. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGDPADCTRL
  473. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CLKCFGPADCTRL
  474. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2COMPPADCTRL
  475. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2VTTGENPADCTRL
  476. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGCPADCTRL2
  477. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGDPADCTRL2
  478. tegra20_sdram_pad_size:
  479. .word tegra20_sdram_pad_size - tegra20_sdram_pad_address
  480. tegra20_sdram_pad_safe:
  481. .word 0x8
  482. .word 0x8
  483. .word 0x0
  484. .word 0x8
  485. .word 0x5500
  486. .word 0x08080040
  487. .word 0x0
  488. tegra20_sclk_save:
  489. .word 0x0
  490. tegra20_sdram_pad_save:
  491. .rept (tegra20_sdram_pad_size - tegra20_sdram_pad_address) / 4
  492. .long 0
  493. .endr
  494. .ltorg
  495. /* dummy symbol for end of IRAM */
  496. .align L1_CACHE_SHIFT
  497. .globl tegra20_iram_end
  498. tegra20_iram_end:
  499. b .
  500. #endif