]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/edb93xx.h
Merge branch 'master' of git://git.denx.de/u-boot
[people/ms/u-boot.git] / include / configs / edb93xx.h
CommitLineData
7237d22b
SK
1/*
2 * U-boot - Configuration file for Cirrus Logic EDB93xx boards
3 */
4
5#ifndef __CONFIG_H
6#define __CONFIG_H
7
8#ifdef CONFIG_MK_edb9301
9#define CONFIG_EDB9301
10#elif defined(CONFIG_MK_edb9302)
11#define CONFIG_EDB9302
12#elif defined(CONFIG_MK_edb9302a)
13#define CONFIG_EDB9302A
14#elif defined(CONFIG_MK_edb9307)
15#define CONFIG_EDB9307
16#elif defined(CONFIG_MK_edb9307a)
17#define CONFIG_EDB9307A
18#elif defined(CONFIG_MK_edb9312)
19#define CONFIG_EDB9312
20#elif defined(CONFIG_MK_edb9315)
21#define CONFIG_EDB9315
22#elif defined(CONFIG_MK_edb9315a)
23#define CONFIG_EDB9315A
24#else
25#error "no board defined"
26#endif
27
28/* Initial environment and monitor configuration options. */
29#define CONFIG_BOOTDELAY 2
30#define CONFIG_CMDLINE_TAG 1
31#define CONFIG_INITRD_TAG 1
32#define CONFIG_SETUP_MEMORY_TAGS 1
33#define CONFIG_BOOTARGS "root=/dev/nfs console=ttyAM0,115200 ip=dhcp"
34#define CONFIG_BOOTFILE "edb93xx.img"
35
36#define CONFIG_SYS_HUSH_PARSER 1
37#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
38
39
40#define CONFIG_SYS_LDSCRIPT "board/cirrus/edb93xx/u-boot.lds"
41
42
43#ifdef CONFIG_EDB9301
44#define CONFIG_EP9301
45#define CONFIG_MACH_TYPE MACH_TYPE_EDB9301
46#define CONFIG_SYS_PROMPT "EDB9301> "
47#define CONFIG_ENV_SECT_SIZE 0x00020000
48#elif defined(CONFIG_EDB9302)
49#define CONFIG_EP9302
50#define CONFIG_MACH_TYPE MACH_TYPE_EDB9302
51#define CONFIG_SYS_PROMPT "EDB9302> "
52#define CONFIG_ENV_SECT_SIZE 0x00020000
53#elif defined(CONFIG_EDB9302A)
54#define CONFIG_EP9302
55#define CONFIG_MACH_TYPE MACH_TYPE_EDB9302A
56#define CONFIG_SYS_PROMPT "EDB9302A> "
57#define CONFIG_ENV_SECT_SIZE 0x00020000
58#elif defined(CONFIG_EDB9307)
59#define CONFIG_EP9307
60#define CONFIG_MACH_TYPE MACH_TYPE_EDB9307
61#define CONFIG_SYS_PROMPT "EDB9307> "
62#define CONFIG_ENV_SECT_SIZE 0x00040000
63#elif defined(CONFIG_EDB9307A)
64#define CONFIG_EP9307
65#define CONFIG_MACH_TYPE MACH_TYPE_EDB9307A
66#define CONFIG_SYS_PROMPT "EDB9307A> "
67#define CONFIG_ENV_SECT_SIZE 0x00020000
68#elif defined(CONFIG_EDB9312)
69#define CONFIG_EP9312
70#define CONFIG_MACH_TYPE MACH_TYPE_EDB9312
71#define CONFIG_SYS_PROMPT "EDB9312> "
72#define CONFIG_ENV_SECT_SIZE 0x00040000
73#elif defined(CONFIG_EDB9315)
74#define CONFIG_EP9315
75#define CONFIG_MACH_TYPE MACH_TYPE_EDB9315
76#define CONFIG_SYS_PROMPT "EDB9315> "
77#define CONFIG_ENV_SECT_SIZE 0x00040000
78#elif defined(CONFIG_EDB9315A)
79#define CONFIG_EP9315
80#define CONFIG_MACH_TYPE MACH_TYPE_EDB9315A
81#define CONFIG_SYS_PROMPT "EDB9315A> "
82#define CONFIG_ENV_SECT_SIZE 0x00020000
83#else
84#error "no board defined"
85#endif
86
87/* High-level configuration options */
88#define CONFIG_ARM920T 1 /* This is an ARM920T core... */
89#define CONFIG_EP93XX 1 /* in a Cirrus Logic 93xx SoC */
90
91#define CONFIG_SYS_CLK_FREQ 14745600 /* EP93xx has a 14.7456 clock */
92#define CONFIG_SYS_HZ 1000 /* decr freq: 1 ms ticks */
93#undef CONFIG_USE_IRQ /* Don't need IRQ/FIQ */
94
95/* Monitor configuration */
96#include <config_cmd_default.h>
97#undef CONFIG_CMD_FPGA
98#undef CONFIG_CMD_SETGETDCR
99#undef CONFIG_CMD_XIMG
100
101#undef CONFIG_CMD_DATE
102#define CONFIG_CMD_DHCP
103#define CONFIG_CMD_JFFS2
104
105#define CONFIG_SYS_LONGHELP /* Enable "long" help in mon */
106#define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */
107/* Print buffer size */
108#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
109/* Boot argument buffer size */
110#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
111#define CONFIG_SYS_MAXARGS 16 /* Max number of command args */
112
113/* Serial port hardware configuration */
114#define CONFIG_PL010_SERIAL
115#define CONFIG_CONS_INDEX 0
116#define CONFIG_BAUDRATE 115200
117#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, \
118 115200, 230400}
119#define CONFIG_SYS_SERIAL0 0x808C0000
120#define CONFIG_SYS_SERIAL1 0x808D0000
121/*#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
122 (void *)CONFIG_SYS_SERIAL1} */
123
124#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
125
126/* Status LED */
127#define CONFIG_STATUS_LED 1 /* Status LED enabled */
128#define CONFIG_BOARD_SPECIFIC_LED 1
129#define STATUS_LED_GREEN 0
130#define STATUS_LED_RED 1
131/* Green */
132#define STATUS_LED_BIT STATUS_LED_GREEN
133#define STATUS_LED_STATE STATUS_LED_ON
134#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
135/* Red */
136#define STATUS_LED_BIT1 STATUS_LED_RED
137#define STATUS_LED_STATE1 STATUS_LED_OFF
138#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
139/* Optional value */
140#define STATUS_LED_BOOT STATUS_LED_BIT
141
142/* Network hardware configuration */
143#define CONFIG_DRIVER_EP93XX_MAC
144#define CONFIG_MII_SUPPRESS_PREAMBLE
145#define CONFIG_MII
146#define CONFIG_PHY_ADDR 1
147#define CONFIG_NET_MULTI
148#undef CONFIG_NETCONSOLE
149
150/* SDRAM configuration */
151#if defined(CONFIG_EDB9301) || defined(CONFIG_EDB9302) || \
152 defined(CONFIG_EDB9307) || defined CONFIG_EDB9312 || \
153 defined(CONFIG_EDB9315)
154/*
155 * EDB9301/2 has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
156 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
157 * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
158 *
159 * The EDB9307, EDB9312, and EDB9315 have 2 banks of SDRAM consisting of
160 * 2x Samsung K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of
161 * 64 MB of SDRAM.
162 */
163
164#define CONFIG_EDB93XX_SDCS3
165
166#elif defined(CONFIG_EDB9302A) || \
167 defined(CONFIG_EDB9307A) || defined(CONFIG_EDB9315A)
168/*
169 * EDB9302a has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
170 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
171 * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
172 *
173 * The EDB9307A and EDB9315A have 2 banks of SDRAM consisting of 2x Samsung
174 * K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of 64 MB of SDRAM.
175 */
176#define CONFIG_EDB93XX_SDCS0
177
178#else
179#error "no SDCS configuration for this board"
180#endif
181
182
183#if defined(CONFIG_EDB93XX_SDCS3)
184#define CONFIG_SYS_LOAD_ADDR 0x01000000 /* Default load address */
185#define PHYS_SDRAM_1 0x00000000
186#elif defined(CONFIG_EDB93XX_SDCS0)
187#define CONFIG_SYS_LOAD_ADDR 0xc1000000 /* Default load address */
188#define PHYS_SDRAM_1 0xc0000000
189#endif
190
191#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
192#define CONFIG_NR_DRAM_BANKS 8
193
194#define CONFIG_SYS_INIT_SP_ADDR \
195 (CONFIG_SYS_SDRAM_BASE + 32*1024 - GENERATED_GBL_DATA_SIZE)
196
197
198/* Must match kernel config */
199#define LINUX_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100)
200
201/* Run-time memory allocatons */
202#define CONFIG_SYS_GBL_DATA_SIZE 128
203#define CONFIG_STACKSIZE (128 * 1024)
204
205#if defined(CONFIG_USE_IRQ)
206#define CONFIG_STACKSIZE_IRQ (4 * 1024)
207#define CONFIG_STACKSIZE_FIQ (4 * 1024)
208#endif
209
210#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
211
212/* -----------------------------------------------------------------------------
213 * FLASH and environment organization
214 *
215 * The EDB9301, EDB9302(a), EDB9307a, EDB9315a have 1 bank of flash memory at
216 * 0x60000000 consisting of 1x Intel TE28F128J3C-150 128 Mbit flash on a 16-bit
217 * data bus, for a total of 16 MB of CFI-compatible flash.
218 *
219 * The EDB9307, EDB9312, and EDB9315 have 1 bank of flash memory at
220 * 0x60000000 consisting of 2x Micron MT28F128J3-12 128 Mbit flash on a 32-bit
221 * data bus, for a total of 32 MB of CFI-compatible flash.
222 *
223 *
224 * EDB9301/02(a)7a/15a EDB9307/12/15
225 * 0x60000000 - 0x0003FFFF u-boot u-boot
226 * 0x60040000 - 0x0005FFFF environment #1 environment #1
227 * 0x60060000 - 0x0007FFFF environment #2 environment #1 (continued)
228 * 0x60080000 - 0x0009FFFF unused environment #2
229 * 0x600A0000 - 0x000BFFFF unused environment #2 (continued)
230 * 0x600C0000 - 0x00FFFFFF unused unused
231 * 0x61000000 - 0x01FFFFFF not present unused
232 */
233#define CONFIG_SYS_FLASH_CFI
234#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
235
236
237#define CONFIG_SYS_FLASH_PROTECTION
238#define CONFIG_FLASH_CFI_DRIVER
239#define CONFIG_SYS_MAX_FLASH_BANKS 1
240#define CONFIG_SYS_MAX_FLASH_SECT (256+8)
241
242#define CONFIG_SYS_TEXT_BASE 0x60000000
243#define PHYS_FLASH_1 CONFIG_SYS_TEXT_BASE
244#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_TEXT_BASE
245
246#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
247#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
248
249#define CONFIG_ENV_OVERWRITE /* Vendor params unprotected */
250#define CONFIG_ENV_IS_IN_FLASH
251
252#define CONFIG_ENV_ADDR 0x60040000
253#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
254
255#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
256#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
257
258/* Define to enable MMC on SPI support */
259/* #define CONFIG_EP93XX_SPI_MMC */
260
261#ifdef CONFIG_EP93XX_SPI_MMC
262#define CONFIG_EP93XX_SPI
263#define CONFIG_MMC
264#define CONFIG_GENERIC_MMC
265#define CONFIG_MMC_SPI
266#define CONFIG_CMD_MMC
267#define CONFIG_MMC_SPI_NPOWER_EGPIO 9
268#endif
269
270#define CONFIG_USB_STORAGE
271#define CONFIG_USB_OHCI_NEW
272#define CONFIG_USB_OHCI_EP93XX
273#define CONFIG_SYS_USB_OHCI_CPU_INIT
274#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
275#define CONFIG_SYS_USB_OHCI_SLOT_NAME "ep93xx-ohci"
276#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x80020000
277
278#define CONFIG_CMD_EXT2
279#define CONFIG_CMD_EXT4
280#define CONFIG_CMD_FAT
281#define CONFIG_CMD_USB
282
283#define CONFIG_BOARD_EARLY_INIT_F
284#define CONFIG_CMD_BOOTZ
285
286/* Define to disable flash configuration*/
287/* #define CONFIG_EP93XX_NO_FLASH_CFG */
288
289/* Define this for indusrial rated chips */
290/* #define CONFIG_EDB93XX_INDUSTRIAL */
291
292#endif /* !defined (__CONFIG_H) */