1*7a9d109bSPaul Burton /* 2*7a9d109bSPaul Burton * Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org> 3*7a9d109bSPaul Burton * 4*7a9d109bSPaul Burton * SPDX-License-Identifier: GPL-2.0 5*7a9d109bSPaul Burton */ 6*7a9d109bSPaul Burton 7*7a9d109bSPaul Burton #ifndef _MALTA_CONFIG_H 8*7a9d109bSPaul Burton #define _MALTA_CONFIG_H 9*7a9d109bSPaul Burton 10*7a9d109bSPaul Burton #include <asm/addrspace.h> 11*7a9d109bSPaul Burton #include <asm/malta.h> 12*7a9d109bSPaul Burton 13*7a9d109bSPaul Burton /* 14*7a9d109bSPaul Burton * System configuration 15*7a9d109bSPaul Burton */ 16*7a9d109bSPaul Burton #define CONFIG_MALTA 17*7a9d109bSPaul Burton 18*7a9d109bSPaul Burton #define CONFIG_PCI 19*7a9d109bSPaul Burton #define CONFIG_PCI_GT64120 20*7a9d109bSPaul Burton #define CONFIG_PCI_PNP 21*7a9d109bSPaul Burton #define CONFIG_PCNET 22*7a9d109bSPaul Burton 23*7a9d109bSPaul Burton /* 24*7a9d109bSPaul Burton * CPU Configuration 25*7a9d109bSPaul Burton */ 26*7a9d109bSPaul Burton #define CONFIG_SYS_MHZ 250 /* arbitrary value */ 27*7a9d109bSPaul Burton #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) 28*7a9d109bSPaul Burton 29*7a9d109bSPaul Burton #define CONFIG_SYS_DCACHE_SIZE 16384 /* arbitrary value */ 30*7a9d109bSPaul Burton #define CONFIG_SYS_ICACHE_SIZE 16384 /* arbitrary value */ 31*7a9d109bSPaul Burton #define CONFIG_SYS_CACHELINE_SIZE 32 /* arbitrary value */ 32*7a9d109bSPaul Burton 33*7a9d109bSPaul Burton #define CONFIG_SWAP_IO_SPACE 34*7a9d109bSPaul Burton 35*7a9d109bSPaul Burton /* 36*7a9d109bSPaul Burton * Memory map 37*7a9d109bSPaul Burton */ 38*7a9d109bSPaul Burton #define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */ 39*7a9d109bSPaul Burton #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE 40*7a9d109bSPaul Burton 41*7a9d109bSPaul Burton #define CONFIG_SYS_SDRAM_BASE 0x80000000 /* Cached addr */ 42*7a9d109bSPaul Burton #define CONFIG_SYS_MEM_SIZE (256 * 1024 * 1024) 43*7a9d109bSPaul Burton 44*7a9d109bSPaul Burton #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 45*7a9d109bSPaul Burton 46*7a9d109bSPaul Burton #define CONFIG_SYS_LOAD_ADDR 0x81000000 47*7a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_START 0x80100000 48*7a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_END 0x80800000 49*7a9d109bSPaul Burton 50*7a9d109bSPaul Burton #define CONFIG_SYS_MALLOC_LEN (128 * 1024) 51*7a9d109bSPaul Burton #define CONFIG_SYS_BOOTPARAMS_LEN (128 * 1024) 52*7a9d109bSPaul Burton 53*7a9d109bSPaul Burton /* 54*7a9d109bSPaul Burton * Console configuration 55*7a9d109bSPaul Burton */ 56*7a9d109bSPaul Burton #if defined(CONFIG_SYS_LITTLE_ENDIAN) 57*7a9d109bSPaul Burton #define CONFIG_SYS_PROMPT "maltael # " 58*7a9d109bSPaul Burton #else 59*7a9d109bSPaul Burton #define CONFIG_SYS_PROMPT "malta # " 60*7a9d109bSPaul Burton #endif 61*7a9d109bSPaul Burton 62*7a9d109bSPaul Burton #define CONFIG_SYS_CBSIZE 256 63*7a9d109bSPaul Burton #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 64*7a9d109bSPaul Burton sizeof(CONFIG_SYS_PROMPT) + 16) 65*7a9d109bSPaul Burton #define CONFIG_SYS_MAXARGS 16 66*7a9d109bSPaul Burton 67*7a9d109bSPaul Burton #define CONFIG_AUTO_COMPLETE 68*7a9d109bSPaul Burton #define CONFIG_CMDLINE_EDITING 69*7a9d109bSPaul Burton 70*7a9d109bSPaul Burton /* 71*7a9d109bSPaul Burton * Serial driver 72*7a9d109bSPaul Burton */ 73*7a9d109bSPaul Burton #define CONFIG_BAUDRATE 115200 74*7a9d109bSPaul Burton 75*7a9d109bSPaul Burton #define CONFIG_SYS_NS16550 76*7a9d109bSPaul Burton #define CONFIG_SYS_NS16550_SERIAL 77*7a9d109bSPaul Burton #define CONFIG_SYS_NS16550_REG_SIZE 1 78*7a9d109bSPaul Burton #define CONFIG_SYS_NS16550_CLK 115200 79*7a9d109bSPaul Burton #define CONFIG_SYS_NS16550_COM1 CKSEG1ADDR(MALTA_UART_BASE) 80*7a9d109bSPaul Burton #define CONFIG_CONS_INDEX 1 81*7a9d109bSPaul Burton 82*7a9d109bSPaul Burton /* 83*7a9d109bSPaul Burton * Environment 84*7a9d109bSPaul Burton */ 85*7a9d109bSPaul Burton #define CONFIG_ENV_IS_NOWHERE 86*7a9d109bSPaul Burton #define CONFIG_ENV_SIZE 0x10000 87*7a9d109bSPaul Burton 88*7a9d109bSPaul Burton /* 89*7a9d109bSPaul Burton * Flash configuration 90*7a9d109bSPaul Burton */ 91*7a9d109bSPaul Burton #define CONFIG_SYS_FLASH_BASE (KSEG1 | MALTA_FLASH_BASE) 92*7a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_BANKS 1 93*7a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_SECT 128 94*7a9d109bSPaul Burton #define CONFIG_SYS_FLASH_CFI 95*7a9d109bSPaul Burton #define CONFIG_FLASH_CFI_DRIVER 96*7a9d109bSPaul Burton #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 97*7a9d109bSPaul Burton 98*7a9d109bSPaul Burton /* 99*7a9d109bSPaul Burton * Commands 100*7a9d109bSPaul Burton */ 101*7a9d109bSPaul Burton #include <config_cmd_default.h> 102*7a9d109bSPaul Burton 103*7a9d109bSPaul Burton #undef CONFIG_CMD_FPGA 104*7a9d109bSPaul Burton #undef CONFIG_CMD_LOADB 105*7a9d109bSPaul Burton #undef CONFIG_CMD_LOADS 106*7a9d109bSPaul Burton #undef CONFIG_CMD_NFS 107*7a9d109bSPaul Burton 108*7a9d109bSPaul Burton #define CONFIG_CMD_PCI 109*7a9d109bSPaul Burton #define CONFIG_CMD_PING 110*7a9d109bSPaul Burton 111*7a9d109bSPaul Burton #define CONFIG_SYS_LONGHELP /* verbose help, undef to save memory */ 112*7a9d109bSPaul Burton 113*7a9d109bSPaul Burton #endif /* _MALTA_CONFIG_H */ 114