xaeniax.h 17 KB

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