xref: /rk3399_rockchip-uboot/include/configs/qemu-mips.h (revision 1967228b028b5ddf0b0b41806e5bd10e49e836a6)
10764c164SVlad Lungu /*
20764c164SVlad Lungu  * (C) Copyright 2003
30764c164SVlad Lungu  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
40764c164SVlad Lungu  *
51a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
60764c164SVlad Lungu  */
70764c164SVlad Lungu 
80764c164SVlad Lungu /*
98875e3abSShinya Kuribayashi  * This file contains the configuration parameters for qemu-mips target.
100764c164SVlad Lungu  */
110764c164SVlad Lungu 
120764c164SVlad Lungu #ifndef __CONFIG_H
130764c164SVlad Lungu #define __CONFIG_H
140764c164SVlad Lungu 
156b2eba1bSDaniel Schwierzeck #define CONFIG_QEMU_MIPS
16bdb53cf0SDaniel Schwierzeck 
170764c164SVlad Lungu #define CONFIG_MISC_INIT_R
180764c164SVlad Lungu 
190764c164SVlad Lungu #define CONFIG_TIMESTAMP		/* Print image info with timestamp */
200764c164SVlad Lungu #undef CONFIG_BOOTARGS
210764c164SVlad Lungu 
220764c164SVlad Lungu #define CONFIG_EXTRA_ENV_SETTINGS					\
230764c164SVlad Lungu 	"addmisc=setenv bootargs ${bootargs} "				\
240764c164SVlad Lungu 		"console=ttyS0,${baudrate} "				\
250764c164SVlad Lungu 		"panic=1\0"						\
260764c164SVlad Lungu 	"bootfile=/tftpboot/vmlinux\0"				\
270764c164SVlad Lungu 	"load=tftp 80500000 ${u-boot}\0"				\
280764c164SVlad Lungu 	""
290764c164SVlad Lungu 
300764c164SVlad Lungu #define CONFIG_BOOTCOMMAND	"bootp;bootelf"
310764c164SVlad Lungu 
320764c164SVlad Lungu /*
330764c164SVlad Lungu  * BOOTP options
340764c164SVlad Lungu  */
350764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE
360764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH
370764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY
380764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME
390764c164SVlad Lungu 
400764c164SVlad Lungu /*
410764c164SVlad Lungu  * Command line configuration.
420764c164SVlad Lungu  */
430764c164SVlad Lungu 
440764c164SVlad Lungu #define CONFIG_DRIVER_NE2000
456b2eba1bSDaniel Schwierzeck #define CONFIG_DRIVER_NE2000_BASE	0xb4000300
460764c164SVlad Lungu 
476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL
486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE	1
496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK		115200
506b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_NS16550_COM1		0xb40003f8
510764c164SVlad Lungu #define CONFIG_CONS_INDEX		1
520764c164SVlad Lungu 
530764c164SVlad Lungu #define CONFIG_CMD_IDE
540764c164SVlad Lungu 
55713a9e15SStanislav Galabov #ifdef CONFIG_SYS_BIG_ENDIAN
56713a9e15SStanislav Galabov #define CONFIG_IDE_SWAP_IO
57713a9e15SStanislav Galabov #endif
58713a9e15SStanislav Galabov 
596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS		2
606b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE0_OFFSET	0x1f0
616b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE1_OFFSET	0x170
626b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_DATA_OFFSET	0
636b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_REG_OFFSET	0
646b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_BASE_ADDR	0xb4000000
650764c164SVlad Lungu 
666b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_IDE_MAXDEVICE	4
670764c164SVlad Lungu 
680764c164SVlad Lungu /*
690764c164SVlad Lungu  * Miscellaneous configurable options
700764c164SVlad Lungu  */
716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP		/* undef to save memory */
720764c164SVlad Lungu 
73bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE
74bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING
75bed8ce83SJean-Christophe PLAGNIOL-VILLARD 
766b2eba1bSDaniel Schwierzeck /* Console I/O Buffer Size */
776b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_CBSIZE		256
786b2eba1bSDaniel Schwierzeck /* Print Buffer Size */
796b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
806b2eba1bSDaniel Schwierzeck /* max number of command args */
816b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_MAXARGS		16
820764c164SVlad Lungu 
83*1967228bSKyle Edwards #define CONFIG_SYS_MALLOC_LEN		(256 << 10)
840764c164SVlad Lungu 
856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTPARAMS_LEN	128*1024
860764c164SVlad Lungu 
876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MHZ			132
880764c164SVlad Lungu 
896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MIPS_TIMER_FREQ	(CONFIG_SYS_MHZ * 1000000)
90a55d4817SShinya Kuribayashi 
916b2eba1bSDaniel Schwierzeck /* Cached addr */
926b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_SDRAM_BASE		0x80000000
930764c164SVlad Lungu 
946b2eba1bSDaniel Schwierzeck /* default load address */
956b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_LOAD_ADDR		0x81000000
960764c164SVlad Lungu 
976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START	0x80100000
986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END		0x80800000
990764c164SVlad Lungu 
1000764c164SVlad Lungu /*-----------------------------------------------------------------------
1010764c164SVlad Lungu  * FLASH and environment organization
1020764c164SVlad Lungu  */
1030764c164SVlad Lungu /* The following #defines are needed to get flash environment right */
10414d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_TEXT_BASE
1050764c164SVlad Lungu 
1066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET	0x400000
1070764c164SVlad Lungu 
1080764c164SVlad Lungu /* We boot from this flash, selected with dip switch */
1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE		0xbfc00000
1106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS	1
1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT	128
1126b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_CFI
1136b2eba1bSDaniel Schwierzeck #define CONFIG_FLASH_CFI_DRIVER
1146b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
1150764c164SVlad Lungu 
1166b2eba1bSDaniel Schwierzeck #define CONFIG_ENV_IS_IN_FLASH
1170764c164SVlad Lungu 
1180764c164SVlad Lungu /* Address and size of Primary Environment Sector */
1190e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE		0x8000
1209828d050SKyle Edwards #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + (4 << 20) - CONFIG_ENV_SIZE)
121b4aff1ffSJean-Christophe PLAGNIOL-VILLARD 
122b4aff1ffSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_OVERWRITE	1
1238875e3abSShinya Kuribayashi 
1240764c164SVlad Lungu #define MEM_SIZE		128
1250764c164SVlad Lungu 
126caf72ff3SLuigi 'Comio' Mantellini #define CONFIG_LZMA
127caf72ff3SLuigi 'Comio' Mantellini 
1280764c164SVlad Lungu #endif /* __CONFIG_H */
129