blob: 423c6ebbb77403abd5107b835986d9cf02341367 [file] [log] [blame]
wdenk028ab6b2004-02-23 23:54:43 +00001/*
2 * ML300.h: ML300 specific config options
3 *
4 * http://www.xilinx.com/ml300
5 *
6 * Derived from : ML2.h
7 *
8 * Author: Xilinx, Inc.
9 *
10 *
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
15 *
16 *
17 * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
18 * COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
19 * ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR STANDARD,
20 * XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION IS FREE
21 * FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE FOR
22 * OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
23 * XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
24 * THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY
25 * WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM
26 * CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND
27 * FITNESS FOR A PARTICULAR PURPOSE.
28 *
29 *
30 * Xilinx products are not intended for use in life support appliances,
31 * devices, or systems. Use in such applications is expressly prohibited.
32 *
33 *
34 * (c) Copyright 2002 Xilinx Inc.
35 * All rights reserved.
36 *
37 *
38 * You should have received a copy of the GNU General Public License along
39 * with this program; if not, write to the Free Software Foundation, Inc.,
40 * 675 Mass Ave, Cambridge, MA 02139, USA.
wdenka06752e2004-09-29 22:43:59 +000041 *
wdenk028ab6b2004-02-23 23:54:43 +000042 */
43
44#ifndef __CONFIG_H
45#define __CONFIG_H
46
47/* #define DEBUG */
48/* #define ET_DEBUG 1 */
49
50/*
51 * High Level Configuration Options
52 * (easy to change)
53 */
54
55#define CONFIG_405 1 /* This is a PPC405 CPU */
56#define CONFIG_4xx 1 /* ...member of PPC4xx family */
57#define CONFIG_XILINX_ML300 1 /* ...on a Xilinx ML300 board */
58
wdenka5bbcc32004-09-29 22:55:14 +000059#define CONFIG_SYSTEMACE 1
60#define CONFIG_DOS_PARTITION 1
wdenke2ffd592004-12-31 09:32:47 +000061#define CFG_SYSTEMACE_BASE XPAR_OPB_SYSACE_0_BASEADDR
wdenka5bbcc32004-09-29 22:55:14 +000062#define CFG_SYSTEMACE_WIDTH XPAR_XSYSACE_MEM_WIDTH
63
wdenka06752e2004-09-29 22:43:59 +000064#define CFG_ENV_IS_IN_EEPROM 1 /* environment is in EEPROM */
65
66/* following are used only if env is in EEPROM */
67#ifdef CFG_ENV_IS_IN_EEPROM
68#define CFG_I2C_EEPROM_ADDR XPAR_PERSISTENT_0_IIC_0_EEPROMADDR
69#define CFG_I2C_EEPROM_ADDR_LEN 1
70#define CFG_ENV_OFFSET XPAR_PERSISTENT_0_IIC_0_BASEADDR
71#define CONFIG_MISC_INIT_R 1 /* used to call out convert_env() */
72#define CONFIG_ENV_OVERWRITE 1 /* allow users to update ethaddr and serial# */
73#endif
74
75#include "../board/xilinx/ml300/xparameters.h"
76
wdenk028ab6b2004-02-23 23:54:43 +000077#define CFG_NO_FLASH 1 /* no flash */
wdenka06752e2004-09-29 22:43:59 +000078#define CFG_ENV_SIZE XPAR_PERSISTENT_0_IIC_0_HIGHADDR - XPAR_PERSISTENT_0_IIC_0_BASEADDR + 1
wdenk028ab6b2004-02-23 23:54:43 +000079#define CONFIG_BAUDRATE 9600
80#define CONFIG_BOOTDELAY 3 /* autoboot after 3 seconds */
81
82#define CONFIG_BOOTCOMMAND "bootp" /* autoboot command */
83
84#define CONFIG_BOOTARGS "console=ttyS0,9600 ip=off " \
85 "root=/dev/xsysace/disc0/part3 rw"
86
87#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
88#define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
89
wdenk028ab6b2004-02-23 23:54:43 +000090
Jon Loeliger5dc11a52007-07-04 22:33:01 -050091/*
92 * Command line configuration.
93 */
94#include <config_cmd_default.h>
95
96#define CONFIG_CMD_NET
97
98#undef CONFIG_CMD_FLASH
99#undef CONFIG_CMD_LOADS
100#undef CONFIG_CMD_FAT
101#undef CONFIG_CMD_IMLS
102
wdenk028ab6b2004-02-23 23:54:43 +0000103
104/* #define CONFIG_SYS_CLK_FREQ XPAR_CORE_CLOCK_FREQ_HZ */
105/* 300000000 */
106
107/*
108 * Miscellaneous configurable options
109 */
110#define CFG_LONGHELP /* undef to save memory */
111#define CFG_PROMPT "=> " /* Monitor Command Prompt */
112
113#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
114
115#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
116#define CFG_MAXARGS 16 /* max number of command args */
117#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
118
119#define CFG_MEMTEST_START 0x0400000 /* memtest works on */
120#define CFG_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */
121
122#define CFG_DUART_CHAN 0
123#define CFG_NS16550_REG_SIZE -4
124#define CFG_NS16550 1
125#define CFG_INIT_CHAN1 1
126
127/* The following table includes the supported baudrates */
128#define CFG_BAUDRATE_TABLE \
129 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
130
131#define CFG_LOAD_ADDR 0x400000 /* default load address */
132#define CFG_EXTBDINFO 1 /* To use extended board_into (bd_t) */
133
134#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
135
136/*-----------------------------------------------------------------------
137 * Start addresses for the final memory configuration
138 * (Set up by the startup code)
139 * Please note that CFG_SDRAM_BASE _must_ start at 0
140 */
141#define CFG_SDRAM_BASE 0x00000000
142#define CFG_MONITOR_BASE 0x04000000
143#define CFG_MONITOR_LEN (192 * 1024) /* Reserve 196 kB for Monitor */
144#define CFG_MALLOC_LEN (128 * 1024) /* Reserve 128 kB for malloc() */
145
146/*
147 * For booting Linux, the board info and command line data
148 * have to be in the first 8 MB of memory, since this is
149 * the maximum mapped by the Linux kernel during initialization.
150 */
151#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
152
153/*-----------------------------------------------------------------------
154 * Cache Configuration
155 */
Wolfgang Denk0c8721a2005-09-23 11:05:55 +0200156#define CFG_DCACHE_SIZE 16384 /* For AMCC 405 CPUs */
wdenk028ab6b2004-02-23 23:54:43 +0000157#define CFG_CACHELINE_SIZE 32 /* ... */
158
159/*-----------------------------------------------------------------------
160 * Definitions for initial stack pointer and data area (in DPRAM)
161 */
162
163#define CFG_INIT_RAM_ADDR 0x800000 /* inside of SDRAM */
164#define CFG_INIT_RAM_END 0x2000 /* End of used area in RAM */
165#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
166#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
167#define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
168
169/*
170 * Internal Definitions
171 *
172 * Boot Flags
173 */
174#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
175#define BOOTFLAG_WARM 0x02 /* Software reboot */
176
177#endif /* __CONFIG_H */