2 * (C) Copyright 2009 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
4 * HeungJun Kim <riverful.kim@samsung.com>
5 * Inki Dae <inki.dae@samsung.com>
7 * Configuation settings for the SAMSUNG SMDKC100 board.
9 * See file CREDITS for list of people who contributed to this
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * High Level Configuration Options
35 #define CONFIG_ARMCORTEXA8 1 /* This is an ARM V7 CPU core */
36 #define CONFIG_SAMSUNG 1 /* in a SAMSUNG core */
37 #define CONFIG_S5PC1XX 1 /* which is in a S5PC1XX Family */
38 #define CONFIG_S5PC100 1 /* which is in a S5PC100 */
39 #define CONFIG_SMDKC100 1 /* working with SMDKC100 */
41 #include <asm/arch/cpu.h> /* get chip and board defs */
43 #define CONFIG_ARCH_CPU_INIT
45 #define CONFIG_DISPLAY_CPUINFO
46 #define CONFIG_DISPLAY_BOARDINFO
48 #undef CONFIG_SKIP_RELOCATE_UBOOT
52 /* input clock of PLL: SMDKC100 has 12MHz input clock */
53 #define CONFIG_SYS_CLK_FREQ 12000000
56 #define CONFIG_SYS_SDRAM_BASE 0x30000000
58 #define CONFIG_SETUP_MEMORY_TAGS
59 #define CONFIG_CMDLINE_TAG
60 #define CONFIG_INITRD_TAG
61 #define CONFIG_CMDLINE_EDITING
64 * Size of malloc() pool
65 * 1MB = 0x100000, 0x100000 = 1024 * 1024
67 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20))
68 #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes for */
71 * select serial console configuration
73 #define CONFIG_SERIAL0 1 /* use SERIAL 0 on SMDKC100 */
74 #define CONFIG_SERIAL_MULTI 1
76 /* allow to overwrite serial and ethaddr */
77 #define CONFIG_ENV_OVERWRITE
78 #define CONFIG_BAUDRATE 115200
80 /***********************************************************
82 ***********************************************************/
83 #include <config_cmd_default.h>
85 #undef CONFIG_CMD_FLASH
86 #undef CONFIG_CMD_IMLS
87 #undef CONFIG_CMD_NAND
90 #define CONFIG_CMD_CACHE
91 #define CONFIG_CMD_REGINFO
92 #define CONFIG_CMD_ONENAND
93 #define CONFIG_CMD_ELF
94 #define CONFIG_CMD_FAT
95 #define CONFIG_CMD_MTDPARTS
97 #define CONFIG_BOOTDELAY 3
99 #define CONFIG_ZERO_BOOTDELAY_CHECK
101 #define CONFIG_MTD_DEVICE
102 #define CONFIG_MTD_PARTITIONS
104 #define MTDIDS_DEFAULT "onenand0=s3c-onenand"
105 #define MTDPARTS_DEFAULT "mtdparts=s3c-onenand:256k(bootloader)"\
106 ",128k@0x40000(params)"\
107 ",3m@0x60000(kernel)"\
108 ",16m@0x360000(test)"\
111 #define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
113 #define CONFIG_BOOTCOMMAND "run ubifsboot"
115 #define CONFIG_RAMDISK_BOOT "root=/dev/ram0 rw rootfstype=ext2" \
116 " console=ttySAC0,115200n8" \
119 #define CONFIG_COMMON_BOOT "console=ttySAC0,115200n8" \
123 #define CONFIG_BOOTARGS "root=/dev/mtdblock5 ubi.mtd=4" \
124 " rootfstype=cramfs " CONFIG_COMMON_BOOT
126 #define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
127 " onenand write 0x32008000 0x0 0x40000\0"
129 #define CONFIG_ENV_OVERWRITE
130 #define CONFIG_EXTRA_ENV_SETTINGS \
133 "onenand erase 0x60000 0x300000;" \
134 "onenand write 0x31008000 0x60000 0x300000\0" \
136 "onenand erase block 147-4095;" \
137 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
139 "onenand read 0x30007FC0 0x60000 0x300000;" \
140 "bootm 0x30007FC0\0" \
142 "set bootargs root=/dev/mtdblock${bootblock} " \
143 "rootfstype=${rootfstype} " \
144 "ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT ";" \
147 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
148 " ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT "; " \
150 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
152 "set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \
153 "rootfstype=ubifs init=/init.sh " CONFIG_COMMON_BOOT "; " \
156 "set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \
157 "nfsroot=${nfsroot},nolock " \
158 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
159 "${netmask}:nowplus:usb0:off " CONFIG_COMMON_BOOT "; " \
162 "set bootargs " CONFIG_RAMDISK_BOOT \
163 " initrd=0x33000000,8M ramdisk=8192\0" \
164 "rootfstype=cramfs\0" \
165 "mtdparts=" MTDPARTS_DEFAULT "\0" \
166 "meminfo=mem=128M\0" \
167 "nfsroot=/nfsroot/arm\0" \
173 * Miscellaneous configurable options
175 #define CONFIG_SYS_LONGHELP /* undef to save memory */
176 #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
177 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
178 #define CONFIG_SYS_PROMPT "SMDKC100 # "
179 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
180 #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
181 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
182 /* Boot Argument Buffer Size */
183 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
184 /* memtest works on */
185 #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
186 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5e00000)
187 #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
189 #define CONFIG_SYS_HZ 1000
191 /* valid baudrates */
192 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
194 /*-----------------------------------------------------------------------
197 * The stack sizes are set up in start.S using the settings below
199 #define CONFIG_STACKSIZE (256 << 10) /* 256 KiB */
201 /* SMDKC100 has 1 banks of DRAM, we use only one in U-Boot */
202 #define CONFIG_NR_DRAM_BANKS 1
203 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* SDRAM Bank #1 */
204 #define PHYS_SDRAM_1_SIZE (128 << 20) /* 0x8000000, 128 MB Bank #1 */
206 #define CONFIG_SYS_MONITOR_BASE 0x00000000
208 /*-----------------------------------------------------------------------
209 * FLASH and environment organization
211 #define CONFIG_SYS_NO_FLASH 1
213 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 KiB */
214 #define CONFIG_IDENT_STRING " for SMDKC100"
216 #if !defined(CONFIG_NAND_SPL) && (TEXT_BASE >= 0xc0000000)
217 #define CONFIG_ENABLE_MMU
220 #ifdef CONFIG_ENABLE_MMU
221 #define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
223 #define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
226 /*-----------------------------------------------------------------------
229 #define CONFIG_ENV_IS_IN_ONENAND 1
230 #define CONFIG_ENV_SIZE (128 << 10) /* 128KiB, 0x20000 */
231 #define CONFIG_ENV_ADDR (256 << 10) /* 256KiB, 0x40000 */
232 #define CONFIG_ENV_OFFSET (256 << 10) /* 256KiB, 0x40000 */
234 #define CONFIG_USE_ONENAND_BOARD_INIT
235 #define CONFIG_SAMSUNG_ONENAND 1
236 #define CONFIG_SYS_ONENAND_BASE 0xE7100000
238 #define CONFIG_DOS_PARTITION 1
240 #endif /* __CONFIG_H */