2 * (C) Copyright 2003-2005
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
9 * This file contains the configuration parameters for the INCA-IP board.
15 #define CONFIG_INCA_IP 1 /* on a INCA-IP Board */
17 #define CONFIG_XWAY_SWAP_BYTES
20 * Clock for the MIPS core (MHz)
21 * allowed values: 100000000, 133000000, and 150000000 (default)
23 #ifndef CONFIG_CPU_CLOCK_RATE
24 #define CONFIG_CPU_CLOCK_RATE 150000000
27 #define CONFIG_SYS_XWAY_EBU_BOOTCFG 0x40C4 /* CMULT = 8 */
29 #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
31 #define CONFIG_BAUDRATE 115200
33 #define CONFIG_TIMESTAMP /* Print image info with timestamp */
35 #define CONFIG_PREBOOT "echo;" \
36 "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
39 #undef CONFIG_BOOTARGS
41 #define CONFIG_EXTRA_ENV_SETTINGS \
42 "nfsargs=setenv bootargs root=/dev/nfs rw " \
43 "nfsroot=${serverip}:${rootpath}\0" \
44 "ramargs=setenv bootargs root=/dev/ram rw\0" \
45 "addip=setenv bootargs ${bootargs} " \
46 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
47 ":${hostname}:${netdev}:off\0" \
48 "addmisc=setenv bootargs ${bootargs} " \
49 "console=ttyS0,${baudrate} " \
50 "ethaddr=${ethaddr} " \
52 "flash_nfs=run nfsargs addip addmisc;" \
53 "bootm ${kernel_addr}\0" \
54 "flash_self=run ramargs addip addmisc;" \
55 "bootm ${kernel_addr} ${ramdisk_addr}\0" \
56 "net_nfs=tftp 80500000 ${bootfile};" \
57 "run nfsargs addip addmisc;bootm\0" \
58 "rootpath=/opt/eldk/mips_4KC\0" \
59 "bootfile=/tftpboot/INCA/uImage\0" \
60 "kernel_addr=B0040000\0" \
61 "ramdisk_addr=B0100000\0" \
62 "u-boot=/tftpboot/INCA/u-boot.bin\0" \
63 "load=tftp 80500000 ${u-boot}\0" \
64 "update=protect off 1:0-2;era 1:0-2;" \
65 "cp.b 80500000 B0000000 ${filesize}\0" \
67 #define CONFIG_BOOTCOMMAND "run flash_self"
73 #define CONFIG_BOOTP_BOOTFILESIZE
74 #define CONFIG_BOOTP_BOOTPATH
75 #define CONFIG_BOOTP_GATEWAY
76 #define CONFIG_BOOTP_HOSTNAME
80 * Command line configuration.
82 #include <config_cmd_default.h>
84 #define CONFIG_CMD_ASKENV
85 #define CONFIG_CMD_DHCP
86 #define CONFIG_CMD_ELF
87 #define CONFIG_CMD_JFFS2
88 #define CONFIG_CMD_NFS
89 #define CONFIG_CMD_PING
90 #define CONFIG_CMD_SNTP
94 * Miscellaneous configurable options
96 #define CONFIG_SYS_LONGHELP /* undef to save memory */
97 #define CONFIG_SYS_PROMPT "INCA-IP # " /* Monitor Command Prompt */
98 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
99 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
100 #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
102 #define CONFIG_SYS_MALLOC_LEN 128*1024
104 #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024
106 #define CONFIG_SYS_MIPS_TIMER_FREQ (incaip_get_cpuclk() / 2)
108 #define CONFIG_SYS_SDRAM_BASE 0x80000000
110 #define CONFIG_SYS_LOAD_ADDR 0x80100000 /* default load address */
112 #define CONFIG_SYS_MEMTEST_START 0x80100000
113 #define CONFIG_SYS_MEMTEST_END 0x80800000
115 /*-----------------------------------------------------------------------
116 * FLASH and environment organization
118 #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */
119 #define CONFIG_SYS_MAX_FLASH_SECT (128) /* max number of sectors on one chip */
121 #define PHYS_FLASH_1 0xb0000000 /* Flash Bank #1 */
122 #define PHYS_FLASH_2 0xb0800000 /* Flash Bank #2 */
124 /* The following #defines are needed to get flash environment right */
125 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
126 #define CONFIG_SYS_MONITOR_LEN (192 << 10)
128 #define CONFIG_SYS_INIT_SP_OFFSET 0x400000
130 #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
132 /* timeout values are in ticks */
133 #define CONFIG_SYS_FLASH_ERASE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
134 #define CONFIG_SYS_FLASH_WRITE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
136 #define CONFIG_ENV_IS_IN_FLASH 1
138 /* Address and size of Primary Environment Sector */
139 #define CONFIG_ENV_ADDR 0xB0030000
140 #define CONFIG_ENV_SIZE 0x10000
142 #define CONFIG_FLASH_16BIT
144 #define CONFIG_NR_DRAM_BANKS 1
146 #define CONFIG_INCA_IP_SWITCH
147 #define CONFIG_INCA_IP_SWITCH_AMDIX
152 /* No command line, one static partition, use all space on the device */
153 #undef CONFIG_CMD_MTDPARTS
154 #define CONFIG_JFFS2_DEV "nor1"
155 #define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
156 #define CONFIG_JFFS2_PART_OFFSET 0x00000000
158 /* mtdparts command line support */
160 #define CONFIG_CMD_MTDPARTS
161 #define MTDIDS_DEFAULT "nor0=INCA-IP Bank 0"
162 #define MTDPARTS_DEFAULT "mtdparts=INCA-IP Bank 0:192k(uboot)," \
170 /*-----------------------------------------------------------------------
171 * Cache Configuration
173 #define CONFIG_SYS_DCACHE_SIZE 4096
174 #define CONFIG_SYS_ICACHE_SIZE 4096
175 #define CONFIG_SYS_CACHELINE_SIZE 16
177 #endif /* __CONFIG_H */