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