xaeniax.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. /*
  2. * (C) Copyright 2004-2005
  3. * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
  4. *
  5. * (C) Copyright 2004
  6. * Vincent Dubey, Xa SA, vincent.dubey@xa-ch.com
  7. *
  8. * (C) Copyright 2002
  9. * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.ne
  10. *
  11. * (C) Copyright 2002
  12. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  13. * Marius Groeger <mgroeger@sysgo.de>
  14. *
  15. * Configuation settings for the xaeniax board.
  16. *
  17. * See file CREDITS for list of people who contributed to this
  18. * project.
  19. *
  20. * This program is free software; you can redistribute it and/or
  21. * modify it under the terms of the GNU General Public License as
  22. * published by the Free Software Foundation; either version 2 of
  23. * the License, or (at your option) any later version.
  24. *
  25. * This program is distributed in the hope that it will be useful,
  26. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  27. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  28. * GNU General Public License for more details.
  29. *
  30. * You should have received a copy of the GNU General Public License
  31. * along with this program; if not, write to the Free Software
  32. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  33. * MA 02111-1307 USA
  34. */
  35. #ifndef __CONFIG_H
  36. #define __CONFIG_H
  37. /*
  38. * High Level Configuration Options
  39. * (easy to change)
  40. */
  41. #define CONFIG_PXA250 1 /* This is an PXA255 CPU */
  42. #define CONFIG_XAENIAX 1 /* on a xaeniax board */
  43. #define BOARD_LATE_INIT 1
  44. #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
  45. /* we will never enable dcache, because we have to setup MMU first */
  46. #define CONFIG_SYS_NO_DCACHE
  47. /*
  48. * select serial console configuration
  49. */
  50. #define CONFIG_BTUART 1 /* we use BTUART on XAENIAX */
  51. /* allow to overwrite serial and ethaddr */
  52. #define CONFIG_ENV_OVERWRITE
  53. #define CONFIG_TIMESTAMP /* Print image info with timestamp */
  54. #define CONFIG_BAUDRATE 115200
  55. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } /* valid baudrates */
  56. /*
  57. * BOOTP options
  58. */
  59. #define CONFIG_BOOTP_BOOTFILESIZE
  60. #define CONFIG_BOOTP_BOOTPATH
  61. #define CONFIG_BOOTP_GATEWAY
  62. #define CONFIG_BOOTP_HOSTNAME
  63. /*
  64. * Command line configuration.
  65. */
  66. #include <config_cmd_default.h>
  67. #define CONFIG_CMD_DHCP
  68. #define CONFIG_CMD_DIAG
  69. #define CONFIG_CMD_NFS
  70. #define CONFIG_CMD_SDRAM
  71. #define CONFIG_CMD_SNTP
  72. #undef CONFIG_CMD_DTT
  73. #define CONFIG_ETHADDR 08:00:3e:26:0a:5b
  74. #define CONFIG_NETMASK 255.255.255.0
  75. #define CONFIG_IPADDR 192.168.68.201
  76. #define CONFIG_SERVERIP 192.168.68.62
  77. #define CONFIG_BOOTDELAY 3
  78. #define CONFIG_BOOTCOMMAND "bootm 0x00100000"
  79. #define CONFIG_BOOTARGS "console=ttyS1,115200"
  80. #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
  81. #define CONFIG_SETUP_MEMORY_TAGS 1
  82. #define CONFIG_INITRD_TAG 1
  83. #if defined(CONFIG_CMD_KGDB)
  84. #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
  85. #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
  86. #endif
  87. /*
  88. * Size of malloc() pool; this lives below the uppermost 128 KiB which are
  89. * used for the RAM copy of the uboot code
  90. */
  91. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
  92. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  93. /*
  94. * Miscellaneous configurable options
  95. */
  96. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  97. #define CONFIG_SYS_HUSH_PARSER 1
  98. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  99. #ifdef CONFIG_SYS_HUSH_PARSER
  100. #define CONFIG_SYS_PROMPT "u-boot$ " /* Monitor Command Prompt */
  101. #else
  102. #define CONFIG_SYS_PROMPT "u-boot=> " /* Monitor Command Prompt */
  103. #endif
  104. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  105. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  106. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  107. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
  108. #define CONFIG_SYS_DEVICE_NULLDEV 1
  109. #define CONFIG_SYS_MEMTEST_START 0xa0400000 /* memtest works on */
  110. #define CONFIG_SYS_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
  111. #define CONFIG_SYS_LOAD_ADDR 0xa1000000 /* default load address */
  112. #define CONFIG_SYS_HZ 1000
  113. #define CONFIG_SYS_CPUSPEED 0x141 /* set core clock to 400/200/100 MHz */
  114. /*
  115. * Physical Memory Map
  116. */
  117. #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 banks (partition) of DRAM */
  118. #define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
  119. #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
  120. #define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
  121. #define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
  122. #define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
  123. #define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
  124. #define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
  125. #define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
  126. #define PHYS_FLASH_1 0x00000000 /* Flash Bank #1 */
  127. #define PHYS_FLASH_2 0x04000000 /* Flash Bank #2 */
  128. #define PHYS_FLASH_SIZE 0x02000000 /* 32 MB */
  129. #define PHYS_FLASH_BANK_SIZE 0x02000000 /* 32 MB Banks */
  130. #define PHYS_FLASH_SECT_SIZE 0x00040000 /* 256 KB sectors (x2) */
  131. #define CONFIG_SYS_DRAM_BASE 0xa0000000
  132. #define CONFIG_SYS_DRAM_SIZE 0x04000000
  133. #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
  134. /*
  135. * FLASH and environment organization
  136. */
  137. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
  138. #define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */
  139. /* timeout values are in ticks */
  140. #define CONFIG_SYS_FLASH_ERASE_TOUT (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
  141. #define CONFIG_SYS_FLASH_WRITE_TOUT (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
  142. /* FIXME */
  143. #define CONFIG_ENV_IS_IN_FLASH 1
  144. #define CONFIG_ENV_ADDR (PHYS_FLASH_1 + 0x40000)/* Addr of Environment Sector */
  145. #define CONFIG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
  146. /*
  147. * Stack sizes
  148. *
  149. * The stack sizes are set up in start.S using the settings below
  150. */
  151. #define CONFIG_STACKSIZE (128*1024) /* regular stack */
  152. #ifdef CONFIG_USE_IRQ
  153. #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
  154. #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
  155. #endif
  156. /*
  157. * SMSC91C111 Network Card
  158. */
  159. #define CONFIG_DRIVER_SMC91111 1
  160. #define CONFIG_SMC91111_BASE 0x10000300 /* chip select 3 */
  161. #define CONFIG_SMC_USE_32_BIT 1 /* 32 bit bus */
  162. #undef CONFIG_SMC_91111_EXT_PHY /* we use internal phy */
  163. #undef CONFIG_SHOW_ACTIVITY
  164. #define CONFIG_NET_RETRY_COUNT 10 /* # of retries */
  165. /*
  166. * GPIO settings
  167. */
  168. /*
  169. * GP05 == nUSBReset is 1
  170. * GP10 == CFReset is 1
  171. * GP13 == nCFDataEnable is 1
  172. * GP14 == nCFAddrEnable is 1
  173. * GP15 == nCS1 is 1
  174. * GP21 == ComBrdReset is 1
  175. * GP24 == SFRM is 1
  176. * GP25 == TXD is 1
  177. * GP31 == SYNC is 1
  178. * GP33 == nCS5 is 1
  179. * GP39 == FFTXD is 1
  180. * GP41 == RTS is 1
  181. * GP43 == BTTXD is 1
  182. * GP45 == BTRTS is 1
  183. * GP47 == TXD is 1
  184. * GP48 == nPOE is 1
  185. * GP49 == nPWE is 1
  186. * GP50 == nPIOR is 1
  187. * GP51 == nPIOW is 1
  188. * GP52 == nPCE[1] is 1
  189. * GP53 == nPCE[2] is 1
  190. * GP54 == nPSKTSEL is 1
  191. * GP55 == nPREG is 1
  192. * GP78 == nCS2 is 1
  193. * GP79 == nCS3 is 1
  194. * GP80 == nCS4 is 1
  195. * GP82 == NSSPSFRM is 1
  196. * GP83 == NSSPTXD is 1
  197. */
  198. #define CONFIG_SYS_GPSR0_VAL 0x8320E420
  199. #define CONFIG_SYS_GPSR1_VAL 0x00FFAA82
  200. #define CONFIG_SYS_GPSR2_VAL 0x000DC000
  201. /*
  202. * GP03 == LANReset is 0
  203. * GP06 == USBWakeUp is 0
  204. * GP11 == USBControl is 0
  205. * GP12 == Buzzer is 0
  206. * GP16 == PWM0 is 0
  207. * GP17 == PWM1 is 0
  208. * GP23 == SCLK is 0
  209. * GP30 == SDATA_OUT is 0
  210. * GP81 == NSSPCLK is 0
  211. */
  212. #define CONFIG_SYS_GPCR0_VAL 0x40C31848
  213. #define CONFIG_SYS_GPCR1_VAL 0x00000000
  214. #define CONFIG_SYS_GPCR2_VAL 0x00020000
  215. /*
  216. * GP00 == CPUWakeUpUSB is input
  217. * GP01 == GP reset is input
  218. * GP02 == LANInterrupt is input
  219. * GP03 == LANReset is output
  220. * GP04 == USBInterrupt is input
  221. * GP05 == nUSBReset is output
  222. * GP06 == USBWakeUp is output
  223. * GP07 == CFReady/nBusy is input
  224. * GP08 == nCFCardDetect1 is input
  225. * GP09 == nCFCardDetect2 is input
  226. * GP10 == nCFReset is output
  227. * GP11 == USBControl is output
  228. * GP12 == Buzzer is output
  229. * GP13 == CFDataEnable is output
  230. * GP14 == CFAddressEnable is output
  231. * GP15 == nCS1 is output
  232. * GP16 == PWM0 is output
  233. * GP17 == PWM1 is output
  234. * GP18 == RDY is input
  235. * GP19 == ReaderReady is input
  236. * GP20 == ReaderReset is input
  237. * GP21 == ComBrdReset is output
  238. * GP23 == SCLK is output
  239. * GP24 == SFRM is output
  240. * GP25 == TXD is output
  241. * GP26 == RXD is input
  242. * GP27 == EXTCLK is input
  243. * GP28 == BITCLK is output
  244. * GP29 == SDATA_IN0 is input
  245. * GP30 == SDATA_OUT is output
  246. * GP31 == SYNC is output
  247. * GP32 == SYSSCLK is output
  248. * GP33 == nCS5 is output
  249. * GP34 == FFRXD is input
  250. * GP35 == CTS is input
  251. * GP36 == DCD is input
  252. * GP37 == DSR is input
  253. * GP38 == RI is input
  254. * GP39 == FFTXD is output
  255. * GP40 == DTR is output
  256. * GP41 == RTS is output
  257. * GP42 == BTRXD is input
  258. * GP43 == BTTXD is output
  259. * GP44 == BTCTS is input
  260. * GP45 == BTRTS is output
  261. * GP46 == RXD is input
  262. * GP47 == TXD is output
  263. * GP48 == nPOE is output
  264. * GP49 == nPWE is output
  265. * GP50 == nPIOR is output
  266. * GP51 == nPIOW is output
  267. * GP52 == nPCE[1] is output
  268. * GP53 == nPCE[2] is output
  269. * GP54 == nPSKTSEL is output
  270. * GP55 == nPREG is output
  271. * GP56 == nPWAIT is input
  272. * GP57 == nPIOS16 is input
  273. * GP58 == LDD[0] is output
  274. * GP59 == LDD[1] is output
  275. * GP60 == LDD[2] is output
  276. * GP61 == LDD[3] is output
  277. * GP62 == LDD[4] is output
  278. * GP63 == LDD[5] is output
  279. * GP64 == LDD[6] is output
  280. * GP65 == LDD[7] is output
  281. * GP66 == LDD[8] is output
  282. * GP67 == LDD[9] is output
  283. * GP68 == LDD[10] is output
  284. * GP69 == LDD[11] is output
  285. * GP70 == LDD[12] is output
  286. * GP71 == LDD[13] is output
  287. * GP72 == LDD[14] is output
  288. * GP73 == LDD[15] is output
  289. * GP74 == LCD_FCLK is output
  290. * GP75 == LCD_LCLK is output
  291. * GP76 == LCD_PCLK is output
  292. * GP77 == LCD_ACBIAS is output
  293. * GP78 == nCS2 is output
  294. * GP79 == nCS3 is output
  295. * GP80 == nCS4 is output
  296. * GP81 == NSSPCLK is output
  297. * GP82 == NSSPSFRM is output
  298. * GP83 == NSSPTXD is output
  299. * GP84 == NSSPRXD is input
  300. */
  301. #define CONFIG_SYS_GPDR0_VAL 0xD3E3FC68
  302. #define CONFIG_SYS_GPDR1_VAL 0xFCFFAB83
  303. #define CONFIG_SYS_GPDR2_VAL 0x000FFFFF
  304. /*
  305. * GP01 == GP reset is AF01
  306. * GP15 == nCS1 is AF10
  307. * GP16 == PWM0 is AF10
  308. * GP17 == PWM1 is AF10
  309. * GP18 == RDY is AF01
  310. * GP23 == SCLK is AF10
  311. * GP24 == SFRM is AF10
  312. * GP25 == TXD is AF10
  313. * GP26 == RXD is AF01
  314. * GP27 == EXTCLK is AF01
  315. * GP28 == BITCLK is AF01
  316. * GP29 == SDATA_IN0 is AF10
  317. * GP30 == SDATA_OUT is AF01
  318. * GP31 == SYNC is AF01
  319. * GP32 == SYSCLK is AF01
  320. * GP33 == nCS5 is AF10
  321. * GP34 == FFRXD is AF01
  322. * GP35 == CTS is AF01
  323. * GP36 == DCD is AF01
  324. * GP37 == DSR is AF01
  325. * GP38 == RI is AF01
  326. * GP39 == FFTXD is AF10
  327. * GP40 == DTR is AF10
  328. * GP41 == RTS is AF10
  329. * GP42 == BTRXD is AF01
  330. * GP43 == BTTXD is AF10
  331. * GP44 == BTCTS is AF01
  332. * GP45 == BTRTS is AF10
  333. * GP46 == RXD is AF10
  334. * GP47 == TXD is AF01
  335. * GP48 == nPOE is AF10
  336. * GP49 == nPWE is AF10
  337. * GP50 == nPIOR is AF10
  338. * GP51 == nPIOW is AF10
  339. * GP52 == nPCE[1] is AF10
  340. * GP53 == nPCE[2] is AF10
  341. * GP54 == nPSKTSEL is AF10
  342. * GP55 == nPREG is AF10
  343. * GP56 == nPWAIT is AF01
  344. * GP57 == nPIOS16 is AF01
  345. * GP58 == LDD[0] is AF10
  346. * GP59 == LDD[1] is AF10
  347. * GP60 == LDD[2] is AF10
  348. * GP61 == LDD[3] is AF10
  349. * GP62 == LDD[4] is AF10
  350. * GP63 == LDD[5] is AF10
  351. * GP64 == LDD[6] is AF10
  352. * GP65 == LDD[7] is AF10
  353. * GP66 == LDD[8] is AF10
  354. * GP67 == LDD[9] is AF10
  355. * GP68 == LDD[10] is AF10
  356. * GP69 == LDD[11] is AF10
  357. * GP70 == LDD[12] is AF10
  358. * GP71 == LDD[13] is AF10
  359. * GP72 == LDD[14] is AF10
  360. * GP73 == LDD[15] is AF10
  361. * GP74 == LCD_FCLK is AF10
  362. * GP75 == LCD_LCLK is AF10
  363. * GP76 == LCD_PCLK is AF10
  364. * GP77 == LCD_ACBIAS is AF10
  365. * GP78 == nCS2 is AF10
  366. * GP79 == nCS3 is AF10
  367. * GP80 == nCS4 is AF10
  368. * GP81 == NSSPCLK is AF01
  369. * GP82 == NSSPSFRM is AF01
  370. * GP83 == NSSPTXD is AF01
  371. * GP84 == NSSPRXD is AF10
  372. */
  373. #define CONFIG_SYS_GAFR0_L_VAL 0x80000004
  374. #define CONFIG_SYS_GAFR0_U_VAL 0x595A801A
  375. #define CONFIG_SYS_GAFR1_L_VAL 0x699A9559
  376. #define CONFIG_SYS_GAFR1_U_VAL 0xAAA5AAAA
  377. #define CONFIG_SYS_GAFR2_L_VAL 0xAAAAAAAA
  378. #define CONFIG_SYS_GAFR2_U_VAL 0x00000256
  379. /*
  380. * clock settings
  381. */
  382. /* RDH = 1
  383. * PH = 0
  384. * VFS = 0
  385. * BFS = 0
  386. * SSS = 0
  387. */
  388. #define CONFIG_SYS_PSSR_VAL 0x00000030
  389. #define CONFIG_SYS_CKEN_VAL 0x00000080 /* */
  390. #define CONFIG_SYS_ICMR_VAL 0x00000000 /* No interrupts enabled */
  391. /*
  392. * Memory settings
  393. *
  394. * This is the configuration for nCS0/1 -> flash banks
  395. * configuration for nCS1 :
  396. * [31] 0 -
  397. * [30:28] 000 -
  398. * [27:24] 0000 -
  399. * [23:20] 0000 -
  400. * [19] 0 -
  401. * [18:16] 000 -
  402. * configuration for nCS0:
  403. * [15] 0 - Slower Device
  404. * [14:12] 010 - CS deselect to CS time: 2*(2*MemClk) = 40 ns
  405. * [11:08] 0011 - Address to data valid in bursts: (3+1)*MemClk = 40 ns
  406. * [07:04] 1111 - " for first access: (23+2)*MemClk = 250 ns (fixme 12+2?)
  407. * [03] 0 - 32 Bit bus width
  408. * [02:00] 010 - burst OF 4 ROM or FLASH
  409. */
  410. #define CONFIG_SYS_MSC0_VAL 0x000023D2
  411. /* This is the configuration for nCS2/3 -> USB controller, LAN
  412. * configuration for nCS3: LAN
  413. * [31] 0 - Slower Device
  414. * [30:28] 001 - RRR3: CS deselect to CS time: 1*(2*MemClk) = 20 ns
  415. * [27:24] 0010 - RDN3: Address to data valid in bursts: (2+1)*MemClk = 30 ns
  416. * [23:20] 0010 - RDF3: Address for first access: (2+1)*MemClk = 30 ns
  417. * [19] 0 - 32 Bit bus width
  418. * [18:16] 100 - variable latency I/O
  419. * configuration for nCS2: USB
  420. * [15] 1 - Faster Device
  421. * [14:12] 010 - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns
  422. * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns
  423. * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns
  424. * [03] 1 - 16 Bit bus width
  425. * [02:00] 100 - variable latency I/O
  426. */
  427. #define CONFIG_SYS_MSC1_VAL 0x1224A26C
  428. /* This is the configuration for nCS4/5 -> LAN
  429. * configuration for nCS5:
  430. * [31] 0 -
  431. * [30:28] 000 -
  432. * [27:24] 0000 -
  433. * [23:20] 0000 -
  434. * [19] 0 -
  435. * [18:16] 000 -
  436. * configuration for nCS4: LAN
  437. * [15] 1 - Faster Device
  438. * [14:12] 010 - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns
  439. * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns
  440. * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns
  441. * [03] 0 - 32 Bit bus width
  442. * [02:00] 100 - variable latency I/O
  443. */
  444. #define CONFIG_SYS_MSC2_VAL 0x00001224
  445. /* MDCNFG: SDRAM Configuration Register
  446. *
  447. * [31:29] 000 - reserved
  448. * [28] 0 - no SA1111 compatiblity mode
  449. * [27] 0 - latch return data with return clock
  450. * [26] 0 - alternate addressing for pair 2/3
  451. * [25:24] 00 - timings
  452. * [23] 0 - internal banks in lower partition 2/3 (not used)
  453. * [22:21] 00 - row address bits for partition 2/3 (not used)
  454. * [20:19] 00 - column address bits for partition 2/3 (not used)
  455. * [18] 0 - SDRAM partition 2/3 width is 32 bit
  456. * [17] 0 - SDRAM partition 3 disabled
  457. * [16] 0 - SDRAM partition 2 disabled
  458. * [15:13] 000 - reserved
  459. * [12] 0 - no SA1111 compatiblity mode
  460. * [11] 1 - latch return data with return clock
  461. * [10] 0 - no alternate addressing for pair 0/1
  462. * [09:08] 10 - tRP=2*MemClk CL=2 tRCD=2*MemClk tRAS=5*MemClk tRC=8*MemClk
  463. * [7] 1 - 4 internal banks in lower partition pair
  464. * [06:05] 10 - 13 row address bits for partition 0/1
  465. * [04:03] 01 - 9 column address bits for partition 0/1
  466. * [02] 0 - SDRAM partition 0/1 width is 32 bit
  467. * [01] 0 - disable SDRAM partition 1
  468. * [00] 1 - enable SDRAM partition 0
  469. */
  470. /* use the configuration above but disable partition 0 */
  471. #define CONFIG_SYS_MDCNFG_VAL 0x00000AC9
  472. /* MDREFR: SDRAM Refresh Control Register
  473. *
  474. * [32:26] 0 - reserved
  475. * [25] 0 - K2FREE: not free running
  476. * [24] 0 - K1FREE: not free running
  477. * [23] 0 - K0FREE: not free running
  478. * [22] 0 - SLFRSH: self refresh disabled
  479. * [21] 0 - reserved
  480. * [20] 1 - APD: auto power down
  481. * [19] 0 - K2DB2: SDCLK2 is MemClk
  482. * [18] 0 - K2RUN: disable SDCLK2
  483. * [17] 0 - K1DB2: SDCLK1 is MemClk
  484. * [16] 1 - K1RUN: enable SDCLK1
  485. * [15] 1 - E1PIN: SDRAM clock enable
  486. * [14] 0 - K0DB2: SDCLK0 is MemClk
  487. * [13] 0 - K0RUN: disable SDCLK0
  488. * [12] 0 - E0PIN: disable SDCKE0
  489. * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24
  490. */
  491. #define CONFIG_SYS_MDREFR_VAL 0x00138018 /* mh: was 0x00118018 */
  492. /* MDMRS: Mode Register Set Configuration Register
  493. *
  494. * [31] 0 - reserved
  495. * [30:23] 00000000- MDMRS2: SDRAM2/3 MRS Value. (not used)
  496. * [22:20] 011 - MDCL2: SDRAM2/3 Cas Latency. (not used)
  497. * [19] 0 - MDADD2: SDRAM2/3 burst Type. Fixed to sequential. (not used)
  498. * [18:16] 010 - MDBL2: SDRAM2/3 burst Length. Fixed to 4. (not used)
  499. * [15] 0 - reserved
  500. * [14:07] 00000000- MDMRS0: SDRAM0/1 MRS Value.
  501. * [06:04] 011 - MDCL0: SDRAM0/1 Cas Latency.
  502. * [03] 0 - MDADD0: SDRAM0/1 burst Type. Fixed to sequential.
  503. * [02:00] 010 - MDBL0: SDRAM0/1 burst Length. Fixed to 4.
  504. */
  505. #define CONFIG_SYS_MDMRS_VAL 0x00320032
  506. /*
  507. * PCMCIA and CF Interfaces
  508. */
  509. #define CONFIG_SYS_MECR_VAL 0x00000000
  510. #define CONFIG_SYS_MCMEM0_VAL 0x00010504
  511. #define CONFIG_SYS_MCMEM1_VAL 0x00010504
  512. #define CONFIG_SYS_MCATT0_VAL 0x00010504
  513. #define CONFIG_SYS_MCATT1_VAL 0x00010504
  514. #define CONFIG_SYS_MCIO0_VAL 0x00004715
  515. #define CONFIG_SYS_MCIO1_VAL 0x00004715
  516. #endif /* __CONFIG_H */