lowlevel_init.S 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. /*
  2. * Memory Setup stuff - taken from blob memsetup.S
  3. *
  4. * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) and
  5. * Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
  6. *
  7. * Modified for MPL VCMA9 by
  8. * David Mueller, ELSOFT AG, <d.mueller@elsoft.ch>
  9. * (C) Copyright 2002, 2003, 2004, 2005
  10. *
  11. * See file CREDITS for list of people who contributed to this
  12. * project.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  27. * MA 02111-1307 USA
  28. */
  29. #include <config.h>
  30. #include <version.h>
  31. /* register definitions */
  32. #define PLD_BASE 0x28000000
  33. #define MISC_REG 0x103
  34. #define SDRAM_REG 0x106
  35. #define BWSCON 0x48000000
  36. #define CLKBASE 0x4C000000
  37. #define LOCKTIME 0x0
  38. #define MPLLCON 0x4
  39. #define UPLLCON 0x8
  40. #define GPIOBASE 0x56000000
  41. #define GSTATUS1 0xB0
  42. #define FASTCPU 0x02
  43. /* some parameters for the board */
  44. /* BWSCON */
  45. #define DW8 (0x0)
  46. #define DW16 (0x1)
  47. #define DW32 (0x2)
  48. #define WAIT (0x1<<2)
  49. #define UBLB (0x1<<3)
  50. /* BANKSIZE */
  51. #define BURST_EN (0x1<<7)
  52. /* BANK0CON 200 */
  53. #define B0_Tacs_200 0x0 /* 0clk (or 0x1 1clk) */
  54. #define B0_Tcos_200 0x1 /* 1clk (or 0x2 2clk) */
  55. #define B0_Tacc_200 0x5 /* 8clk (or 0x6 10clk) */
  56. #define B0_Tcoh_200 0x0 /* 0clk */
  57. #define B0_Tcah_200 0x3 /* 4clk (or0x01 1clk) */
  58. #define B0_Tacp_200 0x0 /* page mode is not used */
  59. #define B0_PMC_200 0x0 /* page mode disabled */
  60. /* BANK0CON 250 */
  61. #define B0_Tacs_250 0x0 /* 0clk (or 0x1 1clk) */
  62. #define B0_Tcos_250 0x1 /* 1clk (or 0x2 2clk) */
  63. #define B0_Tacc_250 0x5 /* 8clk (or 0x7 14clk) */
  64. #define B0_Tcoh_250 0x0 /* 0clk */
  65. #define B0_Tcah_250 0x3 /* 4clk (or 0x1 1clk) */
  66. #define B0_Tacp_250 0x0 /* page mode is not used */
  67. #define B0_PMC_250 0x0 /* page mode disabled */
  68. /* BANK0CON 266 */
  69. #define B0_Tacs_266 0x0 /* 0clk (or 0x1 1clk) */
  70. #define B0_Tcos_266 0x1 /* 1clk (or 0x2 2clk) */
  71. #define B0_Tacc_266 0x6 /* 10clk (or 0x7 14clk) */
  72. #define B0_Tcoh_266 0x0 /* 0clk */
  73. #define B0_Tcah_266 0x3 /* 4clk (or 0x1 1clk) */
  74. #define B0_Tacp_266 0x0 /* page mode is not used */
  75. #define B0_PMC_266 0x0 /* page mode disabled */
  76. /* BANK1CON 200 */
  77. #define B1_Tacs_200 0x0 /* 0clk (or 0x1 1clk) */
  78. #define B1_Tcos_200 0x1 /* 1clk (or 0x2 2clk) */
  79. #define B1_Tacc_200 0x5 /* 8clk (or 0x6 10clk) */
  80. #define B1_Tcoh_200 0x0 /* 0clk */
  81. #define B1_Tcah_200 0x3 /* 4clk (or 0x1 1clk) */
  82. #define B1_Tacp_200 0x0 /* page mode is not used */
  83. #define B1_PMC_200 0x0 /* page mode disabled */
  84. /* BANK1CON 250 */
  85. #define B1_Tacs_250 0x0 /* 0clk (or 0x1 1clk) */
  86. #define B1_Tcos_250 0x1 /* 1clk (or 0x2 2clk) */
  87. #define B1_Tacc_250 0x5 /* 8clk (or 0x7 14clk) */
  88. #define B1_Tcoh_250 0x0 /* 0clk */
  89. #define B1_Tcah_250 0x3 /* 4clk (or 0x1 1clk) */
  90. #define B1_Tacp_250 0x0 /* page mode is not used */
  91. #define B1_PMC_250 0x0 /* page mode disabled */
  92. /* BANK1CON 266 */
  93. #define B1_Tacs_266 0x0 /* 0clk (or 0x1 1clk) */
  94. #define B1_Tcos_266 0x1 /* 1clk (or 0x2 2clk) */
  95. #define B1_Tacc_266 0x6 /* 10clk (or 0x7 14clk) */
  96. #define B1_Tcoh_266 0x0 /* 0clk */
  97. #define B1_Tcah_266 0x3 /* 4clk (or 0x1 1clk) */
  98. #define B1_Tacp_266 0x0 /* page mode is not used */
  99. #define B1_PMC_266 0x0 /* page mode disabled */
  100. /* BANK2CON 200 + 250 + 266 */
  101. #define B2_Tacs 0x3 /* 4clk */
  102. #define B2_Tcos 0x3 /* 4clk */
  103. #define B2_Tacc 0x7 /* 14clk */
  104. #define B2_Tcoh 0x3 /* 4clk */
  105. #define B2_Tcah 0x3 /* 4clk */
  106. #define B2_Tacp 0x0 /* page mode is not used */
  107. #define B2_PMC 0x0 /* page mode disabled */
  108. /* BANK3CON 200 + 250 + 266 */
  109. #define B3_Tacs 0x3 /* 4clk */
  110. #define B3_Tcos 0x3 /* 4clk */
  111. #define B3_Tacc 0x7 /* 14clk */
  112. #define B3_Tcoh 0x3 /* 4clk */
  113. #define B3_Tcah 0x3 /* 4clk */
  114. #define B3_Tacp 0x0 /* page mode is not used */
  115. #define B3_PMC 0x0 /* page mode disabled */
  116. /* BANK4CON 200 */
  117. #define B4_Tacs_200 0x1 /* 1clk */
  118. #define B4_Tcos_200 0x3 /* 4clk */
  119. #define B4_Tacc_200 0x7 /* 14clk */
  120. #define B4_Tcoh_200 0x3 /* 4clk */
  121. #define B4_Tcah_200 0x2 /* 2clk */
  122. #define B4_Tacp_200 0x0 /* page mode is not used */
  123. #define B4_PMC_200 0x0 /* page mode disabled */
  124. /* BANK4CON 250 */
  125. #define B4_Tacs_250 0x1 /* 1clk */
  126. #define B4_Tcos_250 0x3 /* 4clk */
  127. #define B4_Tacc_250 0x7 /* 14clk */
  128. #define B4_Tcoh_250 0x3 /* 4clk */
  129. #define B4_Tcah_250 0x2 /* 2clk */
  130. #define B4_Tacp_250 0x0 /* page mode is not used */
  131. #define B4_PMC_250 0x0 /* page mode disabled */
  132. /* BANK4CON 266 */
  133. #define B4_Tacs_266 0x1 /* 1clk */
  134. #define B4_Tcos_266 0x3 /* 4clk */
  135. #define B4_Tacc_266 0x7 /* 14clk */
  136. #define B4_Tcoh_266 0x3 /* 4clk */
  137. #define B4_Tcah_266 0x2 /* 2clk */
  138. #define B4_Tacp_266 0x0 /* page mode is not used */
  139. #define B4_PMC_266 0x0 /* page mode disabled */
  140. /* BANK5CON 200 */
  141. #define B5_Tacs_200 0x0 /* 0clk */
  142. #define B5_Tcos_200 0x3 /* 4clk */
  143. #define B5_Tacc_200 0x4 /* 6clk */
  144. #define B5_Tcoh_200 0x3 /* 4clk */
  145. #define B5_Tcah_200 0x1 /* 1clk */
  146. #define B5_Tacp_200 0x0 /* page mode is not used */
  147. #define B5_PMC_200 0x0 /* page mode disabled */
  148. /* BANK5CON 250 */
  149. #define B5_Tacs_250 0x0 /* 0clk */
  150. #define B5_Tcos_250 0x3 /* 4clk */
  151. #define B5_Tacc_250 0x5 /* 8clk */
  152. #define B5_Tcoh_250 0x3 /* 4clk */
  153. #define B5_Tcah_250 0x1 /* 1clk */
  154. #define B5_Tacp_250 0x0 /* page mode is not used */
  155. #define B5_PMC_250 0x0 /* page mode disabled */
  156. /* BANK5CON 266 */
  157. #define B5_Tacs_266 0x0 /* 0clk */
  158. #define B5_Tcos_266 0x3 /* 4clk */
  159. #define B5_Tacc_266 0x5 /* 8clk */
  160. #define B5_Tcoh_266 0x3 /* 4clk */
  161. #define B5_Tcah_266 0x1 /* 1clk */
  162. #define B5_Tacp_266 0x0 /* page mode is not used */
  163. #define B5_PMC_266 0x0 /* page mode disabled */
  164. #define B6_MT 0x3 /* SDRAM */
  165. #define B6_Trcd_200 0x0 /* 2clk */
  166. #define B6_Trcd_250 0x1 /* 3clk */
  167. #define B6_Trcd_266 0x1 /* 3clk */
  168. #define B6_SCAN 0x2 /* 10bit */
  169. #define B7_MT 0x3 /* SDRAM */
  170. #define B7_Trcd_200 0x0 /* 2clk */
  171. #define B7_Trcd_250 0x1 /* 3clk */
  172. #define B7_Trcd_266 0x1 /* 3clk */
  173. #define B7_SCAN 0x2 /* 10bit */
  174. /* REFRESH parameter */
  175. #define REFEN 0x1 /* Refresh enable */
  176. #define TREFMD 0x0 /* CBR(CAS before RAS)/Auto refresh */
  177. #define Trp_200 0x0 /* 2clk */
  178. #define Trp_250 0x1 /* 3clk */
  179. #define Trp_266 0x1 /* 3clk */
  180. #define Tsrc_200 0x1 /* 5clk */
  181. #define Tsrc_250 0x2 /* 6clk */
  182. #define Tsrc_266 0x3 /* 7clk */
  183. /* period=15.6us, HCLK=100Mhz, (2048+1-15.6*100) */
  184. #define REFCNT_200 489
  185. /* period=15.6us, HCLK=125Mhz, (2048+1-15.6*125) */
  186. #define REFCNT_250 99
  187. /* period=15.6us, HCLK=133Mhz, (2048+1-15.6*133) */
  188. #define REFCNT_266 0
  189. /**************************************/
  190. _TEXT_BASE:
  191. .word CONFIG_SYS_TEXT_BASE
  192. .globl lowlevel_init
  193. lowlevel_init:
  194. /* use r0 to relocate DATA read/write to flash rather than memory ! */
  195. ldr r0, _TEXT_BASE
  196. ldr r13, =BWSCON
  197. /* enable minimal access to PLD */
  198. ldr r1, [r13] /* load default BWSCON */
  199. orr r1, r1, #(DW8 + UBLB) << 20 /* set necessary CS attrs */
  200. str r1, [r13] /* set BWSCON */
  201. ldr r1, =0x7FF0 /* select slowest timing */
  202. str r1, [r13, #0x18] /* set BANKCON5 */
  203. ldr r1, =PLD_BASE
  204. ldr r2, =SETUPDATA
  205. ldrb r1, [r1, #MISC_REG]
  206. sub r2, r2, r0
  207. tst r1, #FASTCPU /* FASTCPU available ? */
  208. addeq r2, r2, #SETUPENTRY_SIZE
  209. /* memory control configuration */
  210. /* r2 = pointer into timing table */
  211. /* r13 = pointer to MEM controller regs (starting with BWSCON) */
  212. add r3, r2, #CSDATA_OFFSET
  213. add r4, r3, #CSDATAENTRY_SIZE
  214. 0:
  215. ldr r1, [r3], #4
  216. str r1, [r13], #4
  217. cmp r3, r4
  218. bne 0b
  219. /* PLD access is now possible */
  220. /* r3 = SDRAMDATA
  221. /* r13 = pointer to MEM controller regs */
  222. ldr r1, =PLD_BASE
  223. mov r4, #SDRAMENTRY_SIZE
  224. ldrb r1, [r1, #SDRAM_REG]
  225. /* calculate start and end point */
  226. mla r3, r4, r1, r3
  227. add r4, r3, r4
  228. 0:
  229. ldr r1, [r3], #4
  230. str r1, [r13], #4
  231. cmp r3, r4
  232. bne 0b
  233. /* setup MPLL registers */
  234. ldr r1, =CLKBASE
  235. ldr r4, =0xFFFFFF
  236. add r3, r2, #4 /* r3 points to PLL values */
  237. str r4, [r1, #LOCKTIME]
  238. ldmia r3, {r4,r5}
  239. str r5, [r1, #UPLLCON] /* writing PLL register */
  240. /* !! order seems to be important !! */
  241. /* a little delay */
  242. ldr r3, =0x4000
  243. 0:
  244. subs r3, r3, #1
  245. bne 0b
  246. str r4, [r1, #MPLLCON] /* writing PLL register */
  247. /* !! order seems to be important !! */
  248. /* a little delay */
  249. ldr r3, =0x4000
  250. 0:
  251. subs r3, r3, #1
  252. bne 0b
  253. /* everything is fine now */
  254. mov pc, lr
  255. .ltorg
  256. /* the literal pools origin */
  257. #define MK_BWSCON(bws1, bws2, bws3, bws4, bws5, bws6, bws7) \
  258. ((bws1) << 4) + \
  259. ((bws2) << 8) + \
  260. ((bws3) << 12) + \
  261. ((bws4) << 16) + \
  262. ((bws5) << 20) + \
  263. ((bws6) << 24) + \
  264. ((bws7) << 28)
  265. #define MK_BANKCON(tacs, tcos, tacc, tcoh, tcah, tacp, pmc) \
  266. ((tacs) << 13) + \
  267. ((tcos) << 11) + \
  268. ((tacc) << 8) + \
  269. ((tcoh) << 6) + \
  270. ((tcah) << 4) + \
  271. ((tacp) << 2) + \
  272. (pmc)
  273. #define MK_BANKCON_SDRAM(trcd, scan) \
  274. ((0x03) << 15) + \
  275. ((trcd) << 2) + \
  276. (scan)
  277. #define MK_SDRAM_REFRESH(enable, trefmd, trp, tsrc, cnt) \
  278. ((enable) << 23) + \
  279. ((trefmd) << 22) + \
  280. ((trp) << 20) + \
  281. ((tsrc) << 18) + \
  282. (cnt)
  283. SETUPDATA:
  284. .word 0x32410002
  285. /* PLL values (MDIV, PDIV, SDIV) for 250 MHz */
  286. .word (0x75 << 12) + (0x01 << 4) + (0x01 << 0)
  287. /* PLL values for USB clock */
  288. .word (0x48 << 12) + (0x03 << 4) + (0x02 << 0)
  289. /* timing for 250 MHz*/
  290. 0:
  291. .equiv CSDATA_OFFSET, (. - SETUPDATA)
  292. .word MK_BWSCON(DW16, \
  293. DW32, \
  294. DW32, \
  295. DW16 + WAIT + UBLB, \
  296. DW8 + UBLB, \
  297. DW32, \
  298. DW32)
  299. .word MK_BANKCON(B0_Tacs_250, \
  300. B0_Tcos_250, \
  301. B0_Tacc_250, \
  302. B0_Tcoh_250, \
  303. B0_Tcah_250, \
  304. B0_Tacp_250, \
  305. B0_PMC_250)
  306. .word MK_BANKCON(B1_Tacs_250, \
  307. B1_Tcos_250, \
  308. B1_Tacc_250, \
  309. B1_Tcoh_250, \
  310. B1_Tcah_250, \
  311. B1_Tacp_250, \
  312. B1_PMC_250)
  313. .word MK_BANKCON(B2_Tacs, \
  314. B2_Tcos, \
  315. B2_Tacc, \
  316. B2_Tcoh, \
  317. B2_Tcah, \
  318. B2_Tacp, \
  319. B2_PMC)
  320. .word MK_BANKCON(B3_Tacs, \
  321. B3_Tcos, \
  322. B3_Tacc, \
  323. B3_Tcoh, \
  324. B3_Tcah, \
  325. B3_Tacp, \
  326. B3_PMC)
  327. .word MK_BANKCON(B4_Tacs_250, \
  328. B4_Tcos_250, \
  329. B4_Tacc_250, \
  330. B4_Tcoh_250, \
  331. B4_Tcah_250, \
  332. B4_Tacp_250, \
  333. B4_PMC_250)
  334. .word MK_BANKCON(B5_Tacs_250, \
  335. B5_Tcos_250, \
  336. B5_Tacc_250, \
  337. B5_Tcoh_250, \
  338. B5_Tcah_250, \
  339. B5_Tacp_250, \
  340. B5_PMC_250)
  341. .equiv CSDATAENTRY_SIZE, (. - 0b)
  342. /* 4Mx8x4 */
  343. 0:
  344. .word MK_BANKCON_SDRAM(B6_Trcd_250, B6_SCAN)
  345. .word MK_BANKCON_SDRAM(B7_Trcd_250, B7_SCAN)
  346. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_250, Tsrc_250, REFCNT_250)
  347. .word 0x32 + BURST_EN
  348. .word 0x30
  349. .word 0x30
  350. .equiv SDRAMENTRY_SIZE, (. - 0b)
  351. /* 8Mx8x4 */
  352. .word MK_BANKCON_SDRAM(B6_Trcd_250, B6_SCAN)
  353. .word MK_BANKCON_SDRAM(B7_Trcd_250, B7_SCAN)
  354. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_250, Tsrc_250, REFCNT_250)
  355. .word 0x32 + BURST_EN
  356. .word 0x30
  357. .word 0x30
  358. /* 2Mx8x4 */
  359. .word MK_BANKCON_SDRAM(B6_Trcd_250, B6_SCAN)
  360. .word MK_BANKCON_SDRAM(B7_Trcd_250, B7_SCAN)
  361. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_250, Tsrc_250, REFCNT_250)
  362. .word 0x32 + BURST_EN
  363. .word 0x30
  364. .word 0x30
  365. /* 4Mx8x2 */
  366. .word MK_BANKCON_SDRAM(B6_Trcd_250, B6_SCAN)
  367. .word MK_BANKCON_SDRAM(B7_Trcd_250, B7_SCAN)
  368. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_250, Tsrc_250, REFCNT_250)
  369. .word 0x32 + BURST_EN
  370. .word 0x30
  371. .word 0x30
  372. .equiv SETUPENTRY_SIZE, (. - SETUPDATA)
  373. .word 0x32410000
  374. /* PLL values (MDIV, PDIV, SDIV) for 200 MHz (Fout = 202.8MHz) */
  375. .word (0xA1 << 12) + (0x03 << 4) + (0x01 << 0)
  376. /* PLL values for USB clock */
  377. .word (0x48 << 12) + (0x03 << 4) + (0x02 << 0)
  378. /* timing for 200 MHz and default*/
  379. .word MK_BWSCON(DW16, \
  380. DW32, \
  381. DW32, \
  382. DW16 + WAIT + UBLB, \
  383. DW8 + UBLB, \
  384. DW32, \
  385. DW32)
  386. .word MK_BANKCON(B0_Tacs_200, \
  387. B0_Tcos_200, \
  388. B0_Tacc_200, \
  389. B0_Tcoh_200, \
  390. B0_Tcah_200, \
  391. B0_Tacp_200, \
  392. B0_PMC_200)
  393. .word MK_BANKCON(B1_Tacs_200, \
  394. B1_Tcos_200, \
  395. B1_Tacc_200, \
  396. B1_Tcoh_200, \
  397. B1_Tcah_200, \
  398. B1_Tacp_200, \
  399. B1_PMC_200)
  400. .word MK_BANKCON(B2_Tacs, \
  401. B2_Tcos, \
  402. B2_Tacc, \
  403. B2_Tcoh, \
  404. B2_Tcah, \
  405. B2_Tacp, \
  406. B2_PMC)
  407. .word MK_BANKCON(B3_Tacs, \
  408. B3_Tcos, \
  409. B3_Tacc, \
  410. B3_Tcoh, \
  411. B3_Tcah, \
  412. B3_Tacp, \
  413. B3_PMC)
  414. .word MK_BANKCON(B4_Tacs_200, \
  415. B4_Tcos_200, \
  416. B4_Tacc_200, \
  417. B4_Tcoh_200, \
  418. B4_Tcah_200, \
  419. B4_Tacp_200, \
  420. B4_PMC_200)
  421. .word MK_BANKCON(B5_Tacs_200, \
  422. B5_Tcos_200, \
  423. B5_Tacc_200, \
  424. B5_Tcoh_200, \
  425. B5_Tcah_200, \
  426. B5_Tacp_200, \
  427. B5_PMC_200)
  428. /* 4Mx8x4 */
  429. .word MK_BANKCON_SDRAM(B6_Trcd_200, B6_SCAN)
  430. .word MK_BANKCON_SDRAM(B7_Trcd_200, B7_SCAN)
  431. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_200, Tsrc_200, REFCNT_200)
  432. .word 0x32 + BURST_EN
  433. .word 0x30
  434. .word 0x30
  435. /* 8Mx8x4 */
  436. .word MK_BANKCON_SDRAM(B6_Trcd_200, B6_SCAN)
  437. .word MK_BANKCON_SDRAM(B7_Trcd_200, B7_SCAN)
  438. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_200, Tsrc_200, REFCNT_200)
  439. .word 0x32 + BURST_EN
  440. .word 0x30
  441. .word 0x30
  442. /* 2Mx8x4 */
  443. .word MK_BANKCON_SDRAM(B6_Trcd_200, B6_SCAN)
  444. .word MK_BANKCON_SDRAM(B7_Trcd_200, B7_SCAN)
  445. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_200, Tsrc_200, REFCNT_200)
  446. .word 0x32 + BURST_EN
  447. .word 0x30
  448. .word 0x30
  449. /* 4Mx8x2 */
  450. .word MK_BANKCON_SDRAM(B6_Trcd_200, B6_SCAN)
  451. .word MK_BANKCON_SDRAM(B7_Trcd_200, B7_SCAN)
  452. .word MK_SDRAM_REFRESH(REFEN, TREFMD, Trp_200, Tsrc_200, REFCNT_200)
  453. .word 0x32 + BURST_EN
  454. .word 0x30
  455. .word 0x30
  456. .equiv SETUPDATA_SIZE, (. - SETUPDATA)