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