blob: da3b4ae22a479dd408a7db2c2b2f3ff9ac8ef766 [file] [log] [blame]
wdenke2211742002-11-02 23:30:20 +00001/*
2 * (C) Copyright 2001
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24/*
25 * board/config.h - configuration options, board specific
26 */
27
28#ifndef __CONFIG_H
29#define __CONFIG_H
30
31/*
32 * High Level Configuration Options
33 * (easy to change)
34 */
35
36#define CONFIG_405GP 1 /* This is a PPC405 CPU */
37#define CONFIG_4xx 1 /* ...member of PPC4xx family */
38#define CONFIG_ERIC 1 /* ...on a ERIC board */
39
wdenkda55c6e2004-01-20 23:12:12 +000040#define CONFIG_BOARD_EARLY_INIT_F 1 /* run board_early_init_f() */
wdenke2211742002-11-02 23:30:20 +000041
42#define CONFIG_SYS_CLK_FREQ 33333333 /* external frequency to pll */
43
44#if 1
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +020045#define CONFIG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
wdenke2211742002-11-02 23:30:20 +000046#endif
47#if 0
Jean-Christophe PLAGNIOL-VILLARDfdb79c32008-09-10 22:47:59 +020048#define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */
wdenke2211742002-11-02 23:30:20 +000049#endif
50#if 0
Jean-Christophe PLAGNIOL-VILLARDe46af642008-09-05 09:19:30 +020051#define CONFIG_ENV_IS_IN_EEPROM 1 /* use I2C RTC X1240 for environment vars */
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +020052#define CONFIG_ENV_OFFSET 0x000 /* environment starts at the beginning of the EEPROM */
53#define CONFIG_ENV_SIZE 0x800 /* 2048 bytes may be used for env vars */
wdenke2211742002-11-02 23:30:20 +000054#endif /* total size of a X1240 is 2048 bytes */
55
56#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
Stefan Roese3b01e6b2010-04-01 14:37:24 +020057#define CONFIG_PPC4XX_I2C /* use PPC4xx driver */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020058#define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */
59#define CONFIG_SYS_I2C_SLAVE 0x7F
wdenke2211742002-11-02 23:30:20 +000060
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020061#define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 /* X1240 has two I2C slave addresses, one for EEPROM */
62#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* address length for the eeprom */
wdenke2211742002-11-02 23:30:20 +000063#define CONFIG_I2C_RTC 1 /* we have a Xicor X1240 RTC */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020064#define CONFIG_SYS_I2C_RTC_ADDR 0x6F /* and one for RTC */
wdenke2211742002-11-02 23:30:20 +000065
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +020066#ifdef CONFIG_ENV_IS_IN_FLASH
Jean-Christophe PLAGNIOL-VILLARDfdb79c32008-09-10 22:47:59 +020067#undef CONFIG_ENV_IS_IN_NVRAM
Jean-Christophe PLAGNIOL-VILLARDe46af642008-09-05 09:19:30 +020068#undef CONFIG_ENV_IS_IN_EEPROM
wdenke2211742002-11-02 23:30:20 +000069#else
Jean-Christophe PLAGNIOL-VILLARDfdb79c32008-09-10 22:47:59 +020070#ifdef CONFIG_ENV_IS_IN_NVRAM
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +020071#undef CONFIG_ENV_IS_IN_FLASH
Jean-Christophe PLAGNIOL-VILLARDe46af642008-09-05 09:19:30 +020072#undef CONFIG_ENV_IS_IN_EEPROM
wdenke2211742002-11-02 23:30:20 +000073#else
Jean-Christophe PLAGNIOL-VILLARDe46af642008-09-05 09:19:30 +020074#ifdef CONFIG_ENV_IS_IN_EEPROM
Jean-Christophe PLAGNIOL-VILLARDfdb79c32008-09-10 22:47:59 +020075#undef CONFIG_ENV_IS_IN_NVRAM
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +020076#undef CONFIG_ENV_IS_IN_FLASH
wdenke2211742002-11-02 23:30:20 +000077#endif
78#endif
79#endif
80
81#define CONFIG_BAUDRATE 115200
82#define CONFIG_BOOTDELAY 3 /* autoboot after 3 seconds */
83
84#if 1
85#define CONFIG_BOOTCOMMAND "bootm ffc00000" /* autoboot command */
86#else
87#define CONFIG_BOOTCOMMAND "bootp" /* autoboot command */
88#endif
89
90#define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/nfs " \
91 "nfsroot=192.168.1.2:/eric_root_devel " \
92 "ip=192.168.1.22:192.168.1.2"
93
94#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020095#define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
wdenke2211742002-11-02 23:30:20 +000096
Ben Warren3a918a62008-10-27 23:50:15 -070097#define CONFIG_PPC4xx_EMAC
wdenke2211742002-11-02 23:30:20 +000098#define CONFIG_MII 1 /* MII PHY management */
99#define CONFIG_PHY_ADDR 1 /* PHY address */
Ben Warren6c262932009-04-28 16:50:53 -0700100#define CONFIG_NET_MULTI
wdenke2211742002-11-02 23:30:20 +0000101
wdenke2211742002-11-02 23:30:20 +0000102
103/*
Jon Loeligerf5709d12007-07-10 09:02:57 -0500104 * BOOTP options
105 */
106#define CONFIG_BOOTP_BOOTFILESIZE
107#define CONFIG_BOOTP_BOOTPATH
108#define CONFIG_BOOTP_GATEWAY
109#define CONFIG_BOOTP_HOSTNAME
110
111
112/*
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500113 * Command line configuration.
wdenke2211742002-11-02 23:30:20 +0000114 */
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500115#include <config_cmd_default.h>
wdenke2211742002-11-02 23:30:20 +0000116
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500117#define CONFIG_CMD_PCI
118#define CONFIG_CMD_IRQ
Mike Frysinger78dcaf42009-01-28 19:08:14 -0500119#define CONFIG_CMD_SAVEENV
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500120#define CONFIG_CMD_FLASH
121
wdenke2211742002-11-02 23:30:20 +0000122
123#undef CONFIG_WATCHDOG /* watchdog disabled */
124
125/*
126 * Miscellaneous configurable options
127 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200128#undef CONFIG_SYS_LONGHELP /* undef to save memory */
129#define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500130#if defined(CONFIG_CMD_KGDB)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200131#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000132#else
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200133#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000134#endif
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200135#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
136#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
137#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000138
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200139#define CONFIG_SYS_MEMTEST_START 0x0400000 /* memtest works on */
140#define CONFIG_SYS_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */
wdenke2211742002-11-02 23:30:20 +0000141
Stefan Roese3ddce572010-09-20 16:05:31 +0200142#define CONFIG_CONS_INDEX 1
143#define CONFIG_SYS_NS16550
144#define CONFIG_SYS_NS16550_SERIAL
145#define CONFIG_SYS_NS16550_REG_SIZE 1
146#define CONFIG_SYS_NS16550_CLK get_serial_clock()
147
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200148#define CONFIG_SYS_EXT_SERIAL_CLOCK 14318180
wdenke2211742002-11-02 23:30:20 +0000149
150/* The following table includes the supported baudrates */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200151#define CONFIG_SYS_BAUDRATE_TABLE \
wdenke2211742002-11-02 23:30:20 +0000152 { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, \
153 57600, 115200, 230400, 460800, 921600 }
154
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200155#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
156#define CONFIG_SYS_EXTBDINFO 1 /* To use extended board_into (bd_t) */
wdenke2211742002-11-02 23:30:20 +0000157
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200158#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
wdenke2211742002-11-02 23:30:20 +0000159
160/*-----------------------------------------------------------------------
161 * PCI stuff
162 *-----------------------------------------------------------------------
163 */
164#define PCI_HOST_ADAPTER 0 /* configure ar pci adapter */
165#define PCI_HOST_FORCE 1 /* configure as pci host */
166#define PCI_HOST_AUTO 2 /* detected via arbiter enable */
167
168#define CONFIG_PCI /* include pci support */
169#define CONFIG_PCI_HOST PCI_HOST_FORCE /* select pci host function */
170#undef CONFIG_PCI_PNP /* no pci plug-and-play */
wdenk57b2d802003-06-27 21:31:46 +0000171 /* resource configuration */
wdenke2211742002-11-02 23:30:20 +0000172
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200173#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1743 /* PCI Vendor ID: Peppercon AG */
174#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: 405GP */
175#define CONFIG_SYS_PCI_PTM1LA 0xFFFC0000 /* point to flash */
176#define CONFIG_SYS_PCI_PTM1MS 0xFFFFF001 /* 4kB, enable hard-wired to 1 */
177#define CONFIG_SYS_PCI_PTM1PCI 0x00000000 /* Host: use this pci address */
178#define CONFIG_SYS_PCI_PTM2LA 0x00000000 /* disabled */
179#define CONFIG_SYS_PCI_PTM2MS 0x00000000 /* disabled */
180#define CONFIG_SYS_PCI_PTM2PCI 0x04000000 /* Host: use this pci address */
wdenke2211742002-11-02 23:30:20 +0000181
182/*-----------------------------------------------------------------------
183 * External peripheral base address
184 *-----------------------------------------------------------------------
185 */
186/* Bank 0 - Flash/SRAM 0xFF000000 16MB 16 Bit */
187/* Bank 1 - NVRAM/RTC 0xF0000000 1MB 8 Bit */
188/* Bank 2 - A/D converter 0xF0100000 1MB 8 Bit */
189/* Bank 3 - Ethernet PHY Reset 0xF0200000 1MB 8 Bit */
190/* Bank 4 - PC-MIP PRSNT1# 0xF0300000 1MB 8 Bit */
191/* Bank 5 - PC-MIP PRSNT2# 0xF0400000 1MB 8 Bit */
192/* Bank 6 - CPU LED0 0xF0500000 1MB 8 Bit */
193/* Bank 7 - CPU LED1 0xF0600000 1MB 8 Bit */
194
195/* ----------------------------------------------------------------------- */
196/* Memory Bank 0 (Flash) initialization */
197/* ----------------------------------------------------------------------- */
198#define CS0_AP 0x9B015480
199#define CS0_CR 0xFF87A000 /* BAS=0xFF8,BS=(8MB),BU=0x3(R/W), BW=(16 bits) */
200/* ----------------------------------------------------------------------- */
201/* Memory Bank 1 (NVRAM/RTC) initialization */
202/* ----------------------------------------------------------------------- */
203#define CS1_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
204#define CS1_CR 0xF0018000 /* BAS=0xF00,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
205 /* ----------------------------------------------------------------------- */
206 /* Memory Bank 2 (A/D converter) initialization */
207 /* ----------------------------------------------------------------------- */
208#define CS2_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
209#define CS2_CR 0xF0118000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
210/* ----------------------------------------------------------------------- */
211/* Memory Bank 3 (Ethernet PHY Reset) initialization */
212/* ----------------------------------------------------------------------- */
213#define CS3_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
214#define CS3_CR 0xF0218000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
215/* ----------------------------------------------------------------------- */
216/* Memory Bank 4 (PC-MIP PRSNT1#) initialization */
217/* ----------------------------------------------------------------------- */
218#define CS4_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
219#define CS4_CR 0xF0318000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
220/* ----------------------------------------------------------------------- */
221/* Memory Bank 5 (PC-MIP PRSNT2#) initialization */
222/* ----------------------------------------------------------------------- */
223#define CS5_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
224#define CS5_CR 0xF0418000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
225/* ----------------------------------------------------------------------- */
226/* Memory Bank 6 (CPU LED0) initialization */
227/* ----------------------------------------------------------------------- */
228#define CS6_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
229#define CS6_CR 0xF0518000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
230/* ----------------------------------------------------------------------- */
231/* Memory Bank 7 (CPU LED1) initialization */
232/* ----------------------------------------------------------------------- */
233#define CS7_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
234#define CS7_CR 0xF0618000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
235
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200236#define CONFIG_SYS_NVRAM_REG_BASE_ADDR 0xF0000000
237#define CONFIG_SYS_RTC_REG_BASE_ADDR (0xF0000000 + 0x7F8)
238#define CONFIG_SYS_ADC_REG_BASE_ADDR 0xF0100000
239#define CONFIG_SYS_PHYRES_REG_BASE_ADDR 0xF0200000
240#define CONFIG_SYS_PRSNT1_REG_BASE_ADDR 0xF0300000
241#define CONFIG_SYS_PRSNT2_REG_BASE_ADDR 0xF0400000
242#define CONFIG_SYS_LED0_REG_BASE_ADDR 0xF0500000
243#define CONFIG_SYS_LED1_REG_BASE_ADDR 0xF0600000
wdenke2211742002-11-02 23:30:20 +0000244
245
246/* SDRAM CONFIG */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200247#define CONFIG_SYS_SDRAM_MANUALLY 1
248#define CONFIG_SYS_SDRAM_SINGLE_BANK 1
wdenke2211742002-11-02 23:30:20 +0000249
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200250#ifdef CONFIG_SYS_SDRAM_MANUALLY
wdenke2211742002-11-02 23:30:20 +0000251/*-----------------------------------------------------------------------
252 * Set MB0CF for bank 0. (0-32MB) Address Mode 4 since 12x8(2)
253 *----------------------------------------------------------------------*/
254#define MB0CF 0x00062001 /* 32MB @ 0 */
255/*-----------------------------------------------------------------------
256 * Set MB1CF for bank 1. (32MB-64MB) Address Mode 4 since 12x8(2)
257 *----------------------------------------------------------------------*/
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200258#ifdef CONFIG_SYS_SDRAM_SINGLE_BANK
wdenke2211742002-11-02 23:30:20 +0000259#define MB1CF 0x0 /* 0MB @ 32MB */
260#else
261#define MB1CF 0x02062001 /* 32MB @ 32MB */
262#endif
263/*-----------------------------------------------------------------------
264 * Set MB2CF for bank 2. off
265 *----------------------------------------------------------------------*/
266#define MB2CF 0x0 /* 0MB */
267/*-----------------------------------------------------------------------
268 * Set MB3CF for bank 3. off
269 *----------------------------------------------------------------------*/
270#define MB3CF 0x0 /* 0MB */
271
272#define SDTR_100 0x0086400D
273#define RTR_100 0x05F0
274#define SDTR_66 0x00854006 /* orig U-Boot-wallnut says 0x00854006 */
275#define RTR_66 0x03f8
276
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200277#endif /* CONFIG_SYS_SDRAM_MANUALLY */
wdenke2211742002-11-02 23:30:20 +0000278
279
280/*-----------------------------------------------------------------------
281 * Start addresses for the final memory configuration
282 * (Set up by the startup code)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200283 * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
wdenke2211742002-11-02 23:30:20 +0000284 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200285#define CONFIG_SYS_SDRAM_BASE 0x00000000
286#define CONFIG_SYS_SDRAM_SIZE 32
287#define CONFIG_SYS_FLASH_BASE 0xFF800000 /* 8 MByte Flash */
288#define CONFIG_SYS_MONITOR_BASE 0xFFFE0000 /* last 128kByte within Flash */
289/*#define CONFIG_SYS_MONITOR_LEN (192 * 1024)*/ /* Reserve 196 kB for Monitor */
290#define CONFIG_SYS_MONITOR_LEN (128 * 1024) /* Reserve 128 kB for Monitor */
291#define CONFIG_SYS_MALLOC_LEN (128 * 1024) /* Reserve 128 kB for malloc() */
wdenke2211742002-11-02 23:30:20 +0000292
293/*
294 * For booting Linux, the board info and command line data
295 * have to be in the first 8 MB of memory, since this is
296 * the maximum mapped by the Linux kernel during initialization.
297 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200298#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
wdenke2211742002-11-02 23:30:20 +0000299/*-----------------------------------------------------------------------
300 * FLASH organization
301 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200302#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
303#define CONFIG_SYS_MAX_FLASH_SECT 64 /* max number of sectors on one chip */
304#define CONFIG_SYS_FLASH_16BIT 1 /* Rom 16 bit data bus */
wdenke2211742002-11-02 23:30:20 +0000305
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200306#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
307#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
wdenke2211742002-11-02 23:30:20 +0000308
309/* BEG ENVIRONNEMENT FLASH */
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +0200310#ifdef CONFIG_ENV_IS_IN_FLASH
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +0200311#define CONFIG_ENV_SECT_SIZE (128*1024)
wdenke2211742002-11-02 23:30:20 +0000312
313#if 0 /* force ENV to be NOT embedded */
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +0200314#define CONFIG_ENV_ADDR 0xfffa0000
wdenke2211742002-11-02 23:30:20 +0000315#else /* force ENV to be embedded */
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +0200316#define CONFIG_ENV_SIZE (2 * 1024) /* Total Size of Environment Sector 2k */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200317#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SIZE - 0x10) /* let space for reset vector */
318/* #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE)*/
319#define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
wdenke2211742002-11-02 23:30:20 +0000320#endif
321
322#endif
323/* END ENVIRONNEMENT FLASH */
324/*-----------------------------------------------------------------------
325 * NVRAM organization
326 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200327#define CONFIG_SYS_NVRAM_BASE_ADDR CONFIG_SYS_NVRAM_REG_BASE_ADDR /* NVRAM base address */
328#define CONFIG_SYS_NVRAM_SIZE 0x7F8 /* NVRAM size 2kByte - 8 Byte for RTC */
wdenke2211742002-11-02 23:30:20 +0000329
Jean-Christophe PLAGNIOL-VILLARDfdb79c32008-09-10 22:47:59 +0200330#ifdef CONFIG_ENV_IS_IN_NVRAM
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +0200331#define CONFIG_ENV_SIZE 0x7F8 /* Size of Environment vars */
332#define CONFIG_ENV_ADDR \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200333 (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE) /* Env */
wdenke2211742002-11-02 23:30:20 +0000334#endif
wdenke2211742002-11-02 23:30:20 +0000335
336/*
337 * Init Memory Controller:
338 *
339 * BR0/1 and OR0/1 (FLASH)
340 */
341
Wolfgang Denka1be4762008-05-20 16:00:29 +0200342#define FLASH_BASE0_PRELIM 0xFF800000 /* FLASH bank #0 8MB */
wdenke2211742002-11-02 23:30:20 +0000343#define FLASH_BASE1_PRELIM 0 /* FLASH bank #1 */
344
345
346/* Configuration Port location */
347/* #define CONFIG_PORT_ADDR 0xF0000500 */
348
349/*-----------------------------------------------------------------------
350 * Definitions for initial stack pointer and data area (in DPRAM)
351 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200352#define CONFIG_SYS_INIT_RAM_ADDR 0x00df0000 /* inside of SDRAM */
353#define CONFIG_SYS_INIT_RAM_END 0x0f00 /* End of used area in RAM */
354#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */
355#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
356#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
wdenke2211742002-11-02 23:30:20 +0000357
358/*-----------------------------------------------------------------------
359 * Definitions for Serial Presence Detect EEPROM address
360 * (to get SDRAM settings)
361 */
362#define SPD_EEPROM_ADDRESS 0x50
363
364/*
365 * Internal Definitions
366 *
367 * Boot Flags
368 */
369#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
370#define BOOTFLAG_WARM 0x02 /* Software reboot */
371
Jon Loeligerdbb2b542007-07-07 20:56:05 -0500372#if defined(CONFIG_CMD_KGDB)
wdenke2211742002-11-02 23:30:20 +0000373#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
374#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
375#endif
376#endif /* __CONFIG_H */