sleep-tegra20.S 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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 <soc/tegra/flowctrl.h>
  22. #include <asm/assembler.h>
  23. #include <asm/proc-fns.h>
  24. #include <asm/cp15.h>
  25. #include <asm/cache.h>
  26. #include "irammap.h"
  27. #include "sleep.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. mov r4, r0
  216. /* Flush, disable the L1 data cache and exit SMP */
  217. mov r0, #TEGRA_FLUSH_CACHE_ALL
  218. bl tegra_disable_clean_inv_dcache
  219. mov r0, r4
  220. mov32 r3, tegra_shut_off_mmu
  221. add r3, r3, r0
  222. mov32 r0, tegra20_tear_down_core
  223. mov32 r1, tegra20_iram_start
  224. sub r0, r0, r1
  225. mov32 r1, TEGRA_IRAM_LPx_RESUME_AREA
  226. add r0, r0, r1
  227. ret r3
  228. ENDPROC(tegra20_sleep_core_finish)
  229. /*
  230. * tegra20_sleep_cpu_secondary_finish(unsigned long v2p)
  231. *
  232. * Enters WFI on secondary CPU by exiting coherency.
  233. */
  234. ENTRY(tegra20_sleep_cpu_secondary_finish)
  235. stmfd sp!, {r4-r11, lr}
  236. mrc p15, 0, r11, c1, c0, 1 @ save actlr before exiting coherency
  237. /* Flush and disable the L1 data cache */
  238. mov r0, #TEGRA_FLUSH_CACHE_LOUIS
  239. bl tegra_disable_clean_inv_dcache
  240. mov32 r0, TEGRA_IRAM_RESET_BASE_VIRT
  241. ldr r4, =__tegra20_cpu1_resettable_status_offset
  242. mov r3, #CPU_RESETTABLE
  243. strb r3, [r0, r4]
  244. bl tegra_cpu_do_idle
  245. /*
  246. * cpu may be reset while in wfi, which will return through
  247. * tegra_resume to cpu_resume
  248. * or interrupt may wake wfi, which will return here
  249. * cpu state is unchanged - MMU is on, cache is on, coherency
  250. * is off, and the data cache is off
  251. *
  252. * r11 contains the original actlr
  253. */
  254. bl tegra_pen_lock
  255. mov32 r0, TEGRA_IRAM_RESET_BASE_VIRT
  256. ldr r4, =__tegra20_cpu1_resettable_status_offset
  257. mov r3, #CPU_NOT_RESETTABLE
  258. strb r3, [r0, r4]
  259. bl tegra_pen_unlock
  260. /* Re-enable the data cache */
  261. mrc p15, 0, r10, c1, c0, 0
  262. orr r10, r10, #CR_C
  263. mcr p15, 0, r10, c1, c0, 0
  264. isb
  265. mcr p15, 0, r11, c1, c0, 1 @ reenable coherency
  266. /* Invalidate the TLBs & BTAC */
  267. mov r1, #0
  268. mcr p15, 0, r1, c8, c3, 0 @ invalidate shared TLBs
  269. mcr p15, 0, r1, c7, c1, 6 @ invalidate shared BTAC
  270. dsb
  271. isb
  272. /* the cpu was running with coherency disabled,
  273. * caches may be out of date */
  274. bl v7_flush_kern_cache_louis
  275. ldmfd sp!, {r4 - r11, pc}
  276. ENDPROC(tegra20_sleep_cpu_secondary_finish)
  277. /*
  278. * tegra20_tear_down_cpu
  279. *
  280. * Switches the CPU cluster to PLL-P and enters sleep.
  281. */
  282. ENTRY(tegra20_tear_down_cpu)
  283. bl tegra_switch_cpu_to_pllp
  284. b tegra20_enter_sleep
  285. ENDPROC(tegra20_tear_down_cpu)
  286. /* START OF ROUTINES COPIED TO IRAM */
  287. .align L1_CACHE_SHIFT
  288. .globl tegra20_iram_start
  289. tegra20_iram_start:
  290. /*
  291. * tegra20_lp1_reset
  292. *
  293. * reset vector for LP1 restore; copied into IRAM during suspend.
  294. * Brings the system back up to a safe staring point (SDRAM out of
  295. * self-refresh, PLLC, PLLM and PLLP reenabled, CPU running on PLLP,
  296. * system clock running on the same PLL that it suspended at), and
  297. * jumps to tegra_resume to restore virtual addressing and PLLX.
  298. * The physical address of tegra_resume expected to be stored in
  299. * PMC_SCRATCH41.
  300. *
  301. * NOTE: THIS *MUST* BE RELOCATED TO TEGRA_IRAM_LPx_RESUME_AREA.
  302. */
  303. ENTRY(tegra20_lp1_reset)
  304. /*
  305. * The CPU and system bus are running at 32KHz and executing from
  306. * IRAM when this code is executed; immediately switch to CLKM and
  307. * enable PLLM, PLLP, PLLC.
  308. */
  309. mov32 r0, TEGRA_CLK_RESET_BASE
  310. mov r1, #(1 << 28)
  311. str r1, [r0, #CLK_RESET_SCLK_BURST]
  312. str r1, [r0, #CLK_RESET_CCLK_BURST]
  313. mov r1, #0
  314. str r1, [r0, #CLK_RESET_CCLK_DIVIDER]
  315. str r1, [r0, #CLK_RESET_SCLK_DIVIDER]
  316. pll_enable r1, r0, CLK_RESET_PLLM_BASE
  317. pll_enable r1, r0, CLK_RESET_PLLP_BASE
  318. pll_enable r1, r0, CLK_RESET_PLLC_BASE
  319. adr r2, tegra20_sdram_pad_address
  320. adr r4, tegra20_sdram_pad_save
  321. mov r5, #0
  322. ldr r6, tegra20_sdram_pad_size
  323. padload:
  324. ldr r7, [r2, r5] @ r7 is the addr in the pad_address
  325. ldr r1, [r4, r5]
  326. str r1, [r7] @ restore the value in pad_save
  327. add r5, r5, #4
  328. cmp r6, r5
  329. bne padload
  330. padload_done:
  331. /* 255uS delay for PLL stabilization */
  332. mov32 r7, TEGRA_TMRUS_BASE
  333. ldr r1, [r7]
  334. add r1, r1, #0xff
  335. wait_until r1, r7, r9
  336. adr r4, tegra20_sclk_save
  337. ldr r4, [r4]
  338. str r4, [r0, #CLK_RESET_SCLK_BURST]
  339. mov32 r4, ((1 << 28) | (4)) @ burst policy is PLLP
  340. str r4, [r0, #CLK_RESET_CCLK_BURST]
  341. mov32 r0, TEGRA_EMC_BASE
  342. ldr r1, [r0, #EMC_CFG]
  343. bic r1, r1, #(1 << 31) @ disable DRAM_CLK_STOP
  344. str r1, [r0, #EMC_CFG]
  345. mov r1, #0
  346. str r1, [r0, #EMC_SELF_REF] @ take DRAM out of self refresh
  347. mov r1, #1
  348. str r1, [r0, #EMC_NOP]
  349. str r1, [r0, #EMC_NOP]
  350. str r1, [r0, #EMC_REFRESH]
  351. emc_device_mask r1, r0
  352. exit_selfrefresh_loop:
  353. ldr r2, [r0, #EMC_EMC_STATUS]
  354. ands r2, r2, r1
  355. bne exit_selfrefresh_loop
  356. mov r1, #0 @ unstall all transactions
  357. str r1, [r0, #EMC_REQ_CTRL]
  358. mov32 r0, TEGRA_PMC_BASE
  359. ldr r0, [r0, #PMC_SCRATCH41]
  360. ret r0 @ jump to tegra_resume
  361. ENDPROC(tegra20_lp1_reset)
  362. /*
  363. * tegra20_tear_down_core
  364. *
  365. * copied into and executed from IRAM
  366. * puts memory in self-refresh for LP0 and LP1
  367. */
  368. tegra20_tear_down_core:
  369. bl tegra20_sdram_self_refresh
  370. bl tegra20_switch_cpu_to_clk32k
  371. b tegra20_enter_sleep
  372. /*
  373. * tegra20_switch_cpu_to_clk32k
  374. *
  375. * In LP0 and LP1 all PLLs will be turned off. Switch the CPU and system clock
  376. * to the 32KHz clock.
  377. */
  378. tegra20_switch_cpu_to_clk32k:
  379. /*
  380. * start by switching to CLKM to safely disable PLLs, then switch to
  381. * CLKS.
  382. */
  383. mov r0, #(1 << 28)
  384. str r0, [r5, #CLK_RESET_SCLK_BURST]
  385. str r0, [r5, #CLK_RESET_CCLK_BURST]
  386. mov r0, #0
  387. str r0, [r5, #CLK_RESET_CCLK_DIVIDER]
  388. str r0, [r5, #CLK_RESET_SCLK_DIVIDER]
  389. /* 2uS delay delay between changing SCLK and disabling PLLs */
  390. mov32 r7, TEGRA_TMRUS_BASE
  391. ldr r1, [r7]
  392. add r1, r1, #2
  393. wait_until r1, r7, r9
  394. /* disable PLLM, PLLP and PLLC */
  395. ldr r0, [r5, #CLK_RESET_PLLM_BASE]
  396. bic r0, r0, #(1 << 30)
  397. str r0, [r5, #CLK_RESET_PLLM_BASE]
  398. ldr r0, [r5, #CLK_RESET_PLLP_BASE]
  399. bic r0, r0, #(1 << 30)
  400. str r0, [r5, #CLK_RESET_PLLP_BASE]
  401. ldr r0, [r5, #CLK_RESET_PLLC_BASE]
  402. bic r0, r0, #(1 << 30)
  403. str r0, [r5, #CLK_RESET_PLLC_BASE]
  404. /* switch to CLKS */
  405. mov r0, #0 /* brust policy = 32KHz */
  406. str r0, [r5, #CLK_RESET_SCLK_BURST]
  407. ret lr
  408. /*
  409. * tegra20_enter_sleep
  410. *
  411. * uses flow controller to enter sleep state
  412. * executes from IRAM with SDRAM in selfrefresh when target state is LP0 or LP1
  413. * executes from SDRAM with target state is LP2
  414. */
  415. tegra20_enter_sleep:
  416. mov32 r6, TEGRA_FLOW_CTRL_BASE
  417. mov r0, #FLOW_CTRL_WAIT_FOR_INTERRUPT
  418. orr r0, r0, #FLOW_CTRL_HALT_CPU_IRQ | FLOW_CTRL_HALT_CPU_FIQ
  419. cpu_id r1
  420. cpu_to_halt_reg r1, r1
  421. str r0, [r6, r1]
  422. dsb
  423. ldr r0, [r6, r1] /* memory barrier */
  424. halted:
  425. dsb
  426. wfe /* CPU should be power gated here */
  427. isb
  428. b halted
  429. /*
  430. * tegra20_sdram_self_refresh
  431. *
  432. * called with MMU off and caches disabled
  433. * puts sdram in self refresh
  434. * must be executed from IRAM
  435. */
  436. tegra20_sdram_self_refresh:
  437. mov32 r1, TEGRA_EMC_BASE @ r1 reserved for emc base addr
  438. mov r2, #3
  439. str r2, [r1, #EMC_REQ_CTRL] @ stall incoming DRAM requests
  440. emcidle:
  441. ldr r2, [r1, #EMC_EMC_STATUS]
  442. tst r2, #4
  443. beq emcidle
  444. mov r2, #1
  445. str r2, [r1, #EMC_SELF_REF]
  446. emc_device_mask r2, r1
  447. emcself:
  448. ldr r3, [r1, #EMC_EMC_STATUS]
  449. and r3, r3, r2
  450. cmp r3, r2
  451. bne emcself @ loop until DDR in self-refresh
  452. adr r2, tegra20_sdram_pad_address
  453. adr r3, tegra20_sdram_pad_safe
  454. adr r4, tegra20_sdram_pad_save
  455. mov r5, #0
  456. ldr r6, tegra20_sdram_pad_size
  457. padsave:
  458. ldr r0, [r2, r5] @ r0 is the addr in the pad_address
  459. ldr r1, [r0]
  460. str r1, [r4, r5] @ save the content of the addr
  461. ldr r1, [r3, r5]
  462. str r1, [r0] @ set the save val to the addr
  463. add r5, r5, #4
  464. cmp r6, r5
  465. bne padsave
  466. padsave_done:
  467. mov32 r5, TEGRA_CLK_RESET_BASE
  468. ldr r0, [r5, #CLK_RESET_SCLK_BURST]
  469. adr r2, tegra20_sclk_save
  470. str r0, [r2]
  471. dsb
  472. ret lr
  473. tegra20_sdram_pad_address:
  474. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGCPADCTRL
  475. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGDPADCTRL
  476. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CLKCFGPADCTRL
  477. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2COMPPADCTRL
  478. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2VTTGENPADCTRL
  479. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGCPADCTRL2
  480. .word TEGRA_APB_MISC_BASE + APB_MISC_XM2CFGDPADCTRL2
  481. tegra20_sdram_pad_size:
  482. .word tegra20_sdram_pad_size - tegra20_sdram_pad_address
  483. tegra20_sdram_pad_safe:
  484. .word 0x8
  485. .word 0x8
  486. .word 0x0
  487. .word 0x8
  488. .word 0x5500
  489. .word 0x08080040
  490. .word 0x0
  491. tegra20_sclk_save:
  492. .word 0x0
  493. tegra20_sdram_pad_save:
  494. .rept (tegra20_sdram_pad_size - tegra20_sdram_pad_address) / 4
  495. .long 0
  496. .endr
  497. .ltorg
  498. /* dummy symbol for end of IRAM */
  499. .align L1_CACHE_SHIFT
  500. .globl tegra20_iram_end
  501. tegra20_iram_end:
  502. b .
  503. #endif