blob: d3c89908572422aef643c2309e0bd519901d9862 [file] [log] [blame]
Heiko Schocherf5e0d032006-06-19 11:02:41 +02001/*
2 * ppmc7xx.h
3 * ---------
Wolfgang Denkb87dfd22006-07-19 13:50:38 +02004 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +02005 * Wind River PPMC 7xx/74xx board configuration file.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +02006 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +02007 * By Richard Danter (richard.danter@windriver.com)
8 * Copyright (C) 2005 Wind River Systems
9 */
10
11
12#ifndef __CONFIG_H
13#define __CONFIG_H
14
15#define CONFIG_PPMC7XX
16
17
18/*===================================================================
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020019 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +020020 * User configurable settings - Modify to your preference
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020021 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +020022 *===================================================================
23 */
24
25/*
26 * Debug
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020027 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +020028 * DEBUG - Define this is you want extra debug info
29 * GTREGREAD - Required to build with debug
30 * do_bdinfo - Required to build with debug
Heiko Schocherf5e0d032006-06-19 11:02:41 +020031 */
32
Wolfgang Denkcdd917a2007-08-02 00:48:45 +020033#ifdef DEBUG
34#define GTREGREAD(x) 0xFFFFFFFF
Heiko Schocherf5e0d032006-06-19 11:02:41 +020035#define do_bdinfo(a,b,c,d)
Wolfgang Denkcdd917a2007-08-02 00:48:45 +020036#endif
Heiko Schocherf5e0d032006-06-19 11:02:41 +020037
38/*
39 * CPU type
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020040 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +020041 * CONFIG_7xx - We have a 750 or 755 CPU
42 * CONFIG_74xx - We have a 7400 CPU
43 * CONFIG_ALTIVEC - We have altivec enabled CPU (only 7400)
44 * CONFIG_BUS_CLK - System bus clock in Hz
Heiko Schocherf5e0d032006-06-19 11:02:41 +020045 */
46
47#define CONFIG_7xx
48#undef CONFIG_74xx
49#undef CONFIG_ALTIVEC
Wolfgang Denkcdd917a2007-08-02 00:48:45 +020050#define CONFIG_BUS_CLK 66000000
Heiko Schocherf5e0d032006-06-19 11:02:41 +020051
Wolfgang Denk2ae18242010-10-06 09:05:45 +020052#define CONFIG_SYS_TEXT_BASE 0xFFF00000
Heiko Schocherf5e0d032006-06-19 11:02:41 +020053
54/*
55 * Monitor configuration
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020056 *
Jon Loeliger26a34562007-07-04 22:33:17 -050057 * List of command sets to include in shell
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020058 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +020059 * The following command sets have been tested and known to work:
Wolfgang Denkb87dfd22006-07-19 13:50:38 +020060 *
Jon Loeliger26a34562007-07-04 22:33:17 -050061 * CMD_CACHE - Cache control commands
62 * CMD_MEMORY - Memory display, change and test commands
63 * CMD_FLASH - Erase and program flash
64 * CMD_ENV - Environment commands
65 * CMD_RUN - Run commands stored in env vars
66 * CMD_ELF - Load ELF files
67 * CMD_NET - Networking/file download commands
68 * CMD_PIN - ICMP Echo Request command
69 * CMD_PCI - PCI Bus scanning command
Heiko Schocherf5e0d032006-06-19 11:02:41 +020070 */
71
Jon Loeliger26a34562007-07-04 22:33:17 -050072/*
Jon Loeliger079a1362007-07-10 10:12:10 -050073 * BOOTP options
74 */
75#define CONFIG_BOOTP_BOOTFILESIZE
76#define CONFIG_BOOTP_BOOTPATH
77#define CONFIG_BOOTP_GATEWAY
78#define CONFIG_BOOTP_HOSTNAME
79
80
81/*
Jon Loeliger26a34562007-07-04 22:33:17 -050082 * Command line configuration.
83 */
84#include <config_cmd_default.h>
85
86#define CONFIG_CMD_FLASH
Mike Frysingerbdab39d2009-01-28 19:08:14 -050087#define CONFIG_CMD_SAVEENV
Jon Loeliger26a34562007-07-04 22:33:17 -050088#define CONFIG_CMD_RUN
89#define CONFIG_CMD_ELF
90#define CONFIG_CMD_NET
91#define CONFIG_CMD_PING
92#define CONFIG_CMD_PCI
93
94#undef CONFIG_CMD_KGDB
Heiko Schocherf5e0d032006-06-19 11:02:41 +020095
96
97/*
98 * Serial configuration
99 *
100 * CONFIG_CONS_INDEX - Serial console port number (COM1)
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200101 * CONFIG_BAUDRATE - Serial speed
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200102 */
103
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200104#define CONFIG_CONS_INDEX 1
105#define CONFIG_BAUDRATE 9600
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200106
107
108/*
109 * PCI config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200110 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200111 * CONFIG_PCI - Enable PCI bus
112 * CONFIG_PCI_PNP - Enable Plug & Play support
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200113 * CONFIG_PCI_SCAN_SHOW - Enable display of devices at startup
114 */
115
116#define CONFIG_PCI
117#define CONFIG_PCI_PNP
118#undef CONFIG_PCI_SCAN_SHOW
119
120
121/*
122 * Network config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200123 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200124 * CONFIG_EEPRO100 - Intel 8255x Ethernet Controller
125 * CONFIG_EEPRO100_SROM_WRITE - Enable writing to network card ROM
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200126 */
127
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200128#define CONFIG_EEPRO100
129#define CONFIG_EEPRO100_SROM_WRITE
130
131
132/*
133 * Enable extra init functions
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200134 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200135 * CONFIG_MISC_INIT_F - Call pre-relocation init functions
136 * CONFIG_MISC_INIT_R - Call post relocation init functions
137 */
138
139#undef CONFIG_MISC_INIT_F
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200140#define CONFIG_MISC_INIT_R
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200141
142
143/*
144 * Boot config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200145 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200146 * CONFIG_BOOTCOMMAND - Command(s) to execute to auto-boot
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200147 * CONFIG_BOOTDELAY - How long to wait before auto-boot (in sec)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200148 */
149
150#define CONFIG_BOOTCOMMAND \
151 "bootp;" \
152 "setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) " \
153 "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \
154 "bootm"
155#define CONFIG_BOOTDELAY 5
156
157
158/*===================================================================
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200159 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200160 * Board configuration settings - You should not need to modify these
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200161 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200162 *===================================================================
163 */
164
165
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200166/*
167 * Memory map
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200168 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200169 * This board runs in a standard CHRP (Map-B) configuration.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200170 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200171 * Type Start End Size Width Chip Sel
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200172 * ----------- ----------- ----------- ------- ------- --------
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200173 * SDRAM 0x00000000 0x04000000 64MB 64b SDRAMCS0
174 * User LED's 0x78000000 RCS3
175 * UART 0x7C000000 RCS2
176 * Mailbox 0xFF000000 RCS1
177 * Flash 0xFFC00000 0xFFFFFFFF 4MB 64b RCS0
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200178 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200179 * Flash sectors are laid out as follows.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200180 *
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200181 * Sector Start End Size Comments
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200182 * ------- ----------- ----------- ------- -----------
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200183 * 0 0xFFC00000 0xFFC3FFFF 256KB
184 * 1 0xFFC40000 0xFFC7FFFF 256KB
185 * 2 0xFFC80000 0xFFCBFFFF 256KB
186 * 3 0xFFCC0000 0xFFCFFFFF 256KB
187 * 4 0xFFD00000 0xFFD3FFFF 256KB
188 * 5 0xFFD40000 0xFFD7FFFF 256KB
189 * 6 0xFFD80000 0xFFDBFFFF 256KB
190 * 7 0xFFDC0000 0xFFDFFFFF 256KB
191 * 8 0xFFE00000 0xFFE3FFFF 256KB
192 * 9 0xFFE40000 0xFFE7FFFF 256KB
193 * 10 0xFFE80000 0xFFEBFFFF 256KB
194 * 11 0xFFEC0000 0xFFEFFFFF 256KB
195 * 12 0xFFF00000 0xFFF3FFFF 256KB U-Boot code here
196 * 13 0xFFF40000 0xFFF7FFFF 256KB
197 * 14 0xFFF80000 0xFFFBFFFF 256KB
198 * 15 0xFFFC0000 0xFFFDFFFF 128KB
199 * 16 0xFFFE0000 0xFFFE7FFF 32KB U-Boot env vars here
200 * 17 0xFFFE8000 0xFFFEFFFF 32KB U-Boot backup copy of env vars here
201 * 18 0xFFFF0000 0xFFFFFFFF 64KB
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200202 */
203
204
205/*
206 * SDRAM config - see memory map details above.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200207 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200208 * CONFIG_SYS_SDRAM_BASE - Start address of SDRAM, this _must_ be zero!
209 * CONFIG_SYS_SDRAM_SIZE - Total size of contiguous SDRAM bank(s)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200210 */
211
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200212#define CONFIG_SYS_SDRAM_BASE 0x00000000
213#define CONFIG_SYS_SDRAM_SIZE 0x04000000
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200214
215
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200216/*
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200217 * Flash config - see memory map details above.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200218 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200219 * CONFIG_SYS_FLASH_BASE - Start address of flash memory
220 * CONFIG_SYS_FLASH_SIZE - Total size of contiguous flash mem
221 * CONFIG_SYS_FLASH_ERASE_TOUT - Erase timeout in ms
222 * CONFIG_SYS_FLASH_WRITE_TOUT - Write timeout in ms
223 * CONFIG_SYS_MAX_FLASH_BANKS - Number of banks of flash on board
224 * CONFIG_SYS_MAX_FLASH_SECT - Number of sectors in a bank
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200225 */
226
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200227#define CONFIG_SYS_FLASH_BASE 0xFFC00000
228#define CONFIG_SYS_FLASH_SIZE 0x00400000
229#define CONFIG_SYS_FLASH_ERASE_TOUT 250000
230#define CONFIG_SYS_FLASH_WRITE_TOUT 5000
231#define CONFIG_SYS_MAX_FLASH_BANKS 1
232#define CONFIG_SYS_MAX_FLASH_SECT 19
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200233
234
235/*
236 * Monitor config - see memory map details above
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200237 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200238 * CONFIG_SYS_MONITOR_BASE - Base address of monitor code
239 * CONFIG_SYS_MALLOC_LEN - Size of malloc pool (128KB)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200240 */
241
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200242#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200243#define CONFIG_SYS_MALLOC_LEN 0x20000
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200244
245
246/*
247 * Command shell settings
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200248 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200249 * CONFIG_SYS_BARGSIZE - Boot Argument buffer size
250 * CONFIG_SYS_BOOTMAPSZ - Size of app's mapped RAM at boot (Linux=8MB)
251 * CONFIG_SYS_CBSIZE - Console Buffer (input) size
252 * CONFIG_SYS_LOAD_ADDR - Default load address
253 * CONFIG_SYS_LONGHELP - Provide more detailed help
254 * CONFIG_SYS_MAXARGS - Number of args accepted by monitor commands
255 * CONFIG_SYS_MEMTEST_START - Start address of test to run on RAM
256 * CONFIG_SYS_MEMTEST_END - End address of RAM test
257 * CONFIG_SYS_PBSIZE - Print Buffer (output) size
258 * CONFIG_SYS_PROMPT - Prompt string
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200259 */
260
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200261#define CONFIG_SYS_BARGSIZE 1024
262#define CONFIG_SYS_BOOTMAPSZ 0x800000
263#define CONFIG_SYS_CBSIZE 1024
264#define CONFIG_SYS_LOAD_ADDR 0x100000
265#define CONFIG_SYS_LONGHELP
266#define CONFIG_SYS_MAXARGS 16
267#define CONFIG_SYS_MEMTEST_START 0x00040000
268#define CONFIG_SYS_MEMTEST_END 0x00040100
269#define CONFIG_SYS_PBSIZE 1024
270#define CONFIG_SYS_PROMPT "=> "
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200271
272
273/*
274 * Environment config - see memory map details above
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200275 *
Jean-Christophe PLAGNIOL-VILLARD5a1aceb2008-09-10 22:48:04 +0200276 * CONFIG_ENV_IS_IN_FLASH - The env variables are stored in flash
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +0200277 * CONFIG_ENV_ADDR - Address of the sector containing env vars
278 * CONFIG_ENV_SIZE - Ammount of RAM for env vars (used to save RAM, 4KB)
279 * CONFIG_ENV_SECT_SIZE - Size of sector containing env vars (32KB)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200280 */
281
Jean-Christophe PLAGNIOL-VILLARD5a1aceb2008-09-10 22:48:04 +0200282#define CONFIG_ENV_IS_IN_FLASH 1
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +0200283#define CONFIG_ENV_ADDR 0xFFFE0000
284#define CONFIG_ENV_SIZE 0x1000
285#define CONFIG_ENV_ADDR_REDUND 0xFFFE8000
286#define CONFIG_ENV_SIZE_REDUND 0x1000
287#define CONFIG_ENV_SECT_SIZE 0x8000
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200288
289
290/*
291 * Initial RAM config
292 *
293 * Since the main system RAM is initialised very early, we place the INIT_RAM
294 * in the main system RAM just above the exception vectors. The contents are
295 * copied to top of RAM by the init code.
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200296 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200297 * CONFIG_SYS_INIT_RAM_ADDR - Address of Init RAM, above exception vect
Wolfgang Denk553f0982010-10-26 13:32:32 +0200298 * CONFIG_SYS_INIT_RAM_SIZE - Size of Init RAM
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +0200299 * GENERATED_GBL_DATA_SIZE - Ammount of RAM to reserve for global data
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200300 * CONFIG_SYS_GBL_DATA_OFFSET - Start of global data, top of stack
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200301 */
302
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200303#define CONFIG_SYS_INIT_RAM_ADDR (CONFIG_SYS_SDRAM_BASE + 0x4000)
Wolfgang Denk553f0982010-10-26 13:32:32 +0200304#define CONFIG_SYS_INIT_RAM_SIZE 0x4000
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +0200305#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200306
307
308/*
309 * Initial BAT config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200310 *
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200311 * BAT0 - System SDRAM
312 * BAT1 - LED's and Serial Port
313 * BAT2 - PCI Memory
314 * BAT3 - PCI I/O including Flash Memory
315 */
316
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200317#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
318#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
319#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L
320#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200321
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200322#define CONFIG_SYS_IBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
323#define CONFIG_SYS_IBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
324#define CONFIG_SYS_DBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
325#define CONFIG_SYS_DBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200326
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200327#define CONFIG_SYS_IBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
328#define CONFIG_SYS_IBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
329#define CONFIG_SYS_DBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
330#define CONFIG_SYS_DBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200331
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200332#define CONFIG_SYS_IBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
333#define CONFIG_SYS_IBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
334#define CONFIG_SYS_DBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
335#define CONFIG_SYS_DBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200336
337
338/*
339 * Cache config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200340 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200341 * CONFIG_SYS_CACHELINE_SIZE - Size of a cache line (CPU specific)
342 * CONFIG_SYS_L2 - L2 cache enabled if defined
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200343 * L2_INIT - L2 cache init flags
344 * L2_ENABLE - L2 cache enable flags
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200345 */
346
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200347#define CONFIG_SYS_CACHELINE_SIZE 32
348#undef CONFIG_SYS_L2
Wolfgang Denkcdd917a2007-08-02 00:48:45 +0200349#define L2_INIT 0
350#define L2_ENABLE 0
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200351
352
353/*
354 * Clocks config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200355 *
Wolfgang Denkee80fa72010-06-13 18:38:23 +0200356 * CONFIG_SYS_BUS_CLK - Bus clock frequency in Hz
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200357 * CONFIG_SYS_HZ - Decrementer freq in Hz
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200358 */
359
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200360#define CONFIG_SYS_BUS_CLK CONFIG_BUS_CLK
361#define CONFIG_SYS_HZ 1000
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200362
363
364/*
365 * Serial port config
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200366 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200367 * CONFIG_SYS_BAUDRATE_TABLE - List of valid baud rates
368 * CONFIG_SYS_NS16550 - Include the NS16550 driver
369 * CONFIG_SYS_NS16550_SERIAL - Include the serial (wrapper) driver
370 * CONFIG_SYS_NS16550_CLK - Frequency of reference clock
371 * CONFIG_SYS_NS16550_REG_SIZE - 64-bit accesses to 8-bit port
372 * CONFIG_SYS_NS16550_COM1 - Base address of 1st serial port
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200373 */
374
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200375#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
376#define CONFIG_SYS_NS16550
377#define CONFIG_SYS_NS16550_SERIAL
378#define CONFIG_SYS_NS16550_CLK 3686400
379#define CONFIG_SYS_NS16550_REG_SIZE -8
380#define CONFIG_SYS_NS16550_COM1 0x7C000000
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200381
382
383/*
384 * PCI Config - Address Map B (CHRP)
385 */
386
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200387#define CONFIG_SYS_PCI_MEMORY_BUS 0x00000000
388#define CONFIG_SYS_PCI_MEMORY_PHYS 0x00000000
389#define CONFIG_SYS_PCI_MEMORY_SIZE 0x40000000
390#define CONFIG_SYS_PCI_MEM_BUS 0x80000000
391#define CONFIG_SYS_PCI_MEM_PHYS 0x80000000
392#define CONFIG_SYS_PCI_MEM_SIZE 0x7D000000
393#define CONFIG_SYS_ISA_MEM_BUS 0x00000000
394#define CONFIG_SYS_ISA_MEM_PHYS 0xFD000000
395#define CONFIG_SYS_ISA_MEM_SIZE 0x01000000
396#define CONFIG_SYS_PCI_IO_BUS 0x00800000
397#define CONFIG_SYS_PCI_IO_PHYS 0xFE800000
398#define CONFIG_SYS_PCI_IO_SIZE 0x00400000
399#define CONFIG_SYS_ISA_IO_BUS 0x00000000
400#define CONFIG_SYS_ISA_IO_PHYS 0xFE000000
401#define CONFIG_SYS_ISA_IO_SIZE 0x00800000
402#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_ISA_IO_PHYS
403#define CONFIG_SYS_ISA_IO CONFIG_SYS_ISA_IO_PHYS
404#define CONFIG_SYS_60X_PCI_IO_OFFSET CONFIG_SYS_ISA_IO_PHYS
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200405
406
407/*
408 * Extra init functions
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200409 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200410 * CONFIG_SYS_BOARD_ASM_INIT - Call assembly init code
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200411 */
412
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200413#define CONFIG_SYS_BOARD_ASM_INIT
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200414
Heiko Schocherf5e0d032006-06-19 11:02:41 +0200415#endif /* __CONFIG_H */