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 210764c164SVlad Lungu #define CONFIG_EXTRA_ENV_SETTINGS \ 220764c164SVlad Lungu "addmisc=setenv bootargs ${bootargs} " \ 230764c164SVlad Lungu "console=ttyS0,${baudrate} " \ 240764c164SVlad Lungu "panic=1\0" \ 250764c164SVlad Lungu "bootfile=/tftpboot/vmlinux\0" \ 260764c164SVlad Lungu "load=tftp 80500000 ${u-boot}\0" \ 270764c164SVlad Lungu "" 280764c164SVlad Lungu 290764c164SVlad Lungu #define CONFIG_BOOTCOMMAND "bootp;bootelf" 300764c164SVlad Lungu 310764c164SVlad Lungu /* 320764c164SVlad Lungu * BOOTP options 330764c164SVlad Lungu */ 340764c164SVlad Lungu #define CONFIG_BOOTP_BOOTFILESIZE 350764c164SVlad Lungu #define CONFIG_BOOTP_BOOTPATH 360764c164SVlad Lungu #define CONFIG_BOOTP_GATEWAY 370764c164SVlad Lungu #define CONFIG_BOOTP_HOSTNAME 380764c164SVlad Lungu 390764c164SVlad Lungu /* 400764c164SVlad Lungu * Command line configuration. 410764c164SVlad Lungu */ 420764c164SVlad Lungu 430764c164SVlad Lungu #define CONFIG_DRIVER_NE2000 446b2eba1bSDaniel Schwierzeck #define CONFIG_DRIVER_NE2000_BASE 0xb4000300 450764c164SVlad Lungu 466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK 115200 496b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_NS16550_COM1 0xb40003f8 500764c164SVlad Lungu #define CONFIG_CONS_INDEX 1 510764c164SVlad Lungu 52713a9e15SStanislav Galabov #ifdef CONFIG_SYS_BIG_ENDIAN 53713a9e15SStanislav Galabov #define CONFIG_IDE_SWAP_IO 54713a9e15SStanislav Galabov #endif 55713a9e15SStanislav Galabov 566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 2 576b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 586b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 596b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_DATA_OFFSET 0 606b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_REG_OFFSET 0 616b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_ATA_BASE_ADDR 0xb4000000 620764c164SVlad Lungu 636b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_IDE_MAXDEVICE 4 640764c164SVlad Lungu 650764c164SVlad Lungu /* 660764c164SVlad Lungu * Miscellaneous configurable options 670764c164SVlad Lungu */ 686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 690764c164SVlad Lungu 70bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AUTO_COMPLETE 71bed8ce83SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_CMDLINE_EDITING 72bed8ce83SJean-Christophe PLAGNIOL-VILLARD 73*1967228bSKyle Edwards #define CONFIG_SYS_MALLOC_LEN (256 << 10) 740764c164SVlad Lungu 756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024 760764c164SVlad Lungu 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MHZ 132 780764c164SVlad Lungu 796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) 80a55d4817SShinya Kuribayashi 816b2eba1bSDaniel Schwierzeck /* Cached addr */ 826b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_SDRAM_BASE 0x80000000 830764c164SVlad Lungu 846b2eba1bSDaniel Schwierzeck /* default load address */ 856b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_LOAD_ADDR 0x81000000 860764c164SVlad Lungu 876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x80100000 886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x80800000 890764c164SVlad Lungu 900764c164SVlad Lungu /*----------------------------------------------------------------------- 910764c164SVlad Lungu * FLASH and environment organization 920764c164SVlad Lungu */ 930764c164SVlad Lungu /* The following #defines are needed to get flash environment right */ 9414d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 950764c164SVlad Lungu 966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 970764c164SVlad Lungu 980764c164SVlad Lungu /* We boot from this flash, selected with dip switch */ 996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xbfc00000 1006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 1016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 128 1026b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_CFI 1036b2eba1bSDaniel Schwierzeck #define CONFIG_FLASH_CFI_DRIVER 1046b2eba1bSDaniel Schwierzeck #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1050764c164SVlad Lungu 1060764c164SVlad Lungu /* Address and size of Primary Environment Sector */ 1070e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x8000 1089828d050SKyle Edwards #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (4 << 20) - CONFIG_ENV_SIZE) 109b4aff1ffSJean-Christophe PLAGNIOL-VILLARD 110b4aff1ffSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_OVERWRITE 1 1118875e3abSShinya Kuribayashi 1120764c164SVlad Lungu #define MEM_SIZE 128 1130764c164SVlad Lungu 1140764c164SVlad Lungu #endif /* __CONFIG_H */ 115