adds ifxmips, uboot-ifxmips and removes etrax from 8.09 branch
[openwrt/svn-archive/archive.git] / package / uboot-ifxmips / files / include / configs / ifx_cfg.h
1 /* ============================================================================
2 * Copyright (C) 2003[- 2004] ? Infineon Technologies AG.
3 *
4 * All rights reserved.
5 * ============================================================================
6 *
7 * ============================================================================
8 *
9 * This document contains proprietary information belonging to Infineon
10 * Technologies AG. Passing on and copying of this document, and communication
11 * of its contents is not permitted without prior written authorisation.
12 *
13 * ============================================================================
14 *
15 * File Name: ifx_cfg.h
16 * Author : Mars Lin (mars.lin@infineon.com)
17 * Date:
18 *
19 * ===========================================================================
20 *
21 * Project:
22 * Block:
23 *
24 * ===========================================================================
25 * Contents: This file contains the data structures and definitions used
26 * by the core iptables and the sip alg modules.
27 * ===========================================================================
28 * References:
29 */
30
31 /*
32 * This file contains the configuration parameters for the IFX board.
33 */
34 #ifndef _DANUBE_CFG_H_
35 #define _DANUBE_CFG_H_
36
37 /*-----------------------------------------------------------------------
38 * U-Boot/Kernel configurations
39 */
40 #define IFX_CFG_UBOOT_DEFAULT_CFG_IPADDR "172.20.80.100"
41 #define IFX_CFG_UBOOT_DEFAULT_CFG_SERVERIP "172.20.80.2"
42 #define IFX_CFG_UBOOT_DEFAULT_CFG_ETHADDR "00:E0:92:00:01:40"
43 #define IFX_CFG_UBOOT_DEFAULT_CFG_NETDEV "eth1"
44 #define IFX_CFG_UBOOT_DEFAULT_CFG_BAUDRATE "115200"
45 #define IFX_CFG_UBOOT_LOAD_ADDRESS "0x80800000"
46
47 /* End of U-Boot/Kernel configurations
48 *-----------------------------------------------------------------------
49 */
50
51 /*-----------------------------------------------------------------------
52 * Board specific configurations
53 */
54 #ifdef IFX_CONFIG_MEMORY_SIZE
55 #define IFX_CFG_MEM_SIZE 31
56 #else
57 #error "ERROR!! Define memory size first!"
58 #endif
59
60 //2MB flash partition
61 #if (IFX_CONFIG_FLASH_SIZE == 2)
62 #define IFX_CFG_FLASH_PARTITIONS_INFO \
63 "part0_begin=0xB0000000\0" \
64 "part1_begin=0xB0010000\0" \
65 "part2_begin=0xB0050000\0" \
66 "total_part=3\0"
67
68 #define IFX_CFG_FLASH_DATA_BLOCKS_INFO \
69 "data_block0=" IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "\0" \
70 "data_block1=" IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "\0" \
71 "data_block2=" IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "\0" \
72 "data_block3=" IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "\0" \
73 "data_block4=" IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "\0" \
74 "data_block5=" IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "\0" \
75 "data_block6=" IFX_CFG_FLASH_FIRMWARE_DIAG_BLOCK_NAME "\0" \
76 "data_block7=" IFX_CFG_FLASH_CALIBRATION_CFG_BLOCK_NAME "\0" \
77 "total_db=8\0"
78
79 #define IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "uboot"
80 #define IFX_CFG_FLASH_UBOOT_IMAGE_START_ADDR 0xB0000000
81 #define IFX_CFG_FLASH_UBOOT_IMAGE_SIZE 0
82 #define IFX_CFG_FLASH_UBOOT_IMAGE_MTDBLOCK_NAME "/dev/mtdblock0"
83
84 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "firmware"
85 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_START_ADDR 0xB0010000
86 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_SIZE 0
87 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_MTDBLOCK_NAME "/dev/mtdblock1"
88
89 #define IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "rootfs"
90 #define IFX_CFG_FLASH_ROOTFS_IMAGE_START_ADDR 0xB0050000
91 #define IFX_CFG_FLASH_ROOTFS_IMAGE_SIZE 0
92 #define IFX_CFG_FLASH_ROOTFS_IMAGE_MTDBLOCK_NAME "/dev/mtdblock2"
93
94 #define IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "kernel"
95 #define IFX_CFG_FLASH_KERNEL_IMAGE_START_ADDR 0xB01FCFFF
96 #define IFX_CFG_FLASH_KERNEL_IMAGE_SIZE 0
97
98 #define IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "sysconfig"
99 #define IFX_CFG_FLASH_SYSTEM_CFG_START_ADDR 0xB01FD000
100 #define IFX_CFG_FLASH_SYSTEM_CFG_SIZE 0
101 #define IFX_CFG_FLASH_SYSTEM_CFG_END_ADDR 0xB01FEFFF
102
103 #define IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "ubootconfig"
104 #define IFX_CFG_FLASH_UBOOT_CFG_START_ADDR 0xB01FF000
105 #define IFX_CFG_FLASH_UBOOT_CFG_SIZE 0x0C00
106 #define IFX_CFG_FLASH_UBOOT_CFG_END_ADDR 0xB01FFBFF
107
108 #define IFX_CFG_FLASH_FIRMWARE_DIAG_BLOCK_NAME "fwdiag"
109 #define IFX_CFG_FLASH_FIRMWARE_DIAG_START_ADDR 0xB31FFC00
110 #define IFX_CFG_FLASH_FIRMWARE_DIAG_SIZE 0x0200
111 #define IFX_CFG_FLASH_FIRMWARE_DIAG_END_ADDR 0xB01FFDFF
112
113 #define IFX_CFG_FLASH_CALIBRATION_CFG_BLOCK_NAME "calibration"
114 #define IFX_CFG_FLASH_CALIBRATION_CFG_START_ADDR 0xB01FFE00
115 #define IFX_CFG_FLASH_CALIBRATION_CFG_SIZE 0x0200
116 #define IFX_CFG_FLASH_CALIBRATION_CFG_END_ADDR 0xB01FFFFF
117
118 #define IFX_CFG_FLASH_END_ADDR 0xB01FFFFF
119
120 //4MB flash partition
121 #elif (IFX_CONFIG_FLASH_SIZE == 4)
122 #define IFX_CFG_FLASH_PARTITIONS_INFO \
123 "part0_begin=0xB0000000\0" \
124 "part1_begin=0xB0020000\0" \
125 "part2_begin=0xB0060000\0" \
126 "total_part=3\0"
127
128 #define IFX_CFG_FLASH_DATA_BLOCKS_INFO \
129 "data_block0=" IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "\0" \
130 "data_block1=" IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "\0" \
131 "data_block2=" IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "\0" \
132 "data_block3=" IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "\0" \
133 "data_block4=" IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "\0" \
134 "data_block5=" IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "\0" \
135 "data_block6=" IFX_CFG_FLASH_VOIP_CFG_BLOCK_NAME "\0" \
136 "data_block7=" IFX_CFG_FLASH_FIRMWARE_DIAG_BLOCK_NAME "\0" \
137 "data_block8=" IFX_CFG_FLASH_CALIBRATION_CFG_BLOCK_NAME "\0" \
138 "total_db=9\0"
139
140 #define IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "uboot"
141 #define IFX_CFG_FLASH_UBOOT_IMAGE_START_ADDR 0xB0000000
142 #define IFX_CFG_FLASH_UBOOT_IMAGE_SIZE 0
143 #define IFX_CFG_FLASH_UBOOT_IMAGE_MTDBLOCK_NAME "/dev/mtdblock0"
144
145 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "firmware"
146 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_START_ADDR 0xB0020000
147 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_SIZE 0
148 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_MTDBLOCK_NAME "/dev/mtdblock1"
149
150 #define IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "rootfs"
151 #define IFX_CFG_FLASH_ROOTFS_IMAGE_START_ADDR 0xB0060000
152 #define IFX_CFG_FLASH_ROOTFS_IMAGE_SIZE 0
153 #define IFX_CFG_FLASH_ROOTFS_IMAGE_MTDBLOCK_NAME "/dev/mtdblock2"
154
155 #define IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "kernel"
156 #define IFX_CFG_FLASH_KERNEL_IMAGE_START_ADDR 0xB03F4FFF
157 #define IFX_CFG_FLASH_KERNEL_IMAGE_SIZE 0
158
159 #define IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "sysconfig"
160 #define IFX_CFG_FLASH_SYSTEM_CFG_START_ADDR 0xB03F5000
161 #define IFX_CFG_FLASH_SYSTEM_CFG_SIZE 0x2000
162 #define IFX_CFG_FLASH_SYSTEM_CFG_END_ADDR 0xB03F6FFF
163
164 #define IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "ubootconfig"
165 #define IFX_CFG_FLASH_UBOOT_CFG_START_ADDR 0xB03F7000
166 #define IFX_CFG_FLASH_UBOOT_CFG_SIZE 0x0C00
167 #define IFX_CFG_FLASH_UBOOT_CFG_END_ADDR 0xB03F7BFF
168
169 #define IFX_CFG_FLASH_VOIP_CFG_BLOCK_NAME "voip"
170 #define IFX_CFG_FLASH_VOIP_CFG_START_ADDR 0xB03F7C00
171 #define IFX_CFG_FLASH_VOIP_CFG_SIZE 0x8000
172 #define IFX_CFG_FLASH_VOIP_CFG_END_ADDR 0xB03FFBFF
173
174 #define IFX_CFG_FLASH_FIRMWARE_DIAG_BLOCK_NAME "fwdiag"
175 #define IFX_CFG_FLASH_FIRMWARE_DIAG_START_ADDR 0xB03FFC00
176 #define IFX_CFG_FLASH_FIRMWARE_DIAG_SIZE 0x0200
177 #define IFX_CFG_FLASH_FIRMWARE_DIAG_END_ADDR 0xB03FFDFF
178
179 #define IFX_CFG_FLASH_CALIBRATION_CFG_BLOCK_NAME "calibration"
180 #define IFX_CFG_FLASH_CALIBRATION_CFG_START_ADDR 0xB03FFE00
181 #define IFX_CFG_FLASH_CALIBRATION_CFG_SIZE 0x0200
182 #define IFX_CFG_FLASH_CALIBRATION_CFG_END_ADDR 0xB03FFFFF
183
184 #define IFX_CFG_FLASH_END_ADDR 0xB03FFFFF
185 //8MB flash definition
186 #elif (IFX_CONFIG_FLASH_SIZE == 8)
187 #define IFX_CFG_FLASH_PARTITIONS_INFO \
188 "part0_begin=0xB0000000\0" \
189 "part1_begin=0xB0080000\0" \
190 "part2_begin=0xB0280000\0" \
191 "part3_begin=0xB0790000\0" \
192 "part4_begin=0xB07A0000\0" \
193 "part5_begin=0xB07E0000\0" \
194 "total_part=6\0"
195
196 #define IFX_CFG_FLASH_DATA_BLOCKS_INFO \
197 "data_block0=" IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "\0" \
198 "data_block1=" IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "\0" \
199 "data_block2=" IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "\0" \
200 "data_block3=" IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "\0" \
201 "data_block4=" IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "\0" \
202 "data_block5=" IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "\0" \
203 "total_db=6\0"
204
205 #define IFX_CFG_FLASH_UBOOT_IMAGE_BLOCK_NAME "uboot"
206 #define IFX_CFG_FLASH_UBOOT_IMAGE_START_ADDR 0xB0000000
207 #define IFX_CFG_FLASH_UBOOT_IMAGE_END_ADDR 0xB007FFFF
208 #define IFX_CFG_FLASH_UBOOT_IMAGE_SIZE 0x00080000
209 #define IFX_CFG_FLASH_UBOOT_IMAGE_MTDBLOCK_NAME "/dev/mtdblock0"
210
211 #define IFX_CFG_FLASH_KERNEL_IMAGE_BLOCK_NAME "kernel"
212 #define IFX_CFG_FLASH_KERNEL_IMAGE_START_ADDR 0xB0080000
213 #define IFX_CFG_FLASH_KERNEL_IMAGE_SIZE 0x200000
214 #define IFX_CFG_FLASH_KERNEL_IMAGE_END_ADDR 0xB017FFFF
215 #define IFX_CFG_FLASH_KERNEL_IMAGE_MTDBLOCK_NAME "/dev/mtdblock1"
216
217 #define IFX_CFG_FLASH_ROOTFS_IMAGE_BLOCK_NAME "rootfs"
218 #define IFX_CFG_FLASH_ROOTFS_IMAGE_START_ADDR 0xB0280000
219 #define IFX_CFG_FLASH_ROOTFS_IMAGE_SIZE 0x00510000
220 #define IFX_CFG_FLASH_ROOTFS_IMAGE_END_ADDR 0xB078FFFF
221 #define IFX_CFG_FLASH_ROOTFS_IMAGE_MTDBLOCK_NAME "/dev/mtdblock2"
222
223 #define IFX_CFG_FLASH_SYSTEM_CFG_BLOCK_NAME "sysconfig"
224 #define IFX_CFG_FLASH_SYSTEM_CFG_START_ADDR 0xB0790000
225 #define IFX_CFG_FLASH_SYSTEM_CFG_SIZE 0x10000
226 #define IFX_CFG_FLASH_SYSTEM_CFG_END_ADDR 0xB079FFFF
227 #define IFX_CFG_FLASH_SYSTEM_CFG_MTDBLOCK_NAME "/dev/mtdblock3"
228
229 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_BLOCK_NAME "firmware"
230 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_START_ADDR 0xB07A0000
231 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_SIZE 0x40000
232 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_END_ADDR 0xB07DFFFF
233 #define IFX_CFG_FLASH_FIRMWARE_IMAGE_MTDBLOCK_NAME "/dev/mtdblock4"
234
235 #define IFX_CFG_FLASH_UBOOT_CFG_BLOCK_NAME "ubootconfig"
236 #define IFX_CFG_FLASH_UBOOT_CFG_START_ADDR 0xB0020000
237 #define IFX_CFG_FLASH_UBOOT_CFG_END_ADDR 0xB002FFFF
238 #define IFX_CFG_FLASH_UBOOT_CFG_SIZE 0x10000
239 #define IFX_CFG_FLASH_UBOOT_CFG_MTDBLOCK_NAME "/dev/mtdblock5"
240
241 #define IFX_CFG_FLASH_END_ADDR 0xB07FFFFF
242 #else
243 #error "ERROR!! Define flash size first!"
244 #endif
245 /* End of Board specific configurations
246 *-----------------------------------------------------------------------
247 */
248
249 #endif