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#ifndef __CONFIG_H
28#define __CONFIG_H
29
30
31#define CONFIG_SAMSUNG 1
32#define CONFIG_S5P 1
33#define CONFIG_S5PC110 1
34#define CONFIG_MACH_GONI 1
35
36#include <asm/arch/cpu.h>
37
38#define CONFIG_ARCH_CPU_INIT
39#define CONFIG_DISPLAY_CPUINFO
40#define CONFIG_DISPLAY_BOARDINFO
41
42
43#define CONFIG_SYS_CLK_FREQ_C110 24000000
44
45
46#define CONFIG_SYS_SDRAM_BASE 0x30000000
47
48#define CONFIG_SETUP_MEMORY_TAGS
49#define CONFIG_CMDLINE_TAG
50#define CONFIG_INITRD_TAG
51#define CONFIG_CMDLINE_EDITING
52
53
54
55
56
57#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20))
58
59
60
61#define CONFIG_SERIAL2 1
62#define CONFIG_BAUDRATE 115200
63
64
65#define CONFIG_GENERIC_MMC
66#define CONFIG_MMC
67#define CONFIG_SDHCI
68#define CONFIG_S5P_SDHCI
69
70
71#define CONFIG_PWM 1
72
73
74#define CONFIG_SYS_NO_FLASH 1
75
76
77#include <config_cmd_default.h>
78
79#undef CONFIG_CMD_FPGA
80#undef CONFIG_CMD_MISC
81#undef CONFIG_CMD_NET
82#undef CONFIG_CMD_NFS
83#undef CONFIG_CMD_XIMG
84#define CONFIG_CMD_CACHE
85#define CONFIG_CMD_REGINFO
86#define CONFIG_CMD_ONENAND
87#define CONFIG_CMD_MTDPARTS
88#define CONFIG_CMD_MMC
89
90#define CONFIG_BOOTDELAY 1
91#define CONFIG_ZERO_BOOTDELAY_CHECK
92
93#define CONFIG_MTD_DEVICE
94#define CONFIG_MTD_PARTITIONS
95
96
97#define MTDIDS_DEFAULT "onenand0=samsung-onenand"
98#define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:1m(bootloader)"\
99 ",256k(params)"\
100 ",2816k(config)"\
101 ",8m(csa)"\
102 ",7m(kernel)"\
103 ",1m(log)"\
104 ",12m(modem)"\
105 ",60m(qboot)"\
106 ",-(UBI)\0"
107
108#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
109
110#define CONFIG_BOOTCOMMAND "run ubifsboot"
111
112#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
113
114#define CONFIG_RAMDISK_BOOT "root=/dev/ram0 rw rootfstype=ext2" \
115 " ${console} ${meminfo}"
116
117#define CONFIG_COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
118
119#define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=3 ubi.mtd=6" \
120 " rootfstype=cramfs " CONFIG_COMMON_BOOT
121
122#define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x100000;" \
123 " onenand write 0x32008000 0x0 0x100000\0"
124
125#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=3 ubi.mtd=6"
126
127#define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc"
128
129#define CONFIG_ENV_OVERWRITE
130#define CONFIG_SYS_CONSOLE_IS_IN_ENV
131#define CONFIG_EXTRA_ENV_SETTINGS \
132 CONFIG_UPDATEB \
133 "updatek=" \
134 "onenand erase 0xc00000 0x600000;" \
135 "onenand write 0x31008000 0xc00000 0x600000\0" \
136 "updateu=" \
137 "onenand erase 0x01560000 0x1eaa0000;" \
138 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
139 "bootk=" \
140 "onenand read 0x30007FC0 0xc00000 0x600000;" \
141 "bootm 0x30007FC0\0" \
142 "flashboot=" \
143 "set bootargs root=/dev/mtdblock${bootblock} " \
144 "rootfstype=${rootfstype}" CONFIG_UBI_MTD " ${opts} " \
145 "${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
146 "ubifsboot=" \
147 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
148 CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
149 CONFIG_COMMON_BOOT "; run bootk\0" \
150 "tftpboot=" \
151 "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
152 CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
153 CONFIG_COMMON_BOOT "; tftp 0x30007FC0 uImage; " \
154 "bootm 0x30007FC0\0" \
155 "ramboot=" \
156 "set bootargs " CONFIG_RAMDISK_BOOT \
157 " initrd=0x33000000,8M ramdisk=8192\0" \
158 "mmcboot=" \
159 "set bootargs root=${mmcblk} rootfstype=${rootfstype}" \
160 CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
161 CONFIG_COMMON_BOOT "; run bootk\0" \
162 "boottrace=setenv opts initcall_debug; run bootcmd\0" \
163 "bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
164 "verify=n\0" \
165 "rootfstype=cramfs\0" \
166 "console=" CONFIG_DEFAULT_CONSOLE \
167 "mtdparts=" MTDPARTS_DEFAULT \
168 "meminfo=mem=80M mem=256M@0x40000000 mem=128M@0x50000000\0" \
169 "mmcblk=/dev/mmcblk1p1\0" \
170 "bootblock=9\0" \
171 "ubiblock=8\0" \
172 "ubi=enabled\0" \
173 "opts=always_resume=1"
174
175
176#define CONFIG_SYS_LONGHELP
177#define CONFIG_SYS_HUSH_PARSER
178#define CONFIG_SYS_PROMPT "Goni # "
179#define CONFIG_SYS_CBSIZE 256
180#define CONFIG_SYS_PBSIZE 384
181#define CONFIG_SYS_MAXARGS 16
182
183#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
184
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
192#define CONFIG_NR_DRAM_BANKS 3
193#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
194#define PHYS_SDRAM_1_SIZE (80 << 20)
195#define PHYS_SDRAM_2 0x40000000
196#define PHYS_SDRAM_2_SIZE (256 << 20)
197#define PHYS_SDRAM_3 0x50000000
198#define PHYS_SDRAM_3_SIZE (128 << 20)
199
200#define CONFIG_SYS_MONITOR_BASE 0x00000000
201#define CONFIG_SYS_MONITOR_LEN (256 << 10)
202
203
204#define CONFIG_ENV_IS_IN_ONENAND 1
205#define CONFIG_ENV_SIZE (256 << 10)
206#define CONFIG_ENV_ADDR (1 << 20)
207
208#define CONFIG_USE_ONENAND_BOARD_INIT
209#define CONFIG_SAMSUNG_ONENAND 1
210#define CONFIG_SYS_ONENAND_BASE 0xB0000000
211
212#define CONFIG_DOS_PARTITION 1
213
214#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)
215
216#define CONFIG_SYS_CACHELINE_SIZE 64
217
218#define CONFIG_POWER
219#define CONFIG_POWER_I2C
220#define CONFIG_POWER_MAX8998
221
222#include <asm/arch/gpio.h>
223
224
225
226#define CONFIG_SOFT_I2C_GPIO_SCL s5pc110_gpio_get_nr(j4, 3)
227#define CONFIG_SOFT_I2C_GPIO_SDA s5pc110_gpio_get_nr(j4, 0)
228
229#define CONFIG_SOFT_I2C 1
230#define CONFIG_SYS_I2C_SPEED 50000
231#define CONFIG_I2C_MULTI_BUS
232#define CONFIG_SYS_MAX_I2C_BUS 7
233#define CONFIG_USB_GADGET
234#define CONFIG_USB_GADGET_S3C_UDC_OTG
235#define CONFIG_USB_GADGET_DUALSPEED
236
237#endif
238