]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/edb93xx.h
include/configs: drop default definitions of CONFIG_SYS_PBSIZE
[people/ms/u-boot.git] / include / configs / edb93xx.h
CommitLineData
7237d22b 1/*
a187559e 2 * U-Boot - Configuration file for Cirrus Logic EDB93xx boards
7237d22b
SK
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. */
7237d22b
SK
29#define CONFIG_CMDLINE_TAG 1
30#define CONFIG_INITRD_TAG 1
31#define CONFIG_SETUP_MEMORY_TAGS 1
7237d22b
SK
32#define CONFIG_BOOTFILE "edb93xx.img"
33
7237d22b
SK
34#define CONFIG_SYS_LDSCRIPT "board/cirrus/edb93xx/u-boot.lds"
35
7237d22b
SK
36#ifdef CONFIG_EDB9301
37#define CONFIG_EP9301
38#define CONFIG_MACH_TYPE MACH_TYPE_EDB9301
7237d22b
SK
39#define CONFIG_ENV_SECT_SIZE 0x00020000
40#elif defined(CONFIG_EDB9302)
41#define CONFIG_EP9302
42#define CONFIG_MACH_TYPE MACH_TYPE_EDB9302
7237d22b
SK
43#define CONFIG_ENV_SECT_SIZE 0x00020000
44#elif defined(CONFIG_EDB9302A)
45#define CONFIG_EP9302
46#define CONFIG_MACH_TYPE MACH_TYPE_EDB9302A
7237d22b
SK
47#define CONFIG_ENV_SECT_SIZE 0x00020000
48#elif defined(CONFIG_EDB9307)
49#define CONFIG_EP9307
50#define CONFIG_MACH_TYPE MACH_TYPE_EDB9307
7237d22b
SK
51#define CONFIG_ENV_SECT_SIZE 0x00040000
52#elif defined(CONFIG_EDB9307A)
53#define CONFIG_EP9307
54#define CONFIG_MACH_TYPE MACH_TYPE_EDB9307A
7237d22b
SK
55#define CONFIG_ENV_SECT_SIZE 0x00020000
56#elif defined(CONFIG_EDB9312)
57#define CONFIG_EP9312
58#define CONFIG_MACH_TYPE MACH_TYPE_EDB9312
7237d22b
SK
59#define CONFIG_ENV_SECT_SIZE 0x00040000
60#elif defined(CONFIG_EDB9315)
61#define CONFIG_EP9315
62#define CONFIG_MACH_TYPE MACH_TYPE_EDB9315
7237d22b
SK
63#define CONFIG_ENV_SECT_SIZE 0x00040000
64#elif defined(CONFIG_EDB9315A)
65#define CONFIG_EP9315
66#define CONFIG_MACH_TYPE MACH_TYPE_EDB9315A
7237d22b
SK
67#define CONFIG_ENV_SECT_SIZE 0x00020000
68#else
69#error "no board defined"
70#endif
71
72/* High-level configuration options */
f2168440 73#define CONFIG_EP93XX 1 /* This is a Cirrus Logic 93xx SoC */
7237d22b
SK
74
75#define CONFIG_SYS_CLK_FREQ 14745600 /* EP93xx has a 14.7456 clock */
7237d22b
SK
76
77/* Monitor configuration */
7237d22b
SK
78
79#define CONFIG_SYS_LONGHELP /* Enable "long" help in mon */
80#define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */
7237d22b
SK
81/* Boot argument buffer size */
82#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
83#define CONFIG_SYS_MAXARGS 16 /* Max number of command args */
84
85/* Serial port hardware configuration */
86#define CONFIG_PL010_SERIAL
87#define CONFIG_CONS_INDEX 0
7237d22b
SK
88#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, \
89 115200, 230400}
90#define CONFIG_SYS_SERIAL0 0x808C0000
91#define CONFIG_SYS_SERIAL1 0x808D0000
92/*#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
93 (void *)CONFIG_SYS_SERIAL1} */
94
95#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
96
97/* Status LED */
7237d22b 98/* Optional value */
7237d22b
SK
99
100/* Network hardware configuration */
101#define CONFIG_DRIVER_EP93XX_MAC
102#define CONFIG_MII_SUPPRESS_PREAMBLE
103#define CONFIG_MII
104#define CONFIG_PHY_ADDR 1
7237d22b
SK
105#undef CONFIG_NETCONSOLE
106
107/* SDRAM configuration */
108#if defined(CONFIG_EDB9301) || defined(CONFIG_EDB9302) || \
109 defined(CONFIG_EDB9307) || defined CONFIG_EDB9312 || \
110 defined(CONFIG_EDB9315)
111/*
112 * EDB9301/2 has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
113 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
114 * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
115 *
116 * The EDB9307, EDB9312, and EDB9315 have 2 banks of SDRAM consisting of
117 * 2x Samsung K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of
118 * 64 MB of SDRAM.
119 */
120
121#define CONFIG_EDB93XX_SDCS3
122
123#elif defined(CONFIG_EDB9302A) || \
124 defined(CONFIG_EDB9307A) || defined(CONFIG_EDB9315A)
125/*
126 * EDB9302a has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
127 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
128 * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
129 *
130 * The EDB9307A and EDB9315A have 2 banks of SDRAM consisting of 2x Samsung
131 * K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of 64 MB of SDRAM.
132 */
133#define CONFIG_EDB93XX_SDCS0
134
135#else
136#error "no SDCS configuration for this board"
137#endif
138
7237d22b
SK
139#if defined(CONFIG_EDB93XX_SDCS3)
140#define CONFIG_SYS_LOAD_ADDR 0x01000000 /* Default load address */
141#define PHYS_SDRAM_1 0x00000000
142#elif defined(CONFIG_EDB93XX_SDCS0)
143#define CONFIG_SYS_LOAD_ADDR 0xc1000000 /* Default load address */
144#define PHYS_SDRAM_1 0xc0000000
145#endif
146
147#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
148#define CONFIG_NR_DRAM_BANKS 8
149
150#define CONFIG_SYS_INIT_SP_ADDR \
151 (CONFIG_SYS_SDRAM_BASE + 32*1024 - GENERATED_GBL_DATA_SIZE)
152
7237d22b
SK
153/* Must match kernel config */
154#define LINUX_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100)
155
156/* Run-time memory allocatons */
157#define CONFIG_SYS_GBL_DATA_SIZE 128
7237d22b
SK
158
159#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
160
161/* -----------------------------------------------------------------------------
162 * FLASH and environment organization
163 *
164 * The EDB9301, EDB9302(a), EDB9307a, EDB9315a have 1 bank of flash memory at
165 * 0x60000000 consisting of 1x Intel TE28F128J3C-150 128 Mbit flash on a 16-bit
166 * data bus, for a total of 16 MB of CFI-compatible flash.
167 *
168 * The EDB9307, EDB9312, and EDB9315 have 1 bank of flash memory at
169 * 0x60000000 consisting of 2x Micron MT28F128J3-12 128 Mbit flash on a 32-bit
170 * data bus, for a total of 32 MB of CFI-compatible flash.
171 *
172 *
173 * EDB9301/02(a)7a/15a EDB9307/12/15
174 * 0x60000000 - 0x0003FFFF u-boot u-boot
175 * 0x60040000 - 0x0005FFFF environment #1 environment #1
176 * 0x60060000 - 0x0007FFFF environment #2 environment #1 (continued)
177 * 0x60080000 - 0x0009FFFF unused environment #2
178 * 0x600A0000 - 0x000BFFFF unused environment #2 (continued)
179 * 0x600C0000 - 0x00FFFFFF unused unused
180 * 0x61000000 - 0x01FFFFFF not present unused
181 */
182#define CONFIG_SYS_FLASH_CFI
183#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
184
7237d22b
SK
185#define CONFIG_SYS_FLASH_PROTECTION
186#define CONFIG_FLASH_CFI_DRIVER
187#define CONFIG_SYS_MAX_FLASH_BANKS 1
188#define CONFIG_SYS_MAX_FLASH_SECT (256+8)
189
190#define CONFIG_SYS_TEXT_BASE 0x60000000
191#define PHYS_FLASH_1 CONFIG_SYS_TEXT_BASE
192#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_TEXT_BASE
193
194#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
195#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
196
197#define CONFIG_ENV_OVERWRITE /* Vendor params unprotected */
7237d22b
SK
198
199#define CONFIG_ENV_ADDR 0x60040000
200#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
201
202#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
203#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
204
7237d22b
SK
205#define CONFIG_USB_OHCI_NEW
206#define CONFIG_USB_OHCI_EP93XX
207#define CONFIG_SYS_USB_OHCI_CPU_INIT
208#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
209#define CONFIG_SYS_USB_OHCI_SLOT_NAME "ep93xx-ohci"
210#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x80020000
211
7237d22b
SK
212/* Define to disable flash configuration*/
213/* #define CONFIG_EP93XX_NO_FLASH_CFG */
214
215/* Define this for indusrial rated chips */
216/* #define CONFIG_EDB93XX_INDUSTRIAL */
217
218#endif /* !defined (__CONFIG_H) */