wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 1 | /* |
| 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 | /* |
| 29 | * If we are developing, we might want to start armboot from ram |
| 30 | * so we MUST NOT initialize critical regs like mem-timing ... |
| 31 | */ |
| 32 | #define CONFIG_INIT_CRITICAL /* undef for developing */ |
| 33 | |
| 34 | /* |
| 35 | * High Level Configuration Options |
| 36 | * (easy to change) |
| 37 | */ |
| 38 | |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 39 | #define CONFIG_MICROBLAZE 1 /* This is an MicroBlaze CPU */ |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 40 | #define CONFIG_SUZAKU 1 /* on an SUZAKU Board */ |
| 41 | |
| 42 | /*----------------------------------------------------------------------- |
| 43 | * Start addresses for the final memory configuration |
| 44 | * (Set up by the startup code) |
| 45 | * Please note that CFG_SDRAM_BASE _must_ start at 0 |
| 46 | */ |
| 47 | #define CFG_SDRAM_BASE 0x80000000 |
| 48 | #define CFG_SDRAM_SIZE 0x01000000 |
| 49 | #define CFG_FLASH_BASE 0xfff00000 |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 50 | #define CFG_FLASH_SIZE 0x00400000 |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 51 | #define CFG_RESET_ADDRESS 0xfff00100 |
| 52 | #define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ |
| 53 | #define CFG_MONITOR_BASE (CFG_SDRAM_BASE + CFG_SDRAM_SIZE - (1024 * 1024)) |
| 54 | #define CFG_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc */ |
| 55 | |
| 56 | #define CONFIG_BAUDRATE 115200 |
| 57 | #define CFG_BAUDRATE_TABLE { 115200 } |
| 58 | |
| 59 | #define CONFIG_COMMANDS (CONFIG__CMD_DFL) |
| 60 | |
| 61 | /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ |
| 62 | #include <cmd_confdefs.h> |
| 63 | |
| 64 | #define CFG_UART1_BASE (0xFFFF2000) |
| 65 | #define CONFIG_SERIAL_BASE CFG_UART1_BASE |
| 66 | |
| 67 | /* |
| 68 | * Miscellaneous configurable options |
| 69 | */ |
| 70 | #define CFG_LONGHELP /* undef to save memory */ |
| 71 | #define CFG_PROMPT "SUZAKU> " /* Monitor Command Prompt */ |
| 72 | #define CFG_CBSIZE 256 |
| 73 | #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */ |
| 74 | #define CFG_MAXARGS 16 /* max number of command args */ |
| 75 | |
| 76 | #define CFG_LOAD_ADDR CFG_SDRAM_BASE /* default load address */ |
| 77 | |
| 78 | /*----------------------------------------------------------------------- |
| 79 | * FLASH organization |
| 80 | */ |
| 81 | #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 82 | #define CFG_MAX_FLASH_SECT 1 /* max number of sectors on one chip */ |
| 83 | |
| 84 | /*----------------------------------------------------------------------- |
| 85 | * NVRAM organization |
| 86 | */ |
| 87 | #define CFG_ENV_IS_NOWHERE 1 |
| 88 | #define CFG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */ |
| 89 | #define CFG_ENV_SECT_SIZE 0x10000 /* see README - env sector total size */ |
| 90 | |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 91 | /*----------------------------------------------------------------------- |
| 92 | * Definitions for initial stack pointer and data area (in DPRAM) |
| 93 | */ |
| 94 | |
| 95 | #define CFG_INIT_RAM_ADDR 0x80000000 /* inside of SDRAM */ |
| 96 | #define CFG_INIT_RAM_END 0x2000 /* End of used area in RAM */ |
| 97 | #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ |
| 98 | #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) |
| 99 | #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET |
| 100 | |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 101 | #endif /* __CONFIG_H */ |