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
28
29
30
31
32#ifndef __CONFIG_H
33#define __CONFIG_H
34
35#include <asm/mach-types.h>
36#ifdef MACH_TYPE_OMAP3_CPS
37#error "MACH_TYPE_OMAP3_CPS has been defined properly, please remove this."
38#else
39#define MACH_TYPE_OMAP3_CPS 2751
40#endif
41#define CONFIG_MACH_TYPE MACH_TYPE_OMAP3_CPS
42
43
44
45
46#define CONFIG_OMAP
47#define CONFIG_OMAP34XX
48
49#define CONFIG_SYS_TEXT_BASE 0x80008000
50
51#define CONFIG_SDRC
52
53#include <asm/arch/cpu.h>
54#include <asm/arch/omap3.h>
55
56
57
58
59#define CONFIG_DISPLAY_CPUINFO
60#define CONFIG_DISPLAY_BOARDINFO
61
62
63#define V_OSCK 26000000
64#define V_SCLK (V_OSCK >> 1)
65
66#undef CONFIG_USE_IRQ
67#define CONFIG_MISC_INIT_R
68
69#define CONFIG_CMDLINE_TAG
70#define CONFIG_SETUP_MEMORY_TAGS
71#define CONFIG_INITRD_TAG
72#define CONFIG_REVISION_TAG
73
74
75
76
77#define CONFIG_ENV_SIZE (128 << 10)
78
79#define CONFIG_SYS_MALLOC_LEN (1024 << 10)
80
81
82
83
84
85
86
87
88#define V_NS16550_CLK 48000000
89
90#define CONFIG_SYS_NS16550
91#define CONFIG_SYS_NS16550_SERIAL
92#define CONFIG_SYS_NS16550_REG_SIZE (-4)
93#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
94
95
96
97
98#define CONFIG_CONS_INDEX 3
99#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
100#define CONFIG_SERIAL3 3
101
102
103#define CONFIG_ENV_OVERWRITE
104#define CONFIG_BAUDRATE 115200
105#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
106 115200}
107#define CONFIG_GENERIC_MMC 1
108#define CONFIG_MMC 1
109#define CONFIG_OMAP_HSMMC 1
110#define CONFIG_DOS_PARTITION
111
112
113#define CONFIG_OMAP3_MICRON_DDR
114
115
116#define CONFIG_RBTREE
117#define CONFIG_MTD_PARTITIONS
118#define CONFIG_LZO
119
120
121#include <config_cmd_default.h>
122
123#define CONFIG_CMD_FAT
124#define CONFIG_CMD_UBI
125#define CONFIG_CMD_UBIFS
126#define CONFIG_CMD_MTDPARTS
127#define CONFIG_MTD_DEVICE
128#define MTDIDS_DEFAULT "nand0=omap2-nand.0"
129#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:896k(uboot),"\
130 "128k(uboot-env),3m(kernel),252m(ubi)"
131
132#define CONFIG_CMD_I2C
133#define CONFIG_CMD_MMC
134#define CONFIG_CMD_NAND
135
136#undef CONFIG_CMD_FLASH
137#undef CONFIG_CMD_FPGA
138#undef CONFIG_CMD_IMI
139#undef CONFIG_CMD_IMLS
140#define CONFIG_CMD_NET
141#undef CONFIG_CMD_NFS
142
143#define CONFIG_SYS_NO_FLASH
144#define CONFIG_HARD_I2C
145#define CONFIG_SYS_I2C_SPEED 100000
146#define CONFIG_SYS_I2C_SLAVE 1
147#define CONFIG_SYS_I2C_BUS 0
148#define CONFIG_SYS_I2C_BUS_SELECT 1
149#define CONFIG_DRIVER_OMAP34XX_I2C 1
150
151
152
153
154#define CONFIG_TWL4030_POWER
155#define CONFIG_TWL4030_LED
156
157
158
159
160#define CONFIG_NAND_OMAP_GPMC
161#define CONFIG_SYS_NAND_ADDR NAND_BASE
162
163#define CONFIG_SYS_NAND_BASE NAND_BASE
164
165
166#define GPMC_NAND_ECC_LP_x16_LAYOUT
167
168#define CONFIG_SYS_MAX_NAND_DEVICE 1
169
170#if defined(CONFIG_CMD_NET)
171
172
173
174
175#define CONFIG_SMC911X
176#define CONFIG_SMC911X_32_BIT
177#define CONFIG_SMC911X_BASE 0x2C000000
178
179#endif
180
181
182#define CONFIG_BOOTDELAY 1
183
184#define CONFIG_EXTRA_ENV_SETTINGS \
185 "loadaddr=0x82000000\0" \
186 "console=ttyO2,115200n8\0" \
187 "mtdids=" MTDIDS_DEFAULT "\0" \
188 "mtdparts=" MTDPARTS_DEFAULT "\0" \
189 "partition=nand0,3\0"\
190 "mmcroot=/dev/mmcblk0p2 rw\0" \
191 "mmcrootfstype=ext3 rootwait\0" \
192 "nandroot=ubi0:rootfs ro\0" \
193 "nandrootfstype=ubifs\0" \
194 "nfspath=/srv/nfs\0" \
195 "tftpfilename=uImage\0" \
196 "gatewayip=0.0.0.0\0" \
197 "mmcargs=setenv bootargs console=${console} " \
198 "${mtdparts} " \
199 "root=${mmcroot} " \
200 "rootfstype=${mmcrootfstype} " \
201 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
202 "${netmask}:${hostname}::off\0" \
203 "nandargs=setenv bootargs console=${console} " \
204 "${mtdparts} " \
205 "ubi.mtd=3 " \
206 "root=${nandroot} " \
207 "rootfstype=${nandrootfstype} " \
208 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
209 "${netmask}:${hostname}::off\0" \
210 "netargs=setenv bootargs console=${console} " \
211 "${mtdparts} " \
212 "root=/dev/nfs rw " \
213 "nfsroot=${serverip}:${nfspath} " \
214 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
215 "${netmask}:${hostname}::off\0" \
216 "mmcboot=echo Booting from mmc ...; " \
217 "run mmcargs; " \
218 "bootm ${loadaddr}\0" \
219 "nandboot=echo Booting from nand ...; " \
220 "run nandargs; " \
221 "nand read ${loadaddr} 100000 300000; " \
222 "bootm ${loadaddr}\0" \
223 "netboot=echo Booting from network ...; " \
224 "run netargs; " \
225 "tftp ${loadaddr} ${serverip}:${tftpfilename}; " \
226 "bootm ${loadaddr}\0" \
227 "resetenv=nand erase e0000 20000\0"\
228
229#define CONFIG_BOOTCOMMAND \
230 "run nandboot"
231
232#define CONFIG_AUTO_COMPLETE
233
234
235
236#define CONFIG_SYS_LONGHELP
237#define CONFIG_SYS_HUSH_PARSER
238#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
239#define CONFIG_SYS_PROMPT "DIG297# "
240#define CONFIG_SYS_CBSIZE 256
241
242#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
243 sizeof(CONFIG_SYS_PROMPT) + 16)
244#define CONFIG_SYS_MAXARGS 16
245
246#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE)
247
248#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
249
250#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
251 0x01F00000)
252
253#define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0)
254
255
256
257
258
259
260
261#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2)
262#define CONFIG_SYS_PTV 2
263#define CONFIG_SYS_HZ 1000
264
265
266
267
268
269
270#define CONFIG_STACKSIZE (128 << 10)
271#ifdef CONFIG_USE_IRQ
272#define CONFIG_STACKSIZE_IRQ (4 << 10)
273#define CONFIG_STACKSIZE_FIQ (4 << 10)
274#endif
275
276
277
278
279#define CONFIG_NR_DRAM_BANKS 2
280#define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0
281#define PHYS_SDRAM_1_SIZE (32 << 20)
282#define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1
283
284
285
286
287
288
289
290
291#define PISMO1_NAND_SIZE GPMC_SIZE_128M
292
293#define CONFIG_SYS_MONITOR_LEN (256 << 10)
294
295#define CONFIG_SYS_FLASH_BASE boot_flash_base
296
297
298#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
299
300#define CONFIG_ENV_IS_IN_NAND
301#define SMNAND_ENV_OFFSET 0x0E0000
302
303#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10)
304#define CONFIG_ENV_OFFSET SMNAND_ENV_OFFSET
305#define CONFIG_ENV_ADDR SMNAND_ENV_OFFSET
306
307#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
308#define CONFIG_SYS_INIT_RAM_ADDR 0x4020f800
309#define CONFIG_SYS_INIT_RAM_SIZE 0x800
310#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
311 CONFIG_SYS_INIT_RAM_SIZE - \
312 GENERATED_GBL_DATA_SIZE)
313
314#endif
315