1265817c7SWolfgang Denk /* 2265817c7SWolfgang Denk * (C) Copyright 2003 3265817c7SWolfgang Denk * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4265817c7SWolfgang Denk * 5265817c7SWolfgang Denk * See file CREDITS for list of people who contributed to this 6265817c7SWolfgang Denk * project. 7265817c7SWolfgang Denk * 8265817c7SWolfgang Denk * This program is free software; you can redistribute it and/or 9265817c7SWolfgang Denk * modify it under the terms of the GNU General Public License as 10265817c7SWolfgang Denk * published by the Free Software Foundation; either version 2 of 11265817c7SWolfgang Denk * the License, or (at your option) any later version. 12265817c7SWolfgang Denk * 13265817c7SWolfgang Denk * This program is distributed in the hope that it will be useful, 14265817c7SWolfgang Denk * but WITHOUT ANY WARRANTY; without even the implied warranty of 15265817c7SWolfgang Denk * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16265817c7SWolfgang Denk * GNU General Public License for more details. 17265817c7SWolfgang Denk * 18265817c7SWolfgang Denk * You should have received a copy of the GNU General Public License 19265817c7SWolfgang Denk * along with this program; if not, write to the Free Software 20265817c7SWolfgang Denk * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21265817c7SWolfgang Denk * MA 02111-1307 USA 22265817c7SWolfgang Denk */ 23265817c7SWolfgang Denk 24265817c7SWolfgang Denk /* 25265817c7SWolfgang Denk * This file contains the configuration parameters for the dbau1x00 board. 26265817c7SWolfgang Denk */ 27265817c7SWolfgang Denk 28265817c7SWolfgang Denk #ifndef __CONFIG_H 29265817c7SWolfgang Denk #define __CONFIG_H 30265817c7SWolfgang Denk 31265817c7SWolfgang Denk #define CONFIG_MIPS32 1 /* MIPS32 CPU core */ 32265817c7SWolfgang Denk #define CONFIG_PB1X00 1 33265817c7SWolfgang Denk #define CONFIG_AU1X00 1 /* alchemy series cpu */ 34265817c7SWolfgang Denk 35265817c7SWolfgang Denk #ifdef CONFIG_PB1000 36265817c7SWolfgang Denk #define CONFIG_AU1000 1 37265817c7SWolfgang Denk #else 38265817c7SWolfgang Denk #ifdef CONFIG_PB1100 39265817c7SWolfgang Denk #define CONFIG_AU1100 1 40265817c7SWolfgang Denk #else 41265817c7SWolfgang Denk #ifdef CONFIG_PB1500 42265817c7SWolfgang Denk #define CONFIG_AU1500 1 43265817c7SWolfgang Denk #else 44265817c7SWolfgang Denk #error "No valid board set" 45265817c7SWolfgang Denk #endif 46265817c7SWolfgang Denk #endif 47265817c7SWolfgang Denk #endif 48265817c7SWolfgang Denk 49265817c7SWolfgang Denk #define CONFIG_ETHADDR DE:AD:BE:EF:01:01 /* Ethernet address */ 50265817c7SWolfgang Denk 51265817c7SWolfgang Denk #define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */ 52265817c7SWolfgang Denk 53265817c7SWolfgang Denk #define CONFIG_BAUDRATE 115200 54265817c7SWolfgang Denk 55265817c7SWolfgang Denk /* valid baudrates */ 56265817c7SWolfgang Denk #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } 57265817c7SWolfgang Denk 58265817c7SWolfgang Denk #define CONFIG_TIMESTAMP /* Print image info with timestamp */ 59265817c7SWolfgang Denk #undef CONFIG_BOOTARGS 60265817c7SWolfgang Denk 61265817c7SWolfgang Denk #define CONFIG_EXTRA_ENV_SETTINGS \ 62*fe126d8bSWolfgang Denk "addmisc=setenv bootargs ${bootargs} " \ 63*fe126d8bSWolfgang Denk "console=ttyS0,${baudrate} " \ 64265817c7SWolfgang Denk "panic=1\0" \ 65265817c7SWolfgang Denk "bootfile=/vmlinux.img\0" \ 66*fe126d8bSWolfgang Denk "load=tftp 80500000 ${u-boot}\0" \ 67265817c7SWolfgang Denk "" 68265817c7SWolfgang Denk /* Boot from NFS root */ 69*fe126d8bSWolfgang Denk #define CONFIG_BOOTCOMMAND "bootp; setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm" 70265817c7SWolfgang Denk 71265817c7SWolfgang Denk /* 72265817c7SWolfgang Denk * Miscellaneous configurable options 73265817c7SWolfgang Denk */ 74265817c7SWolfgang Denk #define CFG_LONGHELP /* undef to save memory */ 75265817c7SWolfgang Denk #define CFG_PROMPT "Pb1x00 # " /* Monitor Command Prompt */ 76265817c7SWolfgang Denk #define CFG_CBSIZE 256 /* Console I/O Buffer Size */ 77265817c7SWolfgang Denk #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */ 78265817c7SWolfgang Denk #define CFG_MAXARGS 16 /* max number of command args*/ 79265817c7SWolfgang Denk 80265817c7SWolfgang Denk #define CFG_MALLOC_LEN 128*1024 81265817c7SWolfgang Denk 82265817c7SWolfgang Denk #define CFG_BOOTPARAMS_LEN 128*1024 83265817c7SWolfgang Denk 84265817c7SWolfgang Denk #define CFG_HZ 396000000 /* FIXME causes overflow in net.c */ 85265817c7SWolfgang Denk 86265817c7SWolfgang Denk #define CFG_SDRAM_BASE 0x80000000 /* Cached addr */ 87265817c7SWolfgang Denk 88265817c7SWolfgang Denk #define CFG_LOAD_ADDR 0x81000000 /* default load address */ 89265817c7SWolfgang Denk 90265817c7SWolfgang Denk #define CFG_MEMTEST_START 0x80100000 91265817c7SWolfgang Denk #undef CFG_MEMTEST_START 92265817c7SWolfgang Denk #define CFG_MEMTEST_START 0x80200000 93265817c7SWolfgang Denk #define CFG_MEMTEST_END 0x83800000 94265817c7SWolfgang Denk 95265817c7SWolfgang Denk /*----------------------------------------------------------------------- 96265817c7SWolfgang Denk * FLASH and environment organization 97265817c7SWolfgang Denk */ 98265817c7SWolfgang Denk #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */ 99265817c7SWolfgang Denk #define CFG_MAX_FLASH_SECT (128) /* max number of sectors on one chip */ 100265817c7SWolfgang Denk 101265817c7SWolfgang Denk #define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */ 102265817c7SWolfgang Denk #define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */ 103265817c7SWolfgang Denk 104265817c7SWolfgang Denk /* The following #defines are needed to get flash environment right */ 105265817c7SWolfgang Denk #define CFG_MONITOR_BASE TEXT_BASE 106265817c7SWolfgang Denk #define CFG_MONITOR_LEN (192 << 10) 107265817c7SWolfgang Denk 108265817c7SWolfgang Denk #define CFG_INIT_SP_OFFSET 0x4000000 109265817c7SWolfgang Denk 110265817c7SWolfgang Denk /* We boot from this flash, selected with dip switch */ 111265817c7SWolfgang Denk #define CFG_FLASH_BASE PHYS_FLASH_2 112265817c7SWolfgang Denk 113265817c7SWolfgang Denk /* timeout values are in ticks */ 114265817c7SWolfgang Denk #define CFG_FLASH_ERASE_TOUT (2 * CFG_HZ) /* Timeout for Flash Erase */ 115265817c7SWolfgang Denk #define CFG_FLASH_WRITE_TOUT (2 * CFG_HZ) /* Timeout for Flash Write */ 116265817c7SWolfgang Denk 117265817c7SWolfgang Denk #define CFG_ENV_IS_NOWHERE 1 118265817c7SWolfgang Denk 119265817c7SWolfgang Denk /* Address and size of Primary Environment Sector */ 120265817c7SWolfgang Denk #define CFG_ENV_ADDR 0xB0030000 121265817c7SWolfgang Denk #define CFG_ENV_SIZE 0x10000 122265817c7SWolfgang Denk 123265817c7SWolfgang Denk #define CONFIG_FLASH_16BIT 124265817c7SWolfgang Denk 125265817c7SWolfgang Denk #define CONFIG_NR_DRAM_BANKS 2 126265817c7SWolfgang Denk 127265817c7SWolfgang Denk #define CONFIG_NET_MULTI 128265817c7SWolfgang Denk 129265817c7SWolfgang Denk #define CONFIG_MEMSIZE_IN_BYTES 130265817c7SWolfgang Denk 131265817c7SWolfgang Denk 132265817c7SWolfgang Denk /*---USB -------------------------------------------*/ 133265817c7SWolfgang Denk #if 0 134265817c7SWolfgang Denk #define CONFIG_USB_OHCI 135265817c7SWolfgang Denk #define ADD_USB_CMD CFG_CMD_USB | CFG_CMD_FAT 136265817c7SWolfgang Denk #define CONFIG_USB_STORAGE 137265817c7SWolfgang Denk #define CONFIG_DOS_PARTITION 138265817c7SWolfgang Denk #else 139265817c7SWolfgang Denk #define ADD_USB_CMD 0 140265817c7SWolfgang Denk #endif 141265817c7SWolfgang Denk 142265817c7SWolfgang Denk /*---ATA PCMCIA ------------------------------------*/ 143265817c7SWolfgang Denk #if 0 144265817c7SWolfgang Denk #define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */ 145265817c7SWolfgang Denk #define CFG_PCMCIA_MEM_ADDR 0x20000000 146265817c7SWolfgang Denk #define CONFIG_PCMCIA_SLOT_A 147265817c7SWolfgang Denk 148265817c7SWolfgang Denk #define CONFIG_ATAPI 1 149265817c7SWolfgang Denk #define CONFIG_MAC_PARTITION 1 150265817c7SWolfgang Denk 151265817c7SWolfgang Denk /* We run CF in "true ide" mode or a harddrive via pcmcia */ 152265817c7SWolfgang Denk #define CONFIG_IDE_PCMCIA 1 153265817c7SWolfgang Denk 154265817c7SWolfgang Denk /* We only support one slot for now */ 155265817c7SWolfgang Denk #define CFG_IDE_MAXBUS 1 /* max. 1 IDE bus */ 156265817c7SWolfgang Denk #define CFG_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */ 157265817c7SWolfgang Denk 158265817c7SWolfgang Denk #undef CONFIG_IDE_LED /* LED for ide not supported */ 159265817c7SWolfgang Denk #undef CONFIG_IDE_RESET /* reset for ide not supported */ 160265817c7SWolfgang Denk 161265817c7SWolfgang Denk #define CFG_ATA_IDE0_OFFSET 0x0000 162265817c7SWolfgang Denk 163265817c7SWolfgang Denk #define CFG_ATA_BASE_ADDR CFG_PCMCIA_MEM_ADDR 164265817c7SWolfgang Denk 165265817c7SWolfgang Denk /* Offset for data I/O */ 166265817c7SWolfgang Denk #define CFG_ATA_DATA_OFFSET 8 167265817c7SWolfgang Denk 168265817c7SWolfgang Denk /* Offset for normal register accesses */ 169265817c7SWolfgang Denk #define CFG_ATA_REG_OFFSET 0 170265817c7SWolfgang Denk 171265817c7SWolfgang Denk /* Offset for alternate registers */ 172265817c7SWolfgang Denk #define CFG_ATA_ALT_OFFSET 0x0100 173265817c7SWolfgang Denk 174265817c7SWolfgang Denk #endif 175265817c7SWolfgang Denk /*----------------------------------------------------------------------- 176265817c7SWolfgang Denk * Cache Configuration 177265817c7SWolfgang Denk */ 178265817c7SWolfgang Denk #define CFG_DCACHE_SIZE 16384 179265817c7SWolfgang Denk #define CFG_ICACHE_SIZE 16384 180265817c7SWolfgang Denk #define CFG_CACHELINE_SIZE 32 181265817c7SWolfgang Denk 182265817c7SWolfgang Denk #define CONFIG_COMMANDS \ 183265817c7SWolfgang Denk (((CONFIG_CMD_DFL | CFG_CMD_DHCP | CFG_CMD_ELF | CFG_CMD_MII | CFG_CMD_PING) & \ 184265817c7SWolfgang Denk ~(CFG_CMD_ENV | CFG_CMD_FAT | CFG_CMD_FLASH | CFG_CMD_FPGA | CFG_CMD_IDE | \ 185265817c7SWolfgang Denk CFG_CMD_LOADS | CFG_CMD_RUN | CFG_CMD_LOADB | CFG_CMD_ELF | \ 186265817c7SWolfgang Denk CFG_CMD_BDI | CFG_CMD_BEDBUG)) | ADD_USB_CMD) 187265817c7SWolfgang Denk #include <cmd_confdefs.h> 188265817c7SWolfgang Denk 189265817c7SWolfgang Denk #endif /* __CONFIG_H */ 190