xaeniax.h 17 KB

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