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 17bdb53cf0SDaniel Schwierzeck #define CONFIG_DISPLAY_BOARDINFO 180764c164SVlad Lungu #define CONFIG_MISC_INIT_R 190764c164SVlad Lungu 200764c164SVlad Lungu #define CONFIG_BOOTDELAY 10 /* autoboot after 10 seconds */ 210764c164SVlad Lungu 220764c164SVlad Lungu #define CONFIG_BAUDRATE 115200 230764c164SVlad Lungu 240764c164SVlad Lungu #define CONFIG_TIMESTAMP /* Print image info with timestamp */ 250764c164SVlad Lungu #undef CONFIG_BOOTARGS 260764c164SVlad Lungu 270764c164SVlad Lungu #define CONFIG_EXTRA_ENV_SETTINGS \ 280764c164SVlad Lungu "addmisc=setenv bootargs ${bootargs} " \ 290764c164SVlad Lungu "console=ttyS0,${baudrate} " \ 300764c164SVlad Lungu "panic=1\0" \ 310764c164SVlad Lungu "bootfile=/tftpboot/vmlinux\0" \ 320764c164SVlad Lungu "load=tftp 80500000 ${u-boot}\0" \ 330764c164SVlad Lungu "" 340764c164SVlad Lungu 350764c164SVlad Lungu #define CONFIG_BOOTCOMMAND "bootp;bootelf" 360764c164SVlad Lungu 370764c164SVlad Lungu /* 380764c164SVlad Lungu * BOOTP options 390764c164SVlad Lungu */ 400764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE 410764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH 420764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY 430764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME 440764c164SVlad Lungu 450764c164SVlad Lungu /* 460764c164SVlad Lungu * Command line configuration. 470764c164SVlad Lungu */ 480764c164SVlad Lungu 490764c164SVlad Lungu #define CONFIG_DRIVER_NE2000 506b2eba1bSDaniel Schwierzeck #define CONFIG_DRIVER_NE2000_BASE 0xb4000300 510764c164SVlad Lungu 526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK 115200 556b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_NS16550_COM1 0xb40003f8 560764c164SVlad Lungu #define CONFIG_CONS_INDEX 1 570764c164SVlad Lungu 580764c164SVlad Lungu #define CONFIG_CMD_IDE 590764c164SVlad Lungu #define CONFIG_DOS_PARTITION 600764c164SVlad Lungu 61*713a9e15SStanislav Galabov #ifdef CONFIG_SYS_BIG_ENDIAN 62*713a9e15SStanislav Galabov #define CONFIG_IDE_SWAP_IO 63*713a9e15SStanislav Galabov #endif 64*713a9e15SStanislav Galabov 656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 2 666b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 676b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 686b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_DATA_OFFSET 0 696b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_REG_OFFSET 0 706b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_BASE_ADDR 0xb4000000 710764c164SVlad Lungu 726b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_IDE_MAXDEVICE 4 730764c164SVlad Lungu 740764c164SVlad Lungu /* 750764c164SVlad Lungu * Miscellaneous configurable options 760764c164SVlad Lungu */ 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 780764c164SVlad Lungu 79bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE 80bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING 81bed8ce83SJean-Christophe PLAGNIOL-VILLARD 826b2eba1bSDaniel Schwierzeck /* Console I/O Buffer Size */ 836b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_CBSIZE 256 846b2eba1bSDaniel Schwierzeck /* Print Buffer Size */ 856b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 866b2eba1bSDaniel Schwierzeck /* max number of command args */ 876b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_MAXARGS 16 880764c164SVlad Lungu 896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN 128*1024 900764c164SVlad Lungu 916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024 920764c164SVlad Lungu 936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MHZ 132 940764c164SVlad Lungu 956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) 96a55d4817SShinya Kuribayashi 976b2eba1bSDaniel Schwierzeck /* Cached addr */ 986b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_SDRAM_BASE 0x80000000 990764c164SVlad Lungu 1006b2eba1bSDaniel Schwierzeck /* default load address */ 1016b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_LOAD_ADDR 0x81000000 1020764c164SVlad Lungu 1036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x80100000 1046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x80800000 1050764c164SVlad Lungu 1060764c164SVlad Lungu /*----------------------------------------------------------------------- 1070764c164SVlad Lungu * FLASH and environment organization 1080764c164SVlad Lungu */ 1090764c164SVlad Lungu /* The following #defines are needed to get flash environment right */ 110ff9b0cb8SZhi-zhou Zhang #define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */ 11114d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (192 << 10) 1130764c164SVlad Lungu 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 1150764c164SVlad Lungu 1160764c164SVlad Lungu /* We boot from this flash, selected with dip switch */ 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xbfc00000 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 1196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 128 1206b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_CFI 1216b2eba1bSDaniel Schwierzeck #define CONFIG_FLASH_CFI_DRIVER 1226b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1230764c164SVlad Lungu 1246b2eba1bSDaniel Schwierzeck #define CONFIG_ENV_IS_IN_FLASH 12513095b2fSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 1260764c164SVlad Lungu 1270764c164SVlad Lungu /* Address and size of Primary Environment Sector */ 1280e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x8000 129b4aff1ffSJean-Christophe PLAGNIOL-VILLARD 130b4aff1ffSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_OVERWRITE 1 1318875e3abSShinya Kuribayashi 1320764c164SVlad Lungu #define MEM_SIZE 128 1330764c164SVlad Lungu 134caf72ff3SLuigi 'Comio' Mantellini #define CONFIG_LZMA 135caf72ff3SLuigi 'Comio' Mantellini 1360764c164SVlad Lungu /*----------------------------------------------------------------------- 1370764c164SVlad Lungu * Cache Configuration 1380764c164SVlad Lungu */ 1396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DCACHE_SIZE 16384 1406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ICACHE_SIZE 16384 1416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CACHELINE_SIZE 32 1420764c164SVlad Lungu 1430764c164SVlad Lungu #endif /* __CONFIG_H */ 144