xref: /rk3399_rockchip-uboot/include/configs/qemu-mips.h (revision bed8ce838a609aaab136d43b25e6df2a520bc854)
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 /*
250764c164SVlad Lungu  * This file contains the configuration parameters for the dbau1x00 board.
260764c164SVlad Lungu  */
270764c164SVlad Lungu 
280764c164SVlad Lungu #ifndef __CONFIG_H
290764c164SVlad Lungu #define __CONFIG_H
300764c164SVlad Lungu 
310764c164SVlad Lungu #define CONFIG_MIPS32		1  /* MIPS32 CPU core	*/
320764c164SVlad Lungu #define CONFIG_QEMU_MIPS        1
330764c164SVlad Lungu #define CONFIG_MISC_INIT_R
340764c164SVlad Lungu 
350764c164SVlad Lungu #undef DEBUG
360764c164SVlad Lungu 
370764c164SVlad Lungu /*IP address is default used by Qemu*/
380764c164SVlad Lungu #define CONFIG_IPADDR		10.0.2.15    	     /* Our IP address */
390764c164SVlad Lungu #define CONFIG_SERVERIP		10.0.2.2	     /* Server IP address*/
400764c164SVlad Lungu 
410764c164SVlad Lungu #define CONFIG_BOOTDELAY	10	/* autoboot after 10 seconds	*/
420764c164SVlad Lungu 
430764c164SVlad Lungu #define CONFIG_BAUDRATE		115200
440764c164SVlad Lungu 
450764c164SVlad Lungu /* valid baudrates */
460764c164SVlad Lungu #define CFG_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200 }
470764c164SVlad Lungu 
480764c164SVlad Lungu #define	CONFIG_TIMESTAMP		/* Print image info with timestamp */
490764c164SVlad Lungu #undef	CONFIG_BOOTARGS
500764c164SVlad Lungu 
510764c164SVlad Lungu #define	CONFIG_EXTRA_ENV_SETTINGS					\
520764c164SVlad Lungu 	"addmisc=setenv bootargs ${bootargs} "				\
530764c164SVlad Lungu 		"console=ttyS0,${baudrate} "				\
540764c164SVlad Lungu 		"panic=1\0"						\
550764c164SVlad Lungu 	"bootfile=/tftpboot/vmlinux\0"				\
560764c164SVlad Lungu 	"load=tftp 80500000 ${u-boot}\0"				\
570764c164SVlad Lungu 	""
580764c164SVlad Lungu 
590764c164SVlad Lungu #define CONFIG_BOOTCOMMAND	"bootp;bootelf"
600764c164SVlad Lungu 
610764c164SVlad Lungu 
620764c164SVlad Lungu /*
630764c164SVlad Lungu  * BOOTP options
640764c164SVlad Lungu  */
650764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE
660764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH
670764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY
680764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME
690764c164SVlad Lungu 
700764c164SVlad Lungu 
710764c164SVlad Lungu /*
720764c164SVlad Lungu  * Command line configuration.
730764c164SVlad Lungu  */
740764c164SVlad Lungu #include <config_cmd_default.h>
750764c164SVlad Lungu 
760764c164SVlad Lungu #define CONFIG_CMD_ELF
770764c164SVlad Lungu #define CONFIG_CMD_FAT
780764c164SVlad Lungu #define CONFIG_CMD_EXT2
790764c164SVlad Lungu #undef  CONFIG_CMD_IMLS
800764c164SVlad Lungu #undef  CONFIG_CMD_FLASH
810764c164SVlad Lungu #undef  CONFIG_CMD_LOADB
820764c164SVlad Lungu #undef  CONFIG_CMD_LOADS
830764c164SVlad Lungu #define CONFIG_CMD_DHCP
840764c164SVlad Lungu 
850764c164SVlad Lungu #define CONFIG_DRIVER_NE2000
860764c164SVlad Lungu #define CONFIG_DRIVER_NE2000_BASE	(0xb4000300)
870764c164SVlad Lungu 
880764c164SVlad Lungu #define CFG_NO_FLASH
890764c164SVlad Lungu #define CFG_NS16550
900764c164SVlad Lungu #define CFG_NS16550_SERIAL
910764c164SVlad Lungu #define CFG_NS16550_REG_SIZE    1
920764c164SVlad Lungu #define CFG_NS16550_CLK         115200
930764c164SVlad Lungu #define CFG_NS16550_COM1        (0xb40003f8)
940764c164SVlad Lungu #define CONFIG_CONS_INDEX	1
950764c164SVlad Lungu 
960764c164SVlad Lungu #define CONFIG_CMD_IDE
970764c164SVlad Lungu #define CONFIG_DOS_PARTITION
980764c164SVlad Lungu 
990764c164SVlad Lungu #define CFG_IDE_MAXBUS	2
1000764c164SVlad Lungu #define CFG_ATA_IDE0_OFFSET	(0x1f0)
1010764c164SVlad Lungu #define CFG_ATA_IDE1_OFFSET	(0x170)
1020764c164SVlad Lungu #define CFG_ATA_DATA_OFFSET	(0)
1030764c164SVlad Lungu #define CFG_ATA_REG_OFFSET	(0)
1040764c164SVlad Lungu #define CFG_ATA_BASE_ADDR	(0xb4000000)
1050764c164SVlad Lungu 
1060764c164SVlad Lungu #define CFG_IDE_MAXDEVICE	(4)
1070764c164SVlad Lungu 
1080764c164SVlad Lungu /*
1090764c164SVlad Lungu  * Miscellaneous configurable options
1100764c164SVlad Lungu  */
1110764c164SVlad Lungu #define	CFG_LONGHELP				/* undef to save memory      */
1120764c164SVlad Lungu 
1130764c164SVlad Lungu #define	CFG_PROMPT		"qemu-mips # "	/* Monitor Command Prompt    */
1140764c164SVlad Lungu 
115*bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE
116*bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING
117*bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CFG_HUSH_PARSER
118*bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CFG_PROMPT_HUSH_PS2	"> "
119*bed8ce83SJean-Christophe PLAGNIOL-VILLARD 
1200764c164SVlad Lungu #define	CFG_CBSIZE		256		/* Console I/O Buffer Size   */
1210764c164SVlad Lungu #define	CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
1220764c164SVlad Lungu #define	CFG_MAXARGS		16		/* max number of command args*/
1230764c164SVlad Lungu 
1240764c164SVlad Lungu #define CFG_MALLOC_LEN		128*1024
1250764c164SVlad Lungu 
1260764c164SVlad Lungu #define CFG_BOOTPARAMS_LEN	128*1024
1270764c164SVlad Lungu 
1280764c164SVlad Lungu #define CFG_MHZ			132
1290764c164SVlad Lungu 
1300764c164SVlad Lungu #define CFG_HZ                  (CFG_MHZ * 1000000)
1310764c164SVlad Lungu 
1320764c164SVlad Lungu #define CFG_SDRAM_BASE		0x80000000     /* Cached addr */
1330764c164SVlad Lungu 
1340764c164SVlad Lungu #define	CFG_LOAD_ADDR		0x81000000     /* default load address	*/
1350764c164SVlad Lungu 
1360764c164SVlad Lungu #define CFG_MEMTEST_START	0x80100000
1370764c164SVlad Lungu #define CFG_MEMTEST_END		0x80800000
1380764c164SVlad Lungu 
1390764c164SVlad Lungu /*-----------------------------------------------------------------------
1400764c164SVlad Lungu  * FLASH and environment organization
1410764c164SVlad Lungu  */
1420764c164SVlad Lungu 
1430764c164SVlad Lungu /* The following #defines are needed to get flash environment right */
1440764c164SVlad Lungu #define	CFG_MONITOR_BASE	TEXT_BASE
1450764c164SVlad Lungu #define	CFG_MONITOR_LEN		(192 << 10)
1460764c164SVlad Lungu 
1470764c164SVlad Lungu #define CFG_INIT_SP_OFFSET	0x400000
1480764c164SVlad Lungu 
1490764c164SVlad Lungu /* We boot from this flash, selected with dip switch */
1500764c164SVlad Lungu #define CFG_FLASH_BASE		0xbfc00000
1510764c164SVlad Lungu 
1520764c164SVlad Lungu #define	CFG_ENV_IS_NOWHERE	1
1530764c164SVlad Lungu 
1540764c164SVlad Lungu /* Address and size of Primary Environment Sector	*/
1550764c164SVlad Lungu #define CFG_ENV_SIZE		0x10000
1560764c164SVlad Lungu #undef CONFIG_NET_MULTI
1570764c164SVlad Lungu 
1580764c164SVlad Lungu #define MEM_SIZE 128
1590764c164SVlad Lungu 
1600764c164SVlad Lungu #undef CONFIG_MEMSIZE_IN_BYTES
1610764c164SVlad Lungu 
1620764c164SVlad Lungu /*-----------------------------------------------------------------------
1630764c164SVlad Lungu  * Cache Configuration
1640764c164SVlad Lungu  */
1650764c164SVlad Lungu #define CFG_DCACHE_SIZE		16384
1660764c164SVlad Lungu #define CFG_ICACHE_SIZE		16384
1670764c164SVlad Lungu #define CFG_CACHELINE_SIZE	32
1680764c164SVlad Lungu 
1690764c164SVlad Lungu #endif	/* __CONFIG_H */
170