]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
8bc4ee9e MK |
2 | /* |
3 | * (C) Copyright 2009 Samsung Electronics | |
4 | * Minkyu Kang <[email protected]> | |
5 | * HeungJun Kim <[email protected]> | |
6 | * Inki Dae <[email protected]> | |
7 | * | |
8 | * Configuation settings for the SAMSUNG SMDKC100 board. | |
8bc4ee9e MK |
9 | */ |
10 | ||
11 | #ifndef __CONFIG_H | |
12 | #define __CONFIG_H | |
13 | ||
8bc4ee9e MK |
14 | #include <asm/arch/cpu.h> /* get chip and board defs */ |
15 | ||
8bc4ee9e | 16 | /* input clock of PLL: SMDKC100 has 12MHz input clock */ |
8bc4ee9e MK |
17 | |
18 | /* DRAM Base */ | |
19 | #define CONFIG_SYS_SDRAM_BASE 0x30000000 | |
20 | ||
08bcbc4a | 21 | /* Text Base */ |
08bcbc4a | 22 | |
8bc4ee9e MK |
23 | /* |
24 | * select serial console configuration | |
25 | */ | |
8bc4ee9e | 26 | |
dc795a88 MK |
27 | /* PWM */ |
28 | #define CONFIG_PWM 1 | |
29 | ||
428eb2e2 | 30 | #define COMMON_BOOT "console=ttySAC0,115200n8" \ |
8bc4ee9e | 31 | " mem=128M " \ |
43ede0bc | 32 | " " CONFIG_MTDPARTS_DEFAULT |
8bc4ee9e | 33 | |
8bc4ee9e | 34 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
428eb2e2 TR |
35 | "updateb=" \ |
36 | "onenand erase 0x0 0x40000;" \ | |
37 | "onenand write 0x32008000 0x0 0x40000\0" \ | |
8bc4ee9e MK |
38 | "updatek=" \ |
39 | "onenand erase 0x60000 0x300000;" \ | |
40 | "onenand write 0x31008000 0x60000 0x300000\0" \ | |
41 | "updateu=" \ | |
42 | "onenand erase block 147-4095;" \ | |
43 | "onenand write 0x32000000 0x1260000 0x8C0000\0" \ | |
44 | "bootk=" \ | |
45 | "onenand read 0x30007FC0 0x60000 0x300000;" \ | |
46 | "bootm 0x30007FC0\0" \ | |
47 | "flashboot=" \ | |
48 | "set bootargs root=/dev/mtdblock${bootblock} " \ | |
49 | "rootfstype=${rootfstype} " \ | |
428eb2e2 | 50 | "ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT ";" \ |
8bc4ee9e MK |
51 | "run bootk\0" \ |
52 | "ubifsboot=" \ | |
53 | "set bootargs root=ubi0!rootfs rootfstype=ubifs " \ | |
428eb2e2 | 54 | " ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT "; " \ |
8bc4ee9e MK |
55 | "run bootk\0" \ |
56 | "boottrace=setenv opts initcall_debug; run bootcmd\0" \ | |
57 | "android=" \ | |
58 | "set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \ | |
428eb2e2 | 59 | "rootfstype=ubifs init=/init.sh " COMMON_BOOT "; " \ |
8bc4ee9e MK |
60 | "run bootk\0" \ |
61 | "nfsboot=" \ | |
62 | "set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \ | |
63 | "nfsroot=${nfsroot},nolock " \ | |
64 | "ip=${ipaddr}:${serverip}:${gatewayip}:" \ | |
428eb2e2 | 65 | "${netmask}:nowplus:usb0:off " COMMON_BOOT "; " \ |
8bc4ee9e MK |
66 | "run bootk\0" \ |
67 | "ramboot=" \ | |
428eb2e2 TR |
68 | "set bootargs root=/dev/ram0 rw rootfstype=ext2" \ |
69 | " console=ttySAC0,115200n8 mem=128M" \ | |
8bc4ee9e MK |
70 | " initrd=0x33000000,8M ramdisk=8192\0" \ |
71 | "rootfstype=cramfs\0" \ | |
8bc4ee9e MK |
72 | "meminfo=mem=128M\0" \ |
73 | "nfsroot=/nfsroot/arm\0" \ | |
74 | "bootblock=5\0" \ | |
75 | "ubiblock=4\0" \ | |
76 | "ubi=enabled" | |
77 | ||
78 | /* | |
79 | * Miscellaneous configurable options | |
80 | */ | |
8bc4ee9e | 81 | |
8bc4ee9e | 82 | /* SMDKC100 has 1 banks of DRAM, we use only one in U-Boot */ |
8bc4ee9e MK |
83 | #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* SDRAM Bank #1 */ |
84 | #define PHYS_SDRAM_1_SIZE (128 << 20) /* 0x8000000, 128 MB Bank #1 */ | |
85 | ||
8bc4ee9e MK |
86 | /*----------------------------------------------------------------------- |
87 | * FLASH and environment organization | |
88 | */ | |
8bc4ee9e MK |
89 | |
90 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 KiB */ | |
8bc4ee9e | 91 | |
8bc4ee9e MK |
92 | /*----------------------------------------------------------------------- |
93 | * Boot configuration | |
94 | */ | |
8bc4ee9e MK |
95 | |
96 | #define CONFIG_USE_ONENAND_BOARD_INIT | |
97 | #define CONFIG_SAMSUNG_ONENAND 1 | |
98 | #define CONFIG_SYS_ONENAND_BASE 0xE7100000 | |
99 | ||
2528dc52 NKC |
100 | /* |
101 | * Ethernet Contoller driver | |
102 | */ | |
103 | #ifdef CONFIG_CMD_NET | |
2528dc52 NKC |
104 | #define CONFIG_ENV_SROM_BANK 3 /* Select SROM Bank-3 for Ethernet*/ |
105 | #endif /* CONFIG_CMD_NET */ | |
106 | ||
8bc4ee9e | 107 | #endif /* __CONFIG_H */ |