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