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