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 16*bdb53cf0SDaniel Schwierzeck 17*bdb53cf0SDaniel Schwierzeck #define CONFIG_SYS_GENERIC_BOARD 18*bdb53cf0SDaniel Schwierzeck #define CONFIG_DISPLAY_BOARDINFO 190764c164SVlad Lungu #define CONFIG_MISC_INIT_R 200764c164SVlad Lungu 210764c164SVlad Lungu #define CONFIG_BOOTDELAY 10 /* autoboot after 10 seconds */ 220764c164SVlad Lungu 230764c164SVlad Lungu #define CONFIG_BAUDRATE 115200 240764c164SVlad Lungu 250764c164SVlad Lungu #define CONFIG_TIMESTAMP /* Print image info with timestamp */ 260764c164SVlad Lungu #undef CONFIG_BOOTARGS 270764c164SVlad Lungu 280764c164SVlad Lungu #define CONFIG_EXTRA_ENV_SETTINGS \ 290764c164SVlad Lungu "addmisc=setenv bootargs ${bootargs} " \ 300764c164SVlad Lungu "console=ttyS0,${baudrate} " \ 310764c164SVlad Lungu "panic=1\0" \ 320764c164SVlad Lungu "bootfile=/tftpboot/vmlinux\0" \ 330764c164SVlad Lungu "load=tftp 80500000 ${u-boot}\0" \ 340764c164SVlad Lungu "" 350764c164SVlad Lungu 360764c164SVlad Lungu #define CONFIG_BOOTCOMMAND "bootp;bootelf" 370764c164SVlad Lungu 380764c164SVlad Lungu /* 390764c164SVlad Lungu * BOOTP options 400764c164SVlad Lungu */ 410764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE 420764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH 430764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY 440764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME 450764c164SVlad Lungu 460764c164SVlad Lungu /* 470764c164SVlad Lungu * Command line configuration. 480764c164SVlad Lungu */ 490764c164SVlad Lungu #include <config_cmd_default.h> 500764c164SVlad Lungu 510764c164SVlad Lungu #define CONFIG_CMD_ELF 520764c164SVlad Lungu #define CONFIG_CMD_FAT 530764c164SVlad Lungu #define CONFIG_CMD_EXT2 540764c164SVlad Lungu #undef CONFIG_CMD_LOADB 550764c164SVlad Lungu #undef CONFIG_CMD_LOADS 560764c164SVlad Lungu #define CONFIG_CMD_DHCP 570764c164SVlad Lungu 580764c164SVlad Lungu #define CONFIG_DRIVER_NE2000 596b2eba1bSDaniel Schwierzeck #define CONFIG_DRIVER_NE2000_BASE 0xb4000300 600764c164SVlad Lungu 616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK 115200 656b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_NS16550_COM1 0xb40003f8 660764c164SVlad Lungu #define CONFIG_CONS_INDEX 1 670764c164SVlad Lungu 680764c164SVlad Lungu #define CONFIG_CMD_IDE 690764c164SVlad Lungu #define CONFIG_DOS_PARTITION 700764c164SVlad Lungu 716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 2 726b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 736b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 746b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_DATA_OFFSET 0 756b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_REG_OFFSET 0 766b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_BASE_ADDR 0xb4000000 770764c164SVlad Lungu 786b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_IDE_MAXDEVICE 4 790764c164SVlad Lungu 800764c164SVlad Lungu /* 810764c164SVlad Lungu * Miscellaneous configurable options 820764c164SVlad Lungu */ 836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 840764c164SVlad Lungu 85748fd4a6SDaniel Schwierzeck /* Monitor Command Prompt */ 86748fd4a6SDaniel Schwierzeck #if defined(CONFIG_SYS_LITTLE_ENDIAN) 87748fd4a6SDaniel Schwierzeck #define CONFIG_SYS_PROMPT "qemu-mipsel # " 88748fd4a6SDaniel Schwierzeck #else 89748fd4a6SDaniel Schwierzeck #define CONFIG_SYS_PROMPT "qemu-mips # " 90748fd4a6SDaniel Schwierzeck #endif 910764c164SVlad Lungu 92bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE 93bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING 946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 95bed8ce83SJean-Christophe PLAGNIOL-VILLARD 966b2eba1bSDaniel Schwierzeck /* Console I/O Buffer Size */ 976b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_CBSIZE 256 986b2eba1bSDaniel Schwierzeck /* Print Buffer Size */ 996b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 1006b2eba1bSDaniel Schwierzeck /* max number of command args */ 1016b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_MAXARGS 16 1020764c164SVlad Lungu 1036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN 128*1024 1040764c164SVlad Lungu 1056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024 1060764c164SVlad Lungu 1076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MHZ 132 1080764c164SVlad Lungu 1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) 110a55d4817SShinya Kuribayashi 1116b2eba1bSDaniel Schwierzeck /* Cached addr */ 1126b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_SDRAM_BASE 0x80000000 1130764c164SVlad Lungu 1146b2eba1bSDaniel Schwierzeck /* default load address */ 1156b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_LOAD_ADDR 0x81000000 1160764c164SVlad Lungu 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x80100000 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x80800000 1190764c164SVlad Lungu 1200764c164SVlad Lungu /*----------------------------------------------------------------------- 1210764c164SVlad Lungu * FLASH and environment organization 1220764c164SVlad Lungu */ 1230764c164SVlad Lungu /* The following #defines are needed to get flash environment right */ 124ff9b0cb8SZhi-zhou Zhang #define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */ 12514d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 1266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (192 << 10) 1270764c164SVlad Lungu 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 1290764c164SVlad Lungu 1300764c164SVlad Lungu /* We boot from this flash, selected with dip switch */ 1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xbfc00000 1326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 128 1346b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_CFI 1356b2eba1bSDaniel Schwierzeck #define CONFIG_FLASH_CFI_DRIVER 1366b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1370764c164SVlad Lungu 1386b2eba1bSDaniel Schwierzeck #define CONFIG_ENV_IS_IN_FLASH 13913095b2fSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 1400764c164SVlad Lungu 1410764c164SVlad Lungu /* Address and size of Primary Environment Sector */ 1420e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x8000 143b4aff1ffSJean-Christophe PLAGNIOL-VILLARD 144b4aff1ffSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_OVERWRITE 1 1458875e3abSShinya Kuribayashi 1460764c164SVlad Lungu #define MEM_SIZE 128 1470764c164SVlad Lungu 148caf72ff3SLuigi 'Comio' Mantellini #define CONFIG_LZMA 149caf72ff3SLuigi 'Comio' Mantellini 1500764c164SVlad Lungu /*----------------------------------------------------------------------- 1510764c164SVlad Lungu * Cache Configuration 1520764c164SVlad Lungu */ 1536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DCACHE_SIZE 16384 1546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ICACHE_SIZE 16384 1556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CACHELINE_SIZE 32 1560764c164SVlad Lungu 1570764c164SVlad Lungu #endif /* __CONFIG_H */ 158