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#ifndef __CONFIG_H
29#define __CONFIG_H
30
31
32
33
34
35#define CONFIG_ARMCORTEXA8 1
36#define CONFIG_SAMSUNG 1
37#define CONFIG_S5PC1XX 1
38#define CONFIG_S5PC100 1
39#define CONFIG_SMDKC100 1
40
41#include <asm/arch/cpu.h>
42
43#define CONFIG_ARCH_CPU_INIT
44
45#define CONFIG_DISPLAY_CPUINFO
46#define CONFIG_DISPLAY_BOARDINFO
47
48#undef CONFIG_SKIP_RELOCATE_UBOOT
49
50
51#define CONFIG_SYS_CLK_FREQ 12000000
52
53
54#define CONFIG_SYS_SDRAM_BASE 0x30000000
55
56#define CONFIG_SETUP_MEMORY_TAGS
57#define CONFIG_CMDLINE_TAG
58#define CONFIG_INITRD_TAG
59#define CONFIG_CMDLINE_EDITING
60
61
62
63
64
65#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20))
66#define CONFIG_SYS_GBL_DATA_SIZE 128
67
68
69
70
71#define CONFIG_SERIAL0 1
72#define CONFIG_SERIAL_MULTI 1
73
74
75#define CONFIG_ENV_OVERWRITE
76#define CONFIG_BAUDRATE 115200
77
78
79
80
81#include <config_cmd_default.h>
82
83#undef CONFIG_CMD_FLASH
84#undef CONFIG_CMD_IMLS
85#undef CONFIG_CMD_NAND
86#undef CONFIG_CMD_NET
87
88#define CONFIG_CMD_CACHE
89#define CONFIG_CMD_REGINFO
90#define CONFIG_CMD_ONENAND
91#define CONFIG_CMD_ELF
92#define CONFIG_CMD_FAT
93#define CONFIG_CMD_MTDPARTS
94
95#define CONFIG_BOOTDELAY 3
96
97#define CONFIG_ZERO_BOOTDELAY_CHECK
98
99#define CONFIG_MTD_DEVICE
100#define CONFIG_MTD_PARTITIONS
101
102#define MTDIDS_DEFAULT "onenand0=s3c-onenand"
103#define MTDPARTS_DEFAULT "mtdparts=s3c-onenand:256k(bootloader)"\
104 ",128k@0x40000(params)"\
105 ",3m@0x60000(kernel)"\
106 ",16m@0x360000(test)"\
107 ",-(UBI)"
108
109#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
110
111#define CONFIG_BOOTCOMMAND "run ubifsboot"
112
113#define CONFIG_RAMDISK_BOOT "root=/dev/ram0 rw rootfstype=ext2" \
114 " console=ttySAC0,115200n8" \
115 " mem=128M"
116
117#define CONFIG_COMMON_BOOT "console=ttySAC0,115200n8" \
118 " mem=128M " \
119 " " MTDPARTS_DEFAULT
120
121#define CONFIG_BOOTARGS "root=/dev/mtdblock5 ubi.mtd=4" \
122 " rootfstype=cramfs " CONFIG_COMMON_BOOT
123
124#define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
125 " onenand write 0x32008000 0x0 0x40000\0"
126
127#define CONFIG_ENV_OVERWRITE
128#define CONFIG_EXTRA_ENV_SETTINGS \
129 CONFIG_UPDATEB \
130 "updatek=" \
131 "onenand erase 0x60000 0x300000;" \
132 "onenand write 0x31008000 0x60000 0x300000\0" \
133 "updateu=" \
134 "onenand erase block 147-4095;" \
135 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
136 "bootk=" \
137 "onenand read 0x30007FC0 0x60000 0x300000;" \
138 "bootm 0x30007FC0\0" \
139 "flashboot=" \
140 "set bootargs root=/dev/mtdblock${bootblock} " \
141 "rootfstype=${rootfstype} " \
142 "ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT ";" \
143 "run bootk\0" \
144 "ubifsboot=" \
145 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
146 " ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT "; " \
147 "run bootk\0" \
148 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
149 "android=" \
150 "set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \
151 "rootfstype=ubifs init=/init.sh " CONFIG_COMMON_BOOT "; " \
152 "run bootk\0" \
153 "nfsboot=" \
154 "set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \
155 "nfsroot=${nfsroot},nolock " \
156 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
157 "${netmask}:nowplus:usb0:off " CONFIG_COMMON_BOOT "; " \
158 "run bootk\0" \
159 "ramboot=" \
160 "set bootargs " CONFIG_RAMDISK_BOOT \
161 " initrd=0x33000000,8M ramdisk=8192\0" \
162 "rootfstype=cramfs\0" \
163 "mtdparts=" MTDPARTS_DEFAULT "\0" \
164 "meminfo=mem=128M\0" \
165 "nfsroot=/nfsroot/arm\0" \
166 "bootblock=5\0" \
167 "ubiblock=4\0" \
168 "ubi=enabled"
169
170
171
172
173#define CONFIG_SYS_LONGHELP
174#define CONFIG_SYS_HUSH_PARSER
175#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
176#define CONFIG_SYS_PROMPT "SMDKC100 # "
177#define CONFIG_SYS_CBSIZE 256
178#define CONFIG_SYS_PBSIZE 384
179#define CONFIG_SYS_MAXARGS 16
180
181#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
182
183#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
184#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5e00000)
185#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
186
187#define CONFIG_SYS_HZ 1000
188
189
190#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
191
192
193
194
195
196
197#define CONFIG_STACKSIZE (256 << 10)
198
199
200#define CONFIG_NR_DRAM_BANKS 1
201#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
202#define PHYS_SDRAM_1_SIZE (128 << 20)
203
204#define CONFIG_SYS_MONITOR_BASE 0x00000000
205
206
207
208
209#define CONFIG_SYS_NO_FLASH 1
210
211#define CONFIG_SYS_MONITOR_LEN (256 << 10)
212#define CONFIG_IDENT_STRING " for SMDKC100"
213
214#if !defined(CONFIG_NAND_SPL) && (TEXT_BASE >= 0xc0000000)
215#define CONFIG_ENABLE_MMU
216#endif
217
218#ifdef CONFIG_ENABLE_MMU
219#define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
220#else
221#define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
222#endif
223
224
225
226
227#define CONFIG_ENV_IS_IN_ONENAND 1
228#define CONFIG_ENV_SIZE (128 << 10)
229#define CONFIG_ENV_ADDR (256 << 10)
230#define CONFIG_ENV_OFFSET (256 << 10)
231
232#define CONFIG_USE_ONENAND_BOARD_INIT
233#define CONFIG_SAMSUNG_ONENAND 1
234#define CONFIG_SYS_ONENAND_BASE 0xE7100000
235
236#define CONFIG_DOS_PARTITION 1
237
238#endif
239