]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/incaip.h
at91: enable USB ethernet for taskit stamp9g20
[karo-tx-uboot.git] / include / configs / incaip.h
1 /*
2  * (C) Copyright 2003-2005
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 /*
9  * This file contains the configuration parameters for the INCA-IP board.
10  */
11
12 #ifndef __CONFIG_H
13 #define __CONFIG_H
14
15 #define CONFIG_INCA_IP          1       /* on a INCA-IP Board   */
16
17 #define CONFIG_XWAY_SWAP_BYTES
18
19 /*
20  * Clock for the MIPS core (MHz)
21  * allowed values: 100000000, 133000000, and 150000000 (default)
22  */
23 #ifndef CONFIG_CPU_CLOCK_RATE
24 #define CONFIG_CPU_CLOCK_RATE   150000000
25 #endif
26
27 #define CONFIG_SYS_XWAY_EBU_BOOTCFG     0x40C4  /* CMULT = 8 */
28
29 #define CONFIG_BOOTDELAY        5       /* autoboot after 5 seconds     */
30
31 #define CONFIG_BAUDRATE         115200
32
33 #define CONFIG_TIMESTAMP                /* Print image info with timestamp */
34
35 #define CONFIG_PREBOOT  "echo;" \
36         "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
37         "echo"
38
39 #undef  CONFIG_BOOTARGS
40
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} "                                   \
51                 "panic=1\0"                                             \
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"                  \
66         ""
67 #define CONFIG_BOOTCOMMAND      "run flash_self"
68
69
70 /*
71  * BOOTP options
72  */
73 #define CONFIG_BOOTP_BOOTFILESIZE
74 #define CONFIG_BOOTP_BOOTPATH
75 #define CONFIG_BOOTP_GATEWAY
76 #define CONFIG_BOOTP_HOSTNAME
77
78
79 /*
80  * Command line configuration.
81  */
82 #include <config_cmd_default.h>
83
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
91
92
93 /*
94  * Miscellaneous configurable options
95  */
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*/
101
102 #define CONFIG_SYS_MALLOC_LEN           128*1024
103
104 #define CONFIG_SYS_BOOTPARAMS_LEN       128*1024
105
106 #define CONFIG_SYS_MIPS_TIMER_FREQ      (incaip_get_cpuclk() / 2)
107
108 #define CONFIG_SYS_SDRAM_BASE           0x80000000
109
110 #define CONFIG_SYS_LOAD_ADDR            0x80100000      /* default load address */
111
112 #define CONFIG_SYS_MEMTEST_START        0x80100000
113 #define CONFIG_SYS_MEMTEST_END          0x80800000
114
115 /*-----------------------------------------------------------------------
116  * FLASH and environment organization
117  */
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 */
120
121 #define PHYS_FLASH_1            0xb0000000 /* Flash Bank #1 */
122 #define PHYS_FLASH_2            0xb0800000 /* Flash Bank #2 */
123
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)
127
128 #define CONFIG_SYS_INIT_SP_OFFSET       0x400000
129
130 #define CONFIG_SYS_FLASH_BASE           PHYS_FLASH_1
131
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 */
135
136 #define CONFIG_ENV_IS_IN_FLASH  1
137
138 /* Address and size of Primary Environment Sector       */
139 #define CONFIG_ENV_ADDR         0xB0030000
140 #define CONFIG_ENV_SIZE         0x10000
141
142 #define CONFIG_FLASH_16BIT
143
144 #define CONFIG_NR_DRAM_BANKS    1
145
146 #define CONFIG_INCA_IP_SWITCH
147 #define CONFIG_INCA_IP_SWITCH_AMDIX
148
149 /*
150  * JFFS2 partitions
151  */
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
157
158 /* mtdparts command line support */
159 /*
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)," \
163                                                         "64k(env)," \
164                                                         "768k(linux)," \
165                                                         "1m@3m(rootfs)," \
166                                                         "768k(linux2)," \
167                                                         "3m@5m(rootfs2)"
168 */
169
170 /*-----------------------------------------------------------------------
171  * Cache Configuration
172  */
173 #define CONFIG_SYS_DCACHE_SIZE          4096
174 #define CONFIG_SYS_ICACHE_SIZE          4096
175 #define CONFIG_SYS_CACHELINE_SIZE       16
176
177 #endif  /* __CONFIG_H */