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