10764c164SVlad Lungu /* 20764c164SVlad Lungu * (C) Copyright 2003 30764c164SVlad Lungu * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 40764c164SVlad Lungu * 50764c164SVlad Lungu * See file CREDITS for list of people who contributed to this 60764c164SVlad Lungu * project. 70764c164SVlad Lungu * 80764c164SVlad Lungu * This program is free software; you can redistribute it and/or 90764c164SVlad Lungu * modify it under the terms of the GNU General Public License as 100764c164SVlad Lungu * published by the Free Software Foundation; either version 2 of 110764c164SVlad Lungu * the License, or (at your option) any later version. 120764c164SVlad Lungu * 130764c164SVlad Lungu * This program is distributed in the hope that it will be useful, 140764c164SVlad Lungu * but WITHOUT ANY WARRANTY; without even the implied warranty of 150764c164SVlad Lungu * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 160764c164SVlad Lungu * GNU General Public License for more details. 170764c164SVlad Lungu * 180764c164SVlad Lungu * You should have received a copy of the GNU General Public License 190764c164SVlad Lungu * along with this program; if not, write to the Free Software 200764c164SVlad Lungu * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 210764c164SVlad Lungu * MA 02111-1307 USA 220764c164SVlad Lungu */ 230764c164SVlad Lungu 240764c164SVlad Lungu /* 258875e3abSShinya Kuribayashi * This file contains the configuration parameters for qemu-mips target. 260764c164SVlad Lungu */ 270764c164SVlad Lungu 280764c164SVlad Lungu #ifndef __CONFIG_H 290764c164SVlad Lungu #define __CONFIG_H 300764c164SVlad Lungu 31*6b2eba1bSDaniel Schwierzeck #define CONFIG_MIPS32 /* MIPS32 CPU core */ 32*6b2eba1bSDaniel Schwierzeck #define CONFIG_QEMU_MIPS 330764c164SVlad Lungu #define CONFIG_MISC_INIT_R 340764c164SVlad Lungu 350764c164SVlad Lungu #define CONFIG_BOOTDELAY 10 /* autoboot after 10 seconds */ 360764c164SVlad Lungu 370764c164SVlad Lungu #define CONFIG_BAUDRATE 115200 380764c164SVlad Lungu 390764c164SVlad Lungu #define CONFIG_TIMESTAMP /* Print image info with timestamp */ 400764c164SVlad Lungu #undef CONFIG_BOOTARGS 410764c164SVlad Lungu 420764c164SVlad Lungu #define CONFIG_EXTRA_ENV_SETTINGS \ 430764c164SVlad Lungu "addmisc=setenv bootargs ${bootargs} " \ 440764c164SVlad Lungu "console=ttyS0,${baudrate} " \ 450764c164SVlad Lungu "panic=1\0" \ 460764c164SVlad Lungu "bootfile=/tftpboot/vmlinux\0" \ 470764c164SVlad Lungu "load=tftp 80500000 ${u-boot}\0" \ 480764c164SVlad Lungu "" 490764c164SVlad Lungu 500764c164SVlad Lungu #define CONFIG_BOOTCOMMAND "bootp;bootelf" 510764c164SVlad Lungu 520764c164SVlad Lungu /* 530764c164SVlad Lungu * BOOTP options 540764c164SVlad Lungu */ 550764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE 560764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH 570764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY 580764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME 590764c164SVlad Lungu 600764c164SVlad Lungu /* 610764c164SVlad Lungu * Command line configuration. 620764c164SVlad Lungu */ 630764c164SVlad Lungu #include <config_cmd_default.h> 640764c164SVlad Lungu 650764c164SVlad Lungu #define CONFIG_CMD_ELF 660764c164SVlad Lungu #define CONFIG_CMD_FAT 670764c164SVlad Lungu #define CONFIG_CMD_EXT2 680764c164SVlad Lungu #undef CONFIG_CMD_LOADB 690764c164SVlad Lungu #undef CONFIG_CMD_LOADS 700764c164SVlad Lungu #define CONFIG_CMD_DHCP 710764c164SVlad Lungu 720764c164SVlad Lungu #define CONFIG_DRIVER_NE2000 73*6b2eba1bSDaniel Schwierzeck #define CONFIG_DRIVER_NE2000_BASE 0xb4000300 740764c164SVlad Lungu 756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK 115200 79*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_NS16550_COM1 0xb40003f8 800764c164SVlad Lungu #define CONFIG_CONS_INDEX 1 810764c164SVlad Lungu 820764c164SVlad Lungu #define CONFIG_CMD_IDE 830764c164SVlad Lungu #define CONFIG_DOS_PARTITION 840764c164SVlad Lungu 856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 2 86*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 87*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 88*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_DATA_OFFSET 0 89*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_REG_OFFSET 0 90*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_BASE_ADDR 0xb4000000 910764c164SVlad Lungu 92*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_IDE_MAXDEVICE 4 930764c164SVlad Lungu 940764c164SVlad Lungu /* 950764c164SVlad Lungu * Miscellaneous configurable options 960764c164SVlad Lungu */ 976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 980764c164SVlad Lungu 99748fd4a6SDaniel Schwierzeck /* Monitor Command Prompt */ 100748fd4a6SDaniel Schwierzeck #if defined(CONFIG_SYS_LITTLE_ENDIAN) 101748fd4a6SDaniel Schwierzeck #define CONFIG_SYS_PROMPT "qemu-mipsel # " 102748fd4a6SDaniel Schwierzeck #else 103748fd4a6SDaniel Schwierzeck #define CONFIG_SYS_PROMPT "qemu-mips # " 104748fd4a6SDaniel Schwierzeck #endif 1050764c164SVlad Lungu 106bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE 107bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING 1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 109bed8ce83SJean-Christophe PLAGNIOL-VILLARD 110*6b2eba1bSDaniel Schwierzeck /* Console I/O Buffer Size */ 111*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_CBSIZE 256 112*6b2eba1bSDaniel Schwierzeck /* Print Buffer Size */ 113*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 114*6b2eba1bSDaniel Schwierzeck /* max number of command args */ 115*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_MAXARGS 16 1160764c164SVlad Lungu 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN 128*1024 1180764c164SVlad Lungu 1196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024 1200764c164SVlad Lungu 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MHZ 132 1220764c164SVlad Lungu 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) 124a55d4817SShinya Kuribayashi 1256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 1260764c164SVlad Lungu 127*6b2eba1bSDaniel Schwierzeck /* Cached addr */ 128*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_SDRAM_BASE 0x80000000 1290764c164SVlad Lungu 130*6b2eba1bSDaniel Schwierzeck /* default load address */ 131*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_LOAD_ADDR 0x81000000 1320764c164SVlad Lungu 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x80100000 1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x80800000 1350764c164SVlad Lungu 1360764c164SVlad Lungu /*----------------------------------------------------------------------- 1370764c164SVlad Lungu * FLASH and environment organization 1380764c164SVlad Lungu */ 1390764c164SVlad Lungu /* The following #defines are needed to get flash environment right */ 140ff9b0cb8SZhi-zhou Zhang #define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */ 14114d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 1426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (192 << 10) 1430764c164SVlad Lungu 1446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 1450764c164SVlad Lungu 1460764c164SVlad Lungu /* We boot from this flash, selected with dip switch */ 1476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xbfc00000 1486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 1496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 128 150*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_CFI 151*6b2eba1bSDaniel Schwierzeck #define CONFIG_FLASH_CFI_DRIVER 152*6b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1530764c164SVlad Lungu 154*6b2eba1bSDaniel Schwierzeck #define CONFIG_ENV_IS_IN_FLASH 15513095b2fSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 1560764c164SVlad Lungu 1570764c164SVlad Lungu /* Address and size of Primary Environment Sector */ 1580e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x8000 159b4aff1ffSJean-Christophe PLAGNIOL-VILLARD 160b4aff1ffSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_OVERWRITE 1 1618875e3abSShinya Kuribayashi 1620764c164SVlad Lungu #define MEM_SIZE 128 1630764c164SVlad Lungu 164caf72ff3SLuigi 'Comio' Mantellini #define CONFIG_LZMA 165caf72ff3SLuigi 'Comio' Mantellini 1660764c164SVlad Lungu /*----------------------------------------------------------------------- 1670764c164SVlad Lungu * Cache Configuration 1680764c164SVlad Lungu */ 1696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DCACHE_SIZE 16384 1706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ICACHE_SIZE 16384 1716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CACHELINE_SIZE 32 1720764c164SVlad Lungu 1730764c164SVlad Lungu #endif /* __CONFIG_H */ 174