1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#ifndef __CONFIG_H
23#define __CONFIG_H
24
25#include <asm/arch/a320.h>
26
27
28
29
30#undef CONFIG_USE_IRQ
31
32#undef CONFIG_SKIP_LOWLEVEL_INIT
33
34
35
36
37#define CONFIG_SYS_HZ 1000
38
39
40
41
42#define CONFIG_RTC_FTRTC010
43
44
45
46
47
48
49#define CONFIG_BAUDRATE 38400
50#define CONFIG_CONS_INDEX 1
51#define CONFIG_SYS_NS16550
52#define CONFIG_SYS_NS16550_SERIAL
53#define CONFIG_SYS_NS16550_COM1 0x98200000
54#define CONFIG_SYS_NS16550_REG_SIZE -4
55#define CONFIG_SYS_NS16550_CLK 18432000
56
57
58#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
59
60
61
62
63#define CONFIG_NET_MULTI
64#define CONFIG_FTMAC100
65
66#define CONFIG_BOOTDELAY 3
67
68
69
70
71#include <config_cmd_default.h>
72
73#define CONFIG_CMD_CACHE
74#define CONFIG_CMD_DATE
75#define CONFIG_CMD_PING
76
77
78
79
80#define CONFIG_SYS_LONGHELP
81#define CONFIG_SYS_PROMPT "A320 # "
82#define CONFIG_SYS_CBSIZE 256
83
84
85#define CONFIG_SYS_PBSIZE \
86 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
87
88
89#define CONFIG_SYS_MAXARGS 16
90
91
92#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
93
94
95
96
97
98
99#define CONFIG_STACKSIZE (128 * 1024)
100#ifdef CONFIG_USE_IRQ
101#define CONFIG_STACKSIZE_IRQ (4 * 1024)
102#define CONFIG_STACKSIZE_FIQ (4 * 1024)
103#endif
104
105
106
107
108#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128 * 1024)
109
110
111
112
113#define CONFIG_SYS_GBL_DATA_SIZE 128
114
115
116
117
118#define CONFIG_SYS_FTSDMC020_TP0 (FTSDMC020_TP0_TRAS(2) | \
119 FTSDMC020_TP0_TRP(1) | \
120 FTSDMC020_TP0_TRCD(1) | \
121 FTSDMC020_TP0_TRF(3) | \
122 FTSDMC020_TP0_TWR(1) | \
123 FTSDMC020_TP0_TCL(2))
124
125#define CONFIG_SYS_FTSDMC020_TP1 (FTSDMC020_TP1_INI_PREC(4) | \
126 FTSDMC020_TP1_INI_REFT(8) | \
127 FTSDMC020_TP1_REF_INTV(0x180))
128
129#define CONFIG_SYS_FTSDMC020_BANK0_BSR (FTSDMC020_BANK_ENABLE | \
130 FTSDMC020_BANK_DDW_X16 | \
131 FTSDMC020_BANK_DSZ_256M | \
132 FTSDMC020_BANK_MBW_32 | \
133 FTSDMC020_BANK_SIZE_64M)
134
135
136
137
138#define CONFIG_NR_DRAM_BANKS 1
139#define PHYS_SDRAM_1 0x10000000
140#define PHYS_SDRAM_1_SIZE 0x04000000
141
142
143
144
145
146#define CONFIG_SYS_LOAD_ADDR 0x12000000
147
148
149#define CONFIG_SYS_MEMTEST_START 0x10000000
150#define CONFIG_SYS_MEMTEST_END 0x13F00000
151
152
153
154
155
156#include <asm/arch/ftsmc020.h>
157
158#define FTSMC020_BANK0_CONFIG (FTSMC020_BANK_ENABLE | \
159 FTSMC020_BANK_BASE(PHYS_FLASH_1) | \
160 FTSMC020_BANK_SIZE_1M | \
161 FTSMC020_BANK_MBW_8)
162
163#define FTSMC020_BANK0_TIMING (FTSMC020_TPR_RBE | \
164 FTSMC020_TPR_AST(3) | \
165 FTSMC020_TPR_CTW(3) | \
166 FTSMC020_TPR_ATI(0xf) | \
167 FTSMC020_TPR_AT2(3) | \
168 FTSMC020_TPR_WTC(3) | \
169 FTSMC020_TPR_AHT(3) | \
170 FTSMC020_TPR_TRNA(0xf))
171
172#define FTSMC020_BANK1_CONFIG (FTSMC020_BANK_ENABLE | \
173 FTSMC020_BANK_BASE(PHYS_FLASH_2) | \
174 FTSMC020_BANK_SIZE_32M | \
175 FTSMC020_BANK_MBW_32)
176
177#define FTSMC020_BANK1_TIMING (FTSMC020_TPR_AST(3) | \
178 FTSMC020_TPR_CTW(3) | \
179 FTSMC020_TPR_ATI(0xf) | \
180 FTSMC020_TPR_AT2(3) | \
181 FTSMC020_TPR_WTC(3) | \
182 FTSMC020_TPR_AHT(3) | \
183 FTSMC020_TPR_TRNA(0xf))
184
185#define CONFIG_SYS_FTSMC020_CONFIGS { \
186 { FTSMC020_BANK0_CONFIG, FTSMC020_BANK0_TIMING, }, \
187 { FTSMC020_BANK1_CONFIG, FTSMC020_BANK1_TIMING, }, \
188}
189
190
191
192
193
194
195#define CONFIG_SYS_FLASH_CFI
196#define CONFIG_FLASH_CFI_DRIVER
197
198
199#define CONFIG_FLASH_CFI_LEGACY
200#define CONFIG_SYS_FLASH_LEGACY_512Kx8
201
202#define PHYS_FLASH_1 0x00000000
203#define PHYS_FLASH_2 0x00400000
204#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
205#define CONFIG_SYS_FLASH_BANKS_LIST { PHYS_FLASH_1, PHYS_FLASH_2, }
206
207#define CONFIG_SYS_MONITOR_BASE PHYS_FLASH_1
208
209
210#define CONFIG_SYS_MAX_FLASH_BANKS 2
211
212
213#define CONFIG_SYS_MAX_FLASH_SECT 512
214
215#undef CONFIG_SYS_FLASH_EMPTY_INFO
216
217
218#define CONFIG_ENV_IS_IN_FLASH
219#define CONFIG_ENV_ADDR 0x00060000
220#define CONFIG_ENV_SIZE 0x20000
221
222#endif
223