lowlevel_init.S 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. /*
  2. * Low-level board setup code for TI DaVinci SoC based boards.
  3. *
  4. * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  5. *
  6. * Partially based on TI sources, original copyrights follow:
  7. */
  8. /*
  9. * Board specific setup info
  10. *
  11. * (C) Copyright 2003
  12. * Texas Instruments, <www.ti.com>
  13. * Kshitij Gupta <Kshitij@ti.com>
  14. *
  15. * Modified for OMAP 1610 H2 board by Nishant Kamat, Jan 2004
  16. *
  17. * Modified for OMAP 5912 OSK board by Rishi Bhattacharya, Apr 2004
  18. * See file CREDITS for list of people who contributed to this
  19. * project.
  20. *
  21. * Modified for DV-EVM board by Rishi Bhattacharya, Apr 2005
  22. * See file CREDITS for list of people who contributed to this
  23. * project.
  24. *
  25. * Modified for DV-EVM board by Swaminathan S, Nov 2005
  26. * See file CREDITS for list of people who contributed to this
  27. * project.
  28. *
  29. * This program is free software; you can redistribute it and/or
  30. * modify it under the terms of the GNU General Public License as
  31. * published by the Free Software Foundation; either version 2 of
  32. * the License, or (at your option) any later version.
  33. *
  34. * This program is distributed in the hope that it will be useful,
  35. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. * GNU General Public License for more details.
  38. *
  39. * You should have received a copy of the GNU General Public License
  40. * along with this program; if not, write to the Free Software
  41. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  42. * MA 02111-1307 USA
  43. */
  44. #include <config.h>
  45. #define MDSTAT_STATE 0x3f
  46. .globl lowlevel_init
  47. lowlevel_init:
  48. #ifdef CONFIG_SOC_DM644X
  49. /*-------------------------------------------------------*
  50. * Mask all IRQs by setting all bits in the EINT default *
  51. *-------------------------------------------------------*/
  52. mov r1, $0
  53. ldr r0, =EINT_ENABLE0
  54. str r1, [r0]
  55. ldr r0, =EINT_ENABLE1
  56. str r1, [r0]
  57. /*------------------------------------------------------*
  58. * Put the GEM in reset *
  59. *------------------------------------------------------*/
  60. /* Put the GEM in reset */
  61. ldr r8, PSC_GEM_FLAG_CLEAR
  62. ldr r6, MDCTL_GEM
  63. ldr r7, [r6]
  64. and r7, r7, r8
  65. str r7, [r6]
  66. /* Enable the Power Domain Transition Command */
  67. ldr r6, PTCMD
  68. ldr r7, [r6]
  69. orr r7, r7, $0x02
  70. str r7, [r6]
  71. /* Check for Transition Complete(PTSTAT) */
  72. checkStatClkStopGem:
  73. ldr r6, PTSTAT
  74. ldr r7, [r6]
  75. ands r7, r7, $0x02
  76. bne checkStatClkStopGem
  77. /* Check for GEM Reset Completion */
  78. checkGemStatClkStop:
  79. ldr r6, MDSTAT_GEM
  80. ldr r7, [r6]
  81. ands r7, r7, $0x100
  82. bne checkGemStatClkStop
  83. /* Do this for enabling a WDT initiated reset this is a workaround
  84. for a chip bug. Not required under normal situations */
  85. ldr r6, P1394
  86. mov r10, $0
  87. str r10, [r6]
  88. /*------------------------------------------------------*
  89. * Enable L1 & L2 Memories in Fast mode *
  90. *------------------------------------------------------*/
  91. ldr r6, DFT_ENABLE
  92. mov r10, $0x01
  93. str r10, [r6]
  94. ldr r6, MMARG_BRF0
  95. ldr r10, MMARG_BRF0_VAL
  96. str r10, [r6]
  97. ldr r6, DFT_ENABLE
  98. mov r10, $0
  99. str r10, [r6]
  100. /*------------------------------------------------------*
  101. * DDR2 PLL Initialization *
  102. *------------------------------------------------------*/
  103. /* Select the Clock Mode Depending on the Value written in the Boot Table by the run script */
  104. mov r10, $0
  105. ldr r6, PLL2_CTL
  106. ldr r7, PLL_CLKSRC_MASK
  107. ldr r8, [r6]
  108. and r8, r8, r7
  109. mov r9, r10, lsl $8
  110. orr r8, r8, r9
  111. str r8, [r6]
  112. /* Select the PLLEN source */
  113. ldr r7, PLL_ENSRC_MASK
  114. and r8, r8, r7
  115. str r8, [r6]
  116. /* Bypass the PLL */
  117. ldr r7, PLL_BYPASS_MASK
  118. and r8, r8, r7
  119. str r8, [r6]
  120. /* Wait for few cycles to allow PLLEN Mux switch properly to bypass Clock */
  121. mov r10, $0x20
  122. WaitPPL2Loop:
  123. subs r10, r10, $1
  124. bne WaitPPL2Loop
  125. /* Reset the PLL */
  126. ldr r7, PLL_RESET_MASK
  127. and r8, r8, r7
  128. str r8, [r6]
  129. /* Power up the PLL */
  130. ldr r7, PLL_PWRUP_MASK
  131. and r8, r8, r7
  132. str r8, [r6]
  133. /* Enable the PLL from Disable Mode */
  134. ldr r7, PLL_DISABLE_ENABLE_MASK
  135. and r8, r8, r7
  136. str r8, [r6]
  137. /* Program the PLL Multiplier */
  138. ldr r6, PLL2_PLLM
  139. mov r2, $0x17 /* 162 MHz */
  140. str r2, [r6]
  141. /* Program the PLL2 Divisor Value */
  142. ldr r6, PLL2_DIV2
  143. mov r3, $0x01
  144. str r3, [r6]
  145. /* Program the PLL2 Divisor Value */
  146. ldr r6, PLL2_DIV1
  147. mov r4, $0x0b /* 54 MHz */
  148. str r4, [r6]
  149. /* PLL2 DIV2 MMR */
  150. ldr r8, PLL2_DIV_MASK
  151. ldr r6, PLL2_DIV2
  152. ldr r9, [r6]
  153. and r8, r8, r9
  154. mov r9, $0x01
  155. mov r9, r9, lsl $15
  156. orr r8, r8, r9
  157. str r8, [r6]
  158. /* Program the GOSET bit to take new divider values */
  159. ldr r6, PLL2_PLLCMD
  160. ldr r7, [r6]
  161. orr r7, r7, $0x01
  162. str r7, [r6]
  163. /* Wait for Done */
  164. ldr r6, PLL2_PLLSTAT
  165. doneLoop_0:
  166. ldr r7, [r6]
  167. ands r7, r7, $0x01
  168. bne doneLoop_0
  169. /* PLL2 DIV1 MMR */
  170. ldr r8, PLL2_DIV_MASK
  171. ldr r6, PLL2_DIV1
  172. ldr r9, [r6]
  173. and r8, r8, r9
  174. mov r9, $0x01
  175. mov r9, r9, lsl $15
  176. orr r8, r8, r9
  177. str r8, [r6]
  178. /* Program the GOSET bit to take new divider values */
  179. ldr r6, PLL2_PLLCMD
  180. ldr r7, [r6]
  181. orr r7, r7, $0x01
  182. str r7, [r6]
  183. /* Wait for Done */
  184. ldr r6, PLL2_PLLSTAT
  185. doneLoop:
  186. ldr r7, [r6]
  187. ands r7, r7, $0x01
  188. bne doneLoop
  189. /* Wait for PLL to Reset Properly */
  190. mov r10, $0x218
  191. ResetPPL2Loop:
  192. subs r10, r10, $1
  193. bne ResetPPL2Loop
  194. /* Bring PLL out of Reset */
  195. ldr r6, PLL2_CTL
  196. ldr r8, [r6]
  197. orr r8, r8, $0x08
  198. str r8, [r6]
  199. /* Wait for PLL to Lock */
  200. ldr r10, PLL_LOCK_COUNT
  201. PLL2Lock:
  202. subs r10, r10, $1
  203. bne PLL2Lock
  204. /* Enable the PLL */
  205. ldr r6, PLL2_CTL
  206. ldr r8, [r6]
  207. orr r8, r8, $0x01
  208. str r8, [r6]
  209. /*------------------------------------------------------*
  210. * Issue Soft Reset to DDR Module *
  211. *------------------------------------------------------*/
  212. /* Shut down the DDR2 LPSC Module */
  213. ldr r8, PSC_FLAG_CLEAR
  214. ldr r6, MDCTL_DDR2
  215. ldr r7, [r6]
  216. and r7, r7, r8
  217. orr r7, r7, $0x03
  218. str r7, [r6]
  219. /* Enable the Power Domain Transition Command */
  220. ldr r6, PTCMD
  221. ldr r7, [r6]
  222. orr r7, r7, $0x01
  223. str r7, [r6]
  224. /* Check for Transition Complete(PTSTAT) */
  225. checkStatClkStop:
  226. ldr r6, PTSTAT
  227. ldr r7, [r6]
  228. ands r7, r7, $0x01
  229. bne checkStatClkStop
  230. /* Check for DDR2 Controller Enable Completion */
  231. checkDDRStatClkStop:
  232. ldr r6, MDSTAT_DDR2
  233. ldr r7, [r6]
  234. and r7, r7, $MDSTAT_STATE
  235. cmp r7, $0x03
  236. bne checkDDRStatClkStop
  237. /*------------------------------------------------------*
  238. * Program DDR2 MMRs for 162MHz Setting *
  239. *------------------------------------------------------*/
  240. /* Program PHY Control Register */
  241. ldr r6, DDRCTL
  242. ldr r7, DDRCTL_VAL
  243. str r7, [r6]
  244. /* Program SDRAM Bank Config Register */
  245. ldr r6, SDCFG
  246. ldr r7, SDCFG_VAL
  247. str r7, [r6]
  248. /* Program SDRAM TIM-0 Config Register */
  249. ldr r6, SDTIM0
  250. ldr r7, SDTIM0_VAL_162MHz
  251. str r7, [r6]
  252. /* Program SDRAM TIM-1 Config Register */
  253. ldr r6, SDTIM1
  254. ldr r7, SDTIM1_VAL_162MHz
  255. str r7, [r6]
  256. /* Program the SDRAM Bank Config Control Register */
  257. ldr r10, MASK_VAL
  258. ldr r8, SDCFG
  259. ldr r9, SDCFG_VAL
  260. and r9, r9, r10
  261. str r9, [r8]
  262. /* Program SDRAM SDREF Config Register */
  263. ldr r6, SDREF
  264. ldr r7, SDREF_VAL
  265. str r7, [r6]
  266. /*------------------------------------------------------*
  267. * Issue Soft Reset to DDR Module *
  268. *------------------------------------------------------*/
  269. /* Issue a Dummy DDR2 read/write */
  270. ldr r8, DDR2_START_ADDR
  271. ldr r7, DUMMY_VAL
  272. str r7, [r8]
  273. ldr r7, [r8]
  274. /* Shut down the DDR2 LPSC Module */
  275. ldr r8, PSC_FLAG_CLEAR
  276. ldr r6, MDCTL_DDR2
  277. ldr r7, [r6]
  278. and r7, r7, r8
  279. orr r7, r7, $0x01
  280. str r7, [r6]
  281. /* Enable the Power Domain Transition Command */
  282. ldr r6, PTCMD
  283. ldr r7, [r6]
  284. orr r7, r7, $0x01
  285. str r7, [r6]
  286. /* Check for Transition Complete(PTSTAT) */
  287. checkStatClkStop2:
  288. ldr r6, PTSTAT
  289. ldr r7, [r6]
  290. ands r7, r7, $0x01
  291. bne checkStatClkStop2
  292. /* Check for DDR2 Controller Enable Completion */
  293. checkDDRStatClkStop2:
  294. ldr r6, MDSTAT_DDR2
  295. ldr r7, [r6]
  296. and r7, r7, $MDSTAT_STATE
  297. cmp r7, $0x01
  298. bne checkDDRStatClkStop2
  299. /*------------------------------------------------------*
  300. * Turn DDR2 Controller Clocks On *
  301. *------------------------------------------------------*/
  302. /* Enable the DDR2 LPSC Module */
  303. ldr r6, MDCTL_DDR2
  304. ldr r7, [r6]
  305. orr r7, r7, $0x03
  306. str r7, [r6]
  307. /* Enable the Power Domain Transition Command */
  308. ldr r6, PTCMD
  309. ldr r7, [r6]
  310. orr r7, r7, $0x01
  311. str r7, [r6]
  312. /* Check for Transition Complete(PTSTAT) */
  313. checkStatClkEn2:
  314. ldr r6, PTSTAT
  315. ldr r7, [r6]
  316. ands r7, r7, $0x01
  317. bne checkStatClkEn2
  318. /* Check for DDR2 Controller Enable Completion */
  319. checkDDRStatClkEn2:
  320. ldr r6, MDSTAT_DDR2
  321. ldr r7, [r6]
  322. and r7, r7, $MDSTAT_STATE
  323. cmp r7, $0x03
  324. bne checkDDRStatClkEn2
  325. /* DDR Writes and Reads */
  326. ldr r6, CFGTEST
  327. mov r3, $0x01
  328. str r3, [r6]
  329. /*------------------------------------------------------*
  330. * System PLL Initialization *
  331. *------------------------------------------------------*/
  332. /* Select the Clock Mode Depending on the Value written in the Boot Table by the run script */
  333. mov r2, $0
  334. ldr r6, PLL1_CTL
  335. ldr r7, PLL_CLKSRC_MASK
  336. ldr r8, [r6]
  337. and r8, r8, r7
  338. mov r9, r2, lsl $8
  339. orr r8, r8, r9
  340. str r8, [r6]
  341. /* Select the PLLEN source */
  342. ldr r7, PLL_ENSRC_MASK
  343. and r8, r8, r7
  344. str r8, [r6]
  345. /* Bypass the PLL */
  346. ldr r7, PLL_BYPASS_MASK
  347. and r8, r8, r7
  348. str r8, [r6]
  349. /* Wait for few cycles to allow PLLEN Mux switch properly to bypass Clock */
  350. mov r10, $0x20
  351. WaitLoop:
  352. subs r10, r10, $1
  353. bne WaitLoop
  354. /* Reset the PLL */
  355. ldr r7, PLL_RESET_MASK
  356. and r8, r8, r7
  357. str r8, [r6]
  358. /* Disable the PLL */
  359. orr r8, r8, $0x10
  360. str r8, [r6]
  361. /* Power up the PLL */
  362. ldr r7, PLL_PWRUP_MASK
  363. and r8, r8, r7
  364. str r8, [r6]
  365. /* Enable the PLL from Disable Mode */
  366. ldr r7, PLL_DISABLE_ENABLE_MASK
  367. and r8, r8, r7
  368. str r8, [r6]
  369. /* Program the PLL Multiplier */
  370. ldr r6, PLL1_PLLM
  371. mov r3, $0x15 /* For 594MHz */
  372. str r3, [r6]
  373. /* Wait for PLL to Reset Properly */
  374. mov r10, $0xff
  375. ResetLoop:
  376. subs r10, r10, $1
  377. bne ResetLoop
  378. /* Bring PLL out of Reset */
  379. ldr r6, PLL1_CTL
  380. orr r8, r8, $0x08
  381. str r8, [r6]
  382. /* Wait for PLL to Lock */
  383. ldr r10, PLL_LOCK_COUNT
  384. PLL1Lock:
  385. subs r10, r10, $1
  386. bne PLL1Lock
  387. /* Enable the PLL */
  388. orr r8, r8, $0x01
  389. str r8, [r6]
  390. nop
  391. nop
  392. nop
  393. nop
  394. /*------------------------------------------------------*
  395. * AEMIF configuration for NOR Flash (double check) *
  396. *------------------------------------------------------*/
  397. ldr r0, _PINMUX0
  398. ldr r1, _DEV_SETTING
  399. str r1, [r0]
  400. ldr r0, WAITCFG
  401. ldr r1, WAITCFG_VAL
  402. ldr r2, [r0]
  403. orr r2, r2, r1
  404. str r2, [r0]
  405. ldr r0, ACFG3
  406. ldr r1, ACFG3_VAL
  407. ldr r2, [r0]
  408. and r1, r2, r1
  409. str r1, [r0]
  410. ldr r0, ACFG4
  411. ldr r1, ACFG4_VAL
  412. ldr r2, [r0]
  413. and r1, r2, r1
  414. str r1, [r0]
  415. ldr r0, ACFG5
  416. ldr r1, ACFG5_VAL
  417. ldr r2, [r0]
  418. and r1, r2, r1
  419. str r1, [r0]
  420. /*--------------------------------------*
  421. * VTP manual Calibration *
  422. *--------------------------------------*/
  423. ldr r0, VTPIOCR
  424. ldr r1, VTP_MMR0
  425. str r1, [r0]
  426. ldr r0, VTPIOCR
  427. ldr r1, VTP_MMR1
  428. str r1, [r0]
  429. /* Wait for 33 VTP CLK cycles. VRP operates at 27 MHz */
  430. ldr r10, VTP_LOCK_COUNT
  431. VTPLock:
  432. subs r10, r10, $1
  433. bne VTPLock
  434. ldr r6, DFT_ENABLE
  435. mov r10, $0x01
  436. str r10, [r6]
  437. ldr r6, DDRVTPR
  438. ldr r7, [r6]
  439. mov r8, r7, LSL #32-10
  440. mov r8, r8, LSR #32-10 /* grab low 10 bits */
  441. ldr r7, VTP_RECAL
  442. orr r8, r7, r8
  443. ldr r7, VTP_EN
  444. orr r8, r7, r8
  445. str r8, [r0]
  446. /* Wait for 33 VTP CLK cycles. VRP operates at 27 MHz */
  447. ldr r10, VTP_LOCK_COUNT
  448. VTP1Lock:
  449. subs r10, r10, $1
  450. bne VTP1Lock
  451. ldr r1, [r0]
  452. ldr r2, VTP_MASK
  453. and r2, r1, r2
  454. str r2, [r0]
  455. ldr r6, DFT_ENABLE
  456. mov r10, $0
  457. str r10, [r6]
  458. /*
  459. * Call board-specific lowlevel init.
  460. * That MUST be present and THAT returns
  461. * back to arch calling code with "mov pc, lr."
  462. */
  463. b dv_board_init
  464. .ltorg
  465. _PINMUX0:
  466. .word 0x01c40000 /* Device Configuration Registers */
  467. _PINMUX1:
  468. .word 0x01c40004 /* Device Configuration Registers */
  469. _DEV_SETTING:
  470. .word 0x00000c1f
  471. WAITCFG:
  472. .word 0x01e00004
  473. WAITCFG_VAL:
  474. .word 0
  475. ACFG3:
  476. .word 0x01e00014
  477. ACFG3_VAL:
  478. .word 0x3ffffffd
  479. ACFG4:
  480. .word 0x01e00018
  481. ACFG4_VAL:
  482. .word 0x3ffffffd
  483. ACFG5:
  484. .word 0x01e0001c
  485. ACFG5_VAL:
  486. .word 0x3ffffffd
  487. MDCTL_DDR2:
  488. .word 0x01c41a34
  489. MDSTAT_DDR2:
  490. .word 0x01c41834
  491. PTCMD:
  492. .word 0x01c41120
  493. PTSTAT:
  494. .word 0x01c41128
  495. EINT_ENABLE0:
  496. .word 0x01c48018
  497. EINT_ENABLE1:
  498. .word 0x01c4801c
  499. PSC_FLAG_CLEAR:
  500. .word 0xffffffe0
  501. PSC_GEM_FLAG_CLEAR:
  502. .word 0xfffffeff
  503. /* DDR2 MMR & CONFIGURATION VALUES, 162 MHZ clock */
  504. DDRCTL:
  505. .word 0x200000e4
  506. DDRCTL_VAL:
  507. .word 0x50006405
  508. SDREF:
  509. .word 0x2000000c
  510. SDREF_VAL:
  511. .word 0x000005c3
  512. SDCFG:
  513. .word 0x20000008
  514. SDCFG_VAL:
  515. #ifdef DDR_4BANKS
  516. .word 0x00178622
  517. #elif defined DDR_8BANKS
  518. .word 0x00178632
  519. #else
  520. #error "Unknown DDR configuration!!!"
  521. #endif
  522. SDTIM0:
  523. .word 0x20000010
  524. SDTIM0_VAL_162MHz:
  525. .word 0x28923211
  526. SDTIM1:
  527. .word 0x20000014
  528. SDTIM1_VAL_162MHz:
  529. .word 0x0016c722
  530. VTPIOCR:
  531. .word 0x200000f0 /* VTP IO Control register */
  532. DDRVTPR:
  533. .word 0x01c42030 /* DDR VPTR MMR */
  534. VTP_MMR0:
  535. .word 0x201f
  536. VTP_MMR1:
  537. .word 0xa01f
  538. DFT_ENABLE:
  539. .word 0x01c4004c
  540. VTP_LOCK_COUNT:
  541. .word 0x5b0
  542. VTP_MASK:
  543. .word 0xffffdfff
  544. VTP_RECAL:
  545. .word 0x08000
  546. VTP_EN:
  547. .word 0x02000
  548. CFGTEST:
  549. .word 0x80010000
  550. MASK_VAL:
  551. .word 0x00000fff
  552. /* GEM Power Up & LPSC Control Register */
  553. MDCTL_GEM:
  554. .word 0x01c41a9c
  555. MDSTAT_GEM:
  556. .word 0x01c4189c
  557. /* For WDT reset chip bug */
  558. P1394:
  559. .word 0x01c41a20
  560. PLL_CLKSRC_MASK:
  561. .word 0xfffffeff /* Mask the Clock Mode bit */
  562. PLL_ENSRC_MASK:
  563. .word 0xffffffdf /* Select the PLLEN source */
  564. PLL_BYPASS_MASK:
  565. .word 0xfffffffe /* Put the PLL in BYPASS */
  566. PLL_RESET_MASK:
  567. .word 0xfffffff7 /* Put the PLL in Reset Mode */
  568. PLL_PWRUP_MASK:
  569. .word 0xfffffffd /* PLL Power up Mask Bit */
  570. PLL_DISABLE_ENABLE_MASK:
  571. .word 0xffffffef /* Enable the PLL from Disable */
  572. PLL_LOCK_COUNT:
  573. .word 0x2000
  574. /* PLL1-SYSTEM PLL MMRs */
  575. PLL1_CTL:
  576. .word 0x01c40900
  577. PLL1_PLLM:
  578. .word 0x01c40910
  579. /* PLL2-SYSTEM PLL MMRs */
  580. PLL2_CTL:
  581. .word 0x01c40d00
  582. PLL2_PLLM:
  583. .word 0x01c40d10
  584. PLL2_DIV1:
  585. .word 0x01c40d18
  586. PLL2_DIV2:
  587. .word 0x01c40d1c
  588. PLL2_PLLCMD:
  589. .word 0x01c40d38
  590. PLL2_PLLSTAT:
  591. .word 0x01c40d3c
  592. PLL2_DIV_MASK:
  593. .word 0xffff7fff
  594. MMARG_BRF0:
  595. .word 0x01c42010 /* BRF margin mode 0 (R/W)*/
  596. MMARG_BRF0_VAL:
  597. .word 0x00444400
  598. DDR2_START_ADDR:
  599. .word 0x80000000
  600. DUMMY_VAL:
  601. .word 0xa55aa55a
  602. #else /* CONFIG_SOC_DM644X */
  603. mov pc, lr
  604. #endif