blob: 74584705ccbbfe4bbdfb7416fd1e393448f23dde [file] [log] [blame]
Ricardo Ribalda Delgado1f4d5322008-10-21 18:29:46 +02001/*
2 *
3 * (C) Copyright 2008
4 * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
5 * This work has been supported by: QTechnology http://qtec.com/
6 *
7 * (C) Copyright 2008
8 * Georg Schardt <schardt@team-ctech.de>
9 *
10 * See file CREDITS for list of people who contributed to this
11 * project.
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of
16 * the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 * MA 02111-1307 USA
27 */
28
29#ifndef __CONFIG_H
30#define __CONFIG_H
31
32/* cpu parameter */
33#define CONFIG_4xx 1
34#define CONFIG_405 1
35#define CONFIG_XILINX_405 1
36
37/* memory map */
38#define CONFIG_SYS_SDRAM_BASE 0x0
39#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
40#define CONFIG_SYS_MONITOR_LEN (192 * 1024)
41#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128 * 1024)
42
43/* u-boot commands configuration */
44#include <config_cmd_default.h>
45
46/*Misc*/
47#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
48#define CONFIG_SYS_LONGHELP /* undef to save memory */
49#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
50#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
51 + sizeof(CONFIG_SYS_PROMPT) + 16)
52#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
53#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */
54#define CONFIG_SYS_MEMTEST_START 0x00400000 /* memtest works on */
55#define CONFIG_SYS_MEMTEST_END 0x00C00000 /* 4 ... 12 MB in DRAM */
56#define CONFIG_SYS_LOAD_ADDR 0x01000000 /* default load address */
57#define CONFIG_SYS_EXTBDINFO 1 /* Extended board_into (bd_t) */
58#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
59#define CONFIG_CMDLINE_EDITING /* add command line history */
60#define CONFIG_AUTO_COMPLETE /* add autocompletion support */
61#define CONFIG_LOOPW /* enable loopw command */
62#define CONFIG_MX_CYCLIC /* enable mdc/mwc commands */
63#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
64#define CONFIG_VERSION_VARIABLE /* include version env variable */
65#define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup */
66#define CONFIG_SYS_HUSH_PARSER /* Use the HUSH parser */
67#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
68#define CONFIG_LOADS_ECHO /* echo on for serial download */
69#define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
70#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
71 /* Initial Memory map for Linux */
72#define CONFIG_SYS_CACHELINE_SIZE 32
73#define CONFIG_SYS_CACHELINE_SHIFT 2
74
75/* stack */
76#define CONFIG_SYS_INIT_RAM_ADDR 0x800000 /* inside of SDRAM */
77#define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
78#define CONFIG_SYS_GBL_DATA_SIZE 128
79#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - \
80 CONFIG_SYS_GBL_DATA_SIZE)
81#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
82
83#define CONFIG_SYS_FLASH_CF 1
84#define CONFIG_FLASH_CFI_DRIVER 1
85#define CONFIG_SYS_FLASH_EMPTY_INFO 1
86#define CONFIG_SYS_MAX_FLASH_BANKS 1
87#define CONFIG_SYS_FLASH_PROTECTION
88
89/* serial communication */
90#ifdef XPAR_UARTLITE_0_BASEADDR
91#define CONFIG_XILINX_UARTLITE
92#define CONFIG_SERIAL_BASE XPAR_UARTLITE_0_BASEADDR
93#define CONFIG_BAUDRATE XPAR_UARTLITE_0_BAUDRATE
94#define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE }
95#else
96#ifdef XPAR_UARTNS550_0_BASEADDR
97#define CONFIG_SYS_NS16550
98#define CONFIG_SYS_NS16550_SERIAL
99#define CONFIG_SYS_NS16550_REG_SIZE 4
100#define CONFIG_CONS_INDEX 1
101#define CONFIG_SYS_NS16550_COM1 XPAR_UARTNS550_0_BASEADDR
102#define CONFIG_SYS_NS16550_CLK XPAR_UARTNS550_0_CLOCK_FREQ_HZ
103#define CONFIG_BAUDRATE 115200
104#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 115200 }
105#endif
106#endif
107
108/* cmd config */
109#define CONFIG_CMD_ASKENV
110#define CONFIG_CMD_CACHE
111#define CONFIG_CMD_DIAG
112#define CONFIG_CMD_ELF
113#define CONFIG_CMD_IRQ
114#define CONFIG_CMD_REGINFO
115#define CONFIG_CMD_JFFS2
116#define CONFIG_JFFS2_CMDLINE
117#undef CONFIG_CMD_SPI
118#undef CONFIG_CMD_I2C
119#undef CONFIG_CMD_DTT
120#undef CONFIG_CMD_NET
121#undef CONFIG_CMD_PING
122#undef CONFIG_CMD_DHCP
123#undef CONFIG_CMD_EEPROM
124#undef CONFIG_CMD_IMLS
125
126#endif