1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2009 Samsung Electronics
8 * Configuation settings for the SAMSUNG SMDKC100 board.
14 #include <asm/arch/cpu.h> /* get chip and board defs */
16 /* input clock of PLL: SMDKC100 has 12MHz input clock */
19 #define CONFIG_SYS_SDRAM_BASE 0x30000000
24 * select serial console configuration
30 #define COMMON_BOOT "console=ttySAC0,115200n8" \
32 " " CONFIG_MTDPARTS_DEFAULT
34 #define CONFIG_EXTRA_ENV_SETTINGS \
36 "onenand erase 0x0 0x40000;" \
37 "onenand write 0x32008000 0x0 0x40000\0" \
39 "onenand erase 0x60000 0x300000;" \
40 "onenand write 0x31008000 0x60000 0x300000\0" \
42 "onenand erase block 147-4095;" \
43 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
45 "onenand read 0x30007FC0 0x60000 0x300000;" \
46 "bootm 0x30007FC0\0" \
48 "set bootargs root=/dev/mtdblock${bootblock} " \
49 "rootfstype=${rootfstype} " \
50 "ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT ";" \
53 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
54 " ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT "; " \
56 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
58 "set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \
59 "rootfstype=ubifs init=/init.sh " COMMON_BOOT "; " \
62 "set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \
63 "nfsroot=${nfsroot},nolock " \
64 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
65 "${netmask}:nowplus:usb0:off " COMMON_BOOT "; " \
68 "set bootargs root=/dev/ram0 rw rootfstype=ext2" \
69 " console=ttySAC0,115200n8 mem=128M" \
70 " initrd=0x33000000,8M ramdisk=8192\0" \
71 "rootfstype=cramfs\0" \
72 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
73 "meminfo=mem=128M\0" \
74 "nfsroot=/nfsroot/arm\0" \
80 * Miscellaneous configurable options
83 /* SMDKC100 has 1 banks of DRAM, we use only one in U-Boot */
84 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* SDRAM Bank #1 */
85 #define PHYS_SDRAM_1_SIZE (128 << 20) /* 0x8000000, 128 MB Bank #1 */
87 /*-----------------------------------------------------------------------
88 * FLASH and environment organization
91 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 KiB */
93 #if !defined(CONFIG_NAND_SPL) && (CONFIG_SYS_TEXT_BASE >= 0xc0000000)
94 #define CONFIG_ENABLE_MMU
97 #ifdef CONFIG_ENABLE_MMU
98 #define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
100 #define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
103 /*-----------------------------------------------------------------------
107 #define CONFIG_USE_ONENAND_BOARD_INIT
108 #define CONFIG_SAMSUNG_ONENAND 1
109 #define CONFIG_SYS_ONENAND_BASE 0xE7100000
112 * Ethernet Contoller driver
114 #ifdef CONFIG_CMD_NET
115 #define CONFIG_ENV_SROM_BANK 3 /* Select SROM Bank-3 for Ethernet*/
116 #endif /* CONFIG_CMD_NET */
118 #endif /* __CONFIG_H */