1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32#ifndef __CONFIG_H
33#define __CONFIG_H
34
35
36
37
38
39#define CONFIG_S3C6400 1
40#define CONFIG_S3C64XX 1
41#define CONFIG_SMDK6400 1
42
43#define CONFIG_PERIPORT_REMAP
44#define CONFIG_PERIPORT_BASE 0x70000000
45#define CONFIG_PERIPORT_SIZE 0x13
46
47#define CONFIG_SYS_IRAM_BASE 0x0c000000
48#define CONFIG_SYS_IRAM_SIZE 0x2000
49#define CONFIG_SYS_IRAM_END (CONFIG_SYS_IRAM_BASE + CONFIG_SYS_IRAM_SIZE)
50#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_IRAM_END - GENERATED_GBL_DATA_SIZE)
51
52#define CONFIG_SYS_SDRAM_BASE 0x50000000
53
54
55#define CONFIG_SYS_CLK_FREQ 12000000
56
57#if !defined(CONFIG_NAND_SPL) && (CONFIG_SYS_TEXT_BASE >= 0xc0000000)
58#define CONFIG_ENABLE_MMU
59#endif
60
61#define CONFIG_SETUP_MEMORY_TAGS
62#define CONFIG_CMDLINE_TAG
63#define CONFIG_INITRD_TAG
64
65
66
67
68#define MACH_TYPE 1270
69
70#define CONFIG_DISPLAY_CPUINFO
71#define CONFIG_DISPLAY_BOARDINFO
72
73
74
75
76#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
77
78
79
80
81#define CONFIG_NET_MULTI
82#define CONFIG_CS8900
83#define CONFIG_CS8900_BASE 0x18800300
84#define CONFIG_CS8900_BUS16
85
86
87
88
89#define CONFIG_SERIAL1 1
90
91#define CONFIG_SYS_HUSH_PARSER
92#ifdef CONFIG_SYS_HUSH_PARSER
93#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
94#endif
95
96#define CONFIG_CMDLINE_EDITING
97
98
99#define CONFIG_ENV_OVERWRITE
100
101#define CONFIG_BAUDRATE 115200
102
103
104
105
106#include <config_cmd_default.h>
107
108#define CONFIG_CMD_CACHE
109#define CONFIG_CMD_REGINFO
110#define CONFIG_CMD_LOADS
111#define CONFIG_CMD_LOADB
112#define CONFIG_CMD_SAVEENV
113#define CONFIG_CMD_NAND
114#if defined(CONFIG_BOOT_ONENAND)
115#define CONFIG_CMD_ONENAND
116#endif
117#define CONFIG_CMD_PING
118#define CONFIG_CMD_ELF
119#define CONFIG_CMD_FAT
120#define CONFIG_CMD_EXT2
121
122#define CONFIG_BOOTDELAY 3
123
124#define CONFIG_ZERO_BOOTDELAY_CHECK
125
126#if (CONFIG_COMMANDS & CONFIG_CMD_KGDB)
127#define CONFIG_KGDB_BAUDRATE 115200
128#define CONFIG_KGDB_SER_INDEX 1
129#endif
130
131
132
133
134#define CONFIG_SYS_LONGHELP
135#define CONFIG_SYS_PROMPT "SMDK6400 # "
136#define CONFIG_SYS_CBSIZE 256
137#define CONFIG_SYS_PBSIZE 384
138#define CONFIG_SYS_MAXARGS 16
139#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
140
141#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
142#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x7e00000)
143
144#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
145
146#define CONFIG_SYS_HZ 1000
147
148
149#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
150
151
152
153
154
155
156#define CONFIG_STACKSIZE 0x40000
157
158
159
160
161
162
163
164
165
166
167
168
169
170#define CONFIG_CLK_533_133_66
171
172
173
174
175
176
177
178#define CONFIG_NR_DRAM_BANKS 1
179#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
180#define PHYS_SDRAM_1_SIZE 0x08000000
181
182#define CONFIG_SYS_FLASH_BASE 0x10000000
183#define CONFIG_SYS_MONITOR_BASE 0x00000000
184
185
186
187
188#define CONFIG_SYS_MAX_FLASH_BANKS 1
189
190#define CONFIG_SYS_MAX_FLASH_SECT 40
191
192#define CONFIG_AMD_LV800
193#define CONFIG_SYS_FLASH_CFI 1
194
195#define CONFIG_FLASH_CFI_DRIVER 1
196#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
197#define CONFIG_FLASH_CFI_LEGACY
198#define CONFIG_SYS_FLASH_LEGACY_512Kx16
199
200
201#define CONFIG_SYS_FLASH_ERASE_TOUT (5 * CONFIG_SYS_HZ)
202#define CONFIG_SYS_FLASH_WRITE_TOUT (5 * CONFIG_SYS_HZ)
203
204#define CONFIG_ENV_SIZE 0x4000
205
206
207
208
209
210#define CONFIG_IDENT_STRING " for SMDK6400"
211
212
213#define CONFIG_SYS_PHY_UBOOT_BASE (CONFIG_SYS_SDRAM_BASE + 0x07e00000)
214
215#define CONFIG_SYS_UBOOT_SIZE (1024 * 1024)
216
217
218#define CONFIG_NAND_ENV_DST (CONFIG_SYS_UBOOT_BASE + CONFIG_SYS_UBOOT_SIZE)
219
220#ifdef CONFIG_ENABLE_MMU
221#define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
222#define CONFIG_BOOTCOMMAND "nand read 0xc0018000 0x60000 0x1c0000;" \
223 "bootm 0xc0018000"
224#else
225#define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
226#define CONFIG_BOOTCOMMAND "nand read 0x50018000 0x60000 0x1c0000;" \
227 "bootm 0x50018000"
228#endif
229
230
231#define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_MAPPED_RAM_BASE + 0x07e00000)
232
233#define CONFIG_ENV_OFFSET 0x0040000
234
235
236#define CONFIG_SYS_MAX_NAND_DEVICE 1
237#define CONFIG_SYS_NAND_BASE 0x70200010
238#define CONFIG_SYS_S3C_NAND_HWECC
239
240#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1
241#define CONFIG_SYS_NAND_WP 1
242#define CONFIG_SYS_NAND_YAFFS_WRITE 1
243#define CONFIG_SYS_NAND_BBT_2NDPAGE 1
244
245#define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_PHY_UBOOT_BASE
246#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_NAND_U_BOOT_DST
247
248#define CONFIG_SYS_NAND_U_BOOT_OFFS (4 * 1024)
249#define CONFIG_SYS_NAND_U_BOOT_SIZE (252 * 1024)
250
251
252#define CONFIG_SYS_NAND_PAGE_SIZE 2048
253
254#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024)
255
256#define CONFIG_SYS_NAND_PAGE_COUNT 64
257
258#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
259
260#define CONFIG_SYS_NAND_5_ADDR_CYCLE
261
262
263#define CONFIG_SYS_NAND_ECCSIZE CONFIG_SYS_NAND_PAGE_SIZE
264
265#define CONFIG_SYS_NAND_ECCBYTES 4
266
267#define CONFIG_SYS_NAND_ECCSTEPS (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
268
269#define CONFIG_SYS_NAND_OOBSIZE 64
270
271#define CONFIG_SYS_NAND_ECCTOTAL (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
272
273#define CONFIG_SYS_NAND_ECCPOS {40, 41, 42, 43, 44, 45, 46, 47, \
274 48, 49, 50, 51, 52, 53, 54, 55, \
275 56, 57, 58, 59, 60, 61, 62, 63}
276
277
278#define CONFIG_BOOT_NAND
279
280
281
282
283
284
285
286#define CONFIG_NAND
287#define CONFIG_NAND_S3C64XX
288
289
290
291
292
293
294#define CONFIG_ENV_IS_IN_NAND
295#define CONFIG_BOOTARGS "console=ttySAC,115200"
296
297#if !defined(CONFIG_ENABLE_MMU)
298#define CONFIG_CMD_USB 1
299#define CONFIG_USB_S3C64XX
300#define CONFIG_USB_OHCI_NEW 1
301#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x74300000
302#define CONFIG_SYS_USB_OHCI_SLOT_NAME "s3c6400"
303#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
304#define CONFIG_SYS_USB_OHCI_CPU_INIT 1
305
306#define CONFIG_USB_STORAGE 1
307#endif
308#define CONFIG_DOS_PARTITION 1
309
310#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_ENABLE_MMU)
311# error "usb_ohci.c is currently broken with MMU enabled."
312#endif
313
314#endif
315