blob: b702de0c58553455bedb62f8f97e07032e8924bb [file] [log] [blame]
wdenk507bbe32004-04-18 21:13:41 +00001/*
2 * (C) Copyright 2004 Atmark Techno, Inc.
3 *
4 * Yasushi SHOJI <yashi@atmark-techno.com>
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA
23 */
24
25#ifndef __CONFIG_H
26#define __CONFIG_H
27
28/*
wdenk507bbe32004-04-18 21:13:41 +000029 * High Level Configuration Options
30 * (easy to change)
31 */
32
wdenk857cad32004-07-10 23:48:41 +000033#define CONFIG_MICROBLAZE 1 /* This is an MicroBlaze CPU */
wdenk507bbe32004-04-18 21:13:41 +000034#define CONFIG_SUZAKU 1 /* on an SUZAKU Board */
35
36/*-----------------------------------------------------------------------
37 * Start addresses for the final memory configuration
38 * (Set up by the startup code)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020039 * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
wdenk507bbe32004-04-18 21:13:41 +000040 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020041#define CONFIG_SYS_SDRAM_BASE 0x80000000
42#define CONFIG_SYS_SDRAM_SIZE 0x01000000
43#define CONFIG_SYS_FLASH_BASE 0xfff00000
44#define CONFIG_SYS_FLASH_SIZE 0x00400000
45#define CONFIG_SYS_RESET_ADDRESS 0xfff00100
46#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
47#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - (1024 * 1024))
48#define CONFIG_SYS_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc */
49#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - (1024 * 1024))
wdenk507bbe32004-04-18 21:13:41 +000050
Michal Simek0731cba2007-09-24 00:25:11 +020051#define CONFIG_XILINX_UARTLITE
wdenk507bbe32004-04-18 21:13:41 +000052#define CONFIG_BAUDRATE 115200
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020053#define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
wdenk507bbe32004-04-18 21:13:41 +000054
Michal Simek6f934212007-03-30 22:42:45 +020055/* System Register (GPIO) */
56#define MICROBLAZE_SYSREG_BASE_ADDR 0xFFFFA000
57#define MICROBLAZE_SYSREG_RECONFIGURE (1 << 0)
58
Jon Loeliger079a1362007-07-10 10:12:10 -050059/*
Jon Loeliger46da1e92007-07-04 22:33:30 -050060 * Command line configuration.
61 */
62#include <config_cmd_default.h>
63
Michal Simekf2403562007-09-24 00:36:06 +020064#undef CONFIG_CMD_BDI
65#undef CONFIG_CMD_ENV
66#undef CONFIG_CMD_MEMORY
67#undef CONFIG_CMD_NET
68#undef CONFIG_CMD_MISC
wdenk507bbe32004-04-18 21:13:41 +000069
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020070#define CONFIG_SYS_UART1_BASE (0xFFFF2000)
71#define CONFIG_SERIAL_BASE CONFIG_SYS_UART1_BASE
wdenk507bbe32004-04-18 21:13:41 +000072
73/*
74 * Miscellaneous configurable options
75 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020076#define CONFIG_SYS_LONGHELP /* undef to save memory */
77#define CONFIG_SYS_PROMPT "SUZAKU> " /* Monitor Command Prompt */
78#define CONFIG_SYS_CBSIZE 256
79#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
80#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
wdenk507bbe32004-04-18 21:13:41 +000081
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020082#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE /* default load address */
wdenk507bbe32004-04-18 21:13:41 +000083
84/*-----------------------------------------------------------------------
85 * FLASH organization
86 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020087#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
88#define CONFIG_SYS_MAX_FLASH_SECT 1 /* max number of sectors on one chip */
wdenk507bbe32004-04-18 21:13:41 +000089
90/*-----------------------------------------------------------------------
91 * NVRAM organization
92 */
Jean-Christophe PLAGNIOL-VILLARD93f6d722008-09-10 22:48:00 +020093#define CONFIG_ENV_IS_NOWHERE 1
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +020094#define CONFIG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */
95#define CONFIG_ENV_SECT_SIZE 0x10000 /* see README - env sector total size */
wdenk507bbe32004-04-18 21:13:41 +000096
wdenk857cad32004-07-10 23:48:41 +000097/*-----------------------------------------------------------------------
98 * Definitions for initial stack pointer and data area (in DPRAM)
99 */
100
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200101#define CONFIG_SYS_INIT_RAM_ADDR 0x80000000 /* inside of SDRAM */
102#define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
103#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
104#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
105#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
wdenk857cad32004-07-10 23:48:41 +0000106
Michal Simekf2403562007-09-24 00:36:06 +0200107#define XILINX_CLOCK_FREQ 50000000
108#define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
109
wdenk507bbe32004-04-18 21:13:41 +0000110#endif /* __CONFIG_H */