]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/s5p_goni.h
Merge branch 'master' of git://git.denx.de/u-boot-imx
[people/ms/u-boot.git] / include / configs / s5p_goni.h
1 /*
2 * Copyright (C) 2009 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
4 * Kyungmin Park <kyungmin.park@samsung.com>
5 *
6 * Configuation settings for the SAMSUNG Universal (s5pc100) board.
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA
25 */
26
27 #ifndef __CONFIG_H
28 #define __CONFIG_H
29
30 /* High Level Configuration Options */
31 #define CONFIG_ARMV7 1 /* This is an ARM V7 CPU core */
32 #define CONFIG_SAMSUNG 1 /* in a SAMSUNG core */
33 #define CONFIG_S5P 1 /* which is in a S5P Family */
34 #define CONFIG_S5PC110 1 /* which is in a S5PC110 */
35 #define CONFIG_MACH_GONI 1 /* working with Goni */
36
37 #include <asm/arch/cpu.h> /* get chip and board defs */
38
39 #define CONFIG_ARCH_CPU_INIT
40 #define CONFIG_DISPLAY_CPUINFO
41 #define CONFIG_DISPLAY_BOARDINFO
42
43 /* input clock of PLL: has 24MHz input clock at S5PC110 */
44 #define CONFIG_SYS_CLK_FREQ_C110 24000000
45
46 /* DRAM Base */
47 #define CONFIG_SYS_SDRAM_BASE 0x30000000
48
49 #define CONFIG_SETUP_MEMORY_TAGS
50 #define CONFIG_CMDLINE_TAG
51 #define CONFIG_INITRD_TAG
52 #define CONFIG_CMDLINE_EDITING
53
54 /*
55 * Size of malloc() pool
56 * 1MB = 0x100000, 0x100000 = 1024 * 1024
57 */
58 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20))
59 /* initial data */
60 /*
61 * select serial console configuration
62 */
63 #define CONFIG_SERIAL2 1 /* use SERIAL2 */
64 #define CONFIG_SERIAL_MULTI 1
65 #define CONFIG_BAUDRATE 115200
66
67 /* MMC */
68 #define CONFIG_GENERIC_MMC 1
69 #define CONFIG_MMC 1
70 #define CONFIG_S5P_MMC 1
71
72 /* It should define before config_cmd_default.h */
73 #define CONFIG_SYS_NO_FLASH 1
74
75 /* Command definition */
76 #include <config_cmd_default.h>
77
78 #undef CONFIG_CMD_FPGA
79 #undef CONFIG_CMD_MISC
80 #undef CONFIG_CMD_NET
81 #undef CONFIG_CMD_NFS
82 #undef CONFIG_CMD_XIMG
83 #define CONFIG_CMD_CACHE
84 #define CONFIG_CMD_REGINFO
85 #define CONFIG_CMD_ONENAND
86 #define CONFIG_CMD_MTDPARTS
87 #define CONFIG_CMD_MMC
88
89 #define CONFIG_BOOTDELAY 1
90 #define CONFIG_ZERO_BOOTDELAY_CHECK
91
92 #define CONFIG_MTD_DEVICE
93 #define CONFIG_MTD_PARTITIONS
94
95 /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
96 #define MTDIDS_DEFAULT "onenand0=samsung-onenand"
97 #define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:1m(bootloader)"\
98 ",256k(params)"\
99 ",2816k(config)"\
100 ",8m(csa)"\
101 ",7m(kernel)"\
102 ",1m(log)"\
103 ",12m(modem)"\
104 ",60m(qboot)"\
105 ",-(UBI)\0"
106
107 #define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
108
109 #define CONFIG_BOOTCOMMAND "run ubifsboot"
110
111 #define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
112
113 #define CONFIG_RAMDISK_BOOT "root=/dev/ram0 rw rootfstype=ext2" \
114 " ${console} ${meminfo}"
115
116 #define CONFIG_COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
117
118 #define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=3 ubi.mtd=6" \
119 " rootfstype=cramfs " CONFIG_COMMON_BOOT
120
121 #define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x100000;" \
122 " onenand write 0x32008000 0x0 0x100000\0"
123
124 #define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=3 ubi.mtd=6"
125
126 #define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc"
127
128 #define CONFIG_ENV_OVERWRITE
129 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
130 #define CONFIG_EXTRA_ENV_SETTINGS \
131 CONFIG_UPDATEB \
132 "updatek=" \
133 "onenand erase 0xc00000 0x600000;" \
134 "onenand write 0x31008000 0xc00000 0x600000\0" \
135 "updateu=" \
136 "onenand erase 0x01560000 0x1eaa0000;" \
137 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
138 "bootk=" \
139 "onenand read 0x30007FC0 0xc00000 0x600000;" \
140 "bootm 0x30007FC0\0" \
141 "flashboot=" \
142 "set bootargs root=/dev/mtdblock${bootblock} " \
143 "rootfstype=${rootfstype}" CONFIG_UBI_MTD " ${opts} " \
144 "${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
145 "ubifsboot=" \
146 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
147 CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
148 CONFIG_COMMON_BOOT "; run bootk\0" \
149 "tftpboot=" \
150 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
151 CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
152 CONFIG_COMMON_BOOT "; tftp 0x30007FC0 uImage; " \
153 "bootm 0x30007FC0\0" \
154 "ramboot=" \
155 "set bootargs " CONFIG_RAMDISK_BOOT \
156 " initrd=0x33000000,8M ramdisk=8192\0" \
157 "mmcboot=" \
158 "set bootargs root=${mmcblk} rootfstype=${rootfstype}" \
159 CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
160 CONFIG_COMMON_BOOT "; run bootk\0" \
161 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
162 "bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
163 "verify=n\0" \
164 "rootfstype=cramfs\0" \
165 "console=" CONFIG_DEFAULT_CONSOLE \
166 "mtdparts=" MTDPARTS_DEFAULT \
167 "meminfo=mem=80M mem=256M@0x40000000 mem=128M@0x50000000\0" \
168 "mmcblk=/dev/mmcblk1p1\0" \
169 "bootblock=9\0" \
170 "ubiblock=8\0" \
171 "ubi=enabled\0" \
172 "opts=always_resume=1"
173
174 /* 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 "Goni # "
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 + 0x5000000)
187 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x4000000)
188
189 #define CONFIG_SYS_HZ 1000
190
191 /* valid baudrates */
192 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
193
194 /* Stack sizes */
195 #define CONFIG_STACKSIZE (256 << 10) /* 256 KiB */
196
197 /* Goni has 3 banks of DRAM, but swap the bank */
198 #define CONFIG_NR_DRAM_BANKS 3
199 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* OneDRAM Bank #0 */
200 #define PHYS_SDRAM_1_SIZE (80 << 20) /* 80 MB in Bank #0 */
201 #define PHYS_SDRAM_2 0x40000000 /* mDDR DMC1 Bank #1 */
202 #define PHYS_SDRAM_2_SIZE (256 << 20) /* 256 MB in Bank #1 */
203 #define PHYS_SDRAM_3 0x50000000 /* mDDR DMC2 Bank #2 */
204 #define PHYS_SDRAM_3_SIZE (128 << 20) /* 128 MB in Bank #2 */
205
206 #define CONFIG_SYS_MONITOR_BASE 0x00000000
207 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 KiB */
208
209 /* FLASH and environment organization */
210 #define CONFIG_ENV_IS_IN_ONENAND 1
211 #define CONFIG_ENV_SIZE (256 << 10) /* 256 KiB, 0x40000 */
212 #define CONFIG_ENV_ADDR (1 << 20) /* 1 MB, 0x100000 */
213
214 #define CONFIG_USE_ONENAND_BOARD_INIT
215 #define CONFIG_SAMSUNG_ONENAND 1
216 #define CONFIG_SYS_ONENAND_BASE 0xB0000000
217
218 #define CONFIG_DOS_PARTITION 1
219
220 #endif /* __CONFIG_H */