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#ifndef __CONFIG_H
29#define __CONFIG_H
30
31
32
33
34#define CONFIG_ARMV7 1
35#define CONFIG_OMAP 1
36#define CONFIG_OMAP34XX 1
37#define CONFIG_OMAP3430 1
38#define CONFIG_OMAP3_BEAGLE 1
39
40#define CONFIG_SDRC
41
42#include <asm/arch/cpu.h>
43#include <asm/arch/omap3.h>
44
45
46
47
48#define CONFIG_DISPLAY_CPUINFO 1
49#define CONFIG_DISPLAY_BOARDINFO 1
50
51
52#define V_OSCK 26000000
53#define V_SCLK (V_OSCK >> 1)
54
55#undef CONFIG_USE_IRQ
56#define CONFIG_MISC_INIT_R
57
58#define CONFIG_OF_LIBFDT 1
59
60#define CONFIG_CMDLINE_TAG 1
61#define CONFIG_SETUP_MEMORY_TAGS 1
62#define CONFIG_INITRD_TAG 1
63#define CONFIG_REVISION_TAG 1
64
65
66
67
68#define CONFIG_ENV_SIZE (128 << 10)
69
70#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (128 << 10))
71
72
73
74
75
76
77
78
79#define V_NS16550_CLK 48000000
80
81#define CONFIG_SYS_NS16550
82#define CONFIG_SYS_NS16550_SERIAL
83#define CONFIG_SYS_NS16550_REG_SIZE (-4)
84#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
85
86
87
88
89#define CONFIG_CONS_INDEX 3
90#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
91#define CONFIG_SERIAL3 3
92
93
94#define CONFIG_ENV_OVERWRITE
95#define CONFIG_BAUDRATE 115200
96#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
97 115200}
98#define CONFIG_GENERIC_MMC 1
99#define CONFIG_MMC 1
100#define CONFIG_OMAP_HSMMC 1
101#define CONFIG_DOS_PARTITION 1
102
103
104#define CONFIG_STATUS_LED 1
105#define CONFIG_BOARD_SPECIFIC_LED 1
106#define STATUS_LED_BIT 0x01
107#define STATUS_LED_STATE STATUS_LED_ON
108#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
109#define STATUS_LED_BIT1 0x02
110#define STATUS_LED_STATE1 STATUS_LED_ON
111#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
112#define STATUS_LED_BOOT STATUS_LED_BIT
113#define STATUS_LED_GREEN STATUS_LED_BIT1
114
115
116#define CONFIG_OMAP3_MICRON_DDR 1
117
118
119#define CONFIG_MUSB_UDC 1
120#define CONFIG_USB_OMAP3 1
121#define CONFIG_TWL4030_USB 1
122
123
124#define CONFIG_USB_DEVICE 1
125#define CONFIG_USB_TTY 1
126#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
127
128
129#define CONFIG_CMD_USB
130#define CONFIG_USB_EHCI
131#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
132
133
134#include <config_cmd_default.h>
135
136#define CONFIG_CMD_CACHE
137#define CONFIG_CMD_EXT2
138#define CONFIG_CMD_FAT
139#define CONFIG_CMD_JFFS2
140#define CONFIG_CMD_MTDPARTS
141#define CONFIG_MTD_DEVICE
142#define MTDIDS_DEFAULT "nand0=nand"
143#define MTDPARTS_DEFAULT "mtdparts=nand:512k(x-loader),"\
144 "1920k(u-boot),128k(u-boot-env),"\
145 "4m(kernel),-(fs)"
146
147#define CONFIG_CMD_I2C
148#define CONFIG_CMD_MMC
149#define CONFIG_USB_STORAGE
150#define CONFIG_CMD_NAND
151#define CONFIG_CMD_LED
152
153#undef CONFIG_CMD_FLASH
154#undef CONFIG_CMD_FPGA
155#undef CONFIG_CMD_IMI
156#undef CONFIG_CMD_IMLS
157#undef CONFIG_CMD_NET
158#undef CONFIG_CMD_NFS
159
160#define CONFIG_SYS_NO_FLASH
161#define CONFIG_HARD_I2C 1
162#define CONFIG_SYS_I2C_SPEED 100000
163#define CONFIG_SYS_I2C_SLAVE 1
164#define CONFIG_SYS_I2C_BUS 0
165#define CONFIG_SYS_I2C_BUS_SELECT 1
166#define CONFIG_I2C_MULTI_BUS 1
167#define CONFIG_DRIVER_OMAP34XX_I2C 1
168
169
170
171
172#define CONFIG_TWL4030_POWER 1
173#define CONFIG_TWL4030_LED 1
174
175
176
177
178#define CONFIG_SYS_NAND_QUIET_TEST 1
179#define CONFIG_NAND_OMAP_GPMC
180#define CONFIG_SYS_NAND_ADDR NAND_BASE
181
182#define CONFIG_SYS_NAND_BASE NAND_BASE
183
184
185#define GPMC_NAND_ECC_LP_x16_LAYOUT 1
186
187#define CONFIG_SYS_MAX_NAND_DEVICE 1
188
189#define CONFIG_JFFS2_NAND
190
191#define CONFIG_JFFS2_DEV "nand0"
192
193#define CONFIG_JFFS2_PART_OFFSET 0x680000
194#define CONFIG_JFFS2_PART_SIZE 0xf980000
195
196
197
198#define CONFIG_BOOTDELAY 10
199
200#define CONFIG_EXTRA_ENV_SETTINGS \
201 "loadaddr=0x82000000\0" \
202 "usbtty=cdc_acm\0" \
203 "console=ttyS2,115200n8\0" \
204 "mpurate=auto\0" \
205 "vram=12M\0" \
206 "dvimode=1024x768MR-16@60\0" \
207 "defaultdisplay=dvi\0" \
208 "mmcdev=0\0" \
209 "mmcroot=/dev/mmcblk0p2 rw\0" \
210 "mmcrootfstype=ext3 rootwait\0" \
211 "nandroot=/dev/mtdblock4 rw\0" \
212 "nandrootfstype=jffs2\0" \
213 "mmcargs=setenv bootargs console=${console} " \
214 "mpurate=${mpurate} " \
215 "vram=${vram} " \
216 "omapfb.mode=dvi:${dvimode} " \
217 "omapfb.debug=y " \
218 "omapdss.def_disp=${defaultdisplay} " \
219 "root=${mmcroot} " \
220 "rootfstype=${mmcrootfstype}\0" \
221 "nandargs=setenv bootargs console=${console} " \
222 "mpurate=${mpurate} " \
223 "vram=${vram} " \
224 "omapfb.mode=dvi:${dvimode} " \
225 "omapfb.debug=y " \
226 "omapdss.def_disp=${defaultdisplay} " \
227 "root=${nandroot} " \
228 "rootfstype=${nandrootfstype}\0" \
229 "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
230 "importbootenv=echo Importing environment from mmc ...; " \
231 "env import -t $loadaddr $filesize\0" \
232 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
233 "mmcboot=echo Booting from mmc ...; " \
234 "run mmcargs; " \
235 "bootm ${loadaddr}\0" \
236 "nandboot=echo Booting from nand ...; " \
237 "run nandargs; " \
238 "nand read ${loadaddr} 280000 400000; " \
239 "bootm ${loadaddr}\0" \
240
241#define CONFIG_BOOTCOMMAND \
242 "if mmc rescan ${mmcdev}; then " \
243 "echo SD/MMC found on device ${mmcdev};" \
244 "if run loadbootenv; then " \
245 "run importbootenv;" \
246 "fi;" \
247 "if test -n $uenvcmd; then " \
248 "echo Running uenvcmd ...;" \
249 "run uenvcmd;" \
250 "fi;" \
251 "if run loaduimage; then " \
252 "run mmcboot;" \
253 "fi;" \
254 "fi;" \
255 "run nandboot;" \
256
257#define CONFIG_AUTO_COMPLETE 1
258
259
260
261#define CONFIG_SYS_LONGHELP
262#define CONFIG_SYS_HUSH_PARSER
263#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
264#define CONFIG_SYS_PROMPT "OMAP3 beagleboard.org # "
265#define CONFIG_SYS_CBSIZE 256
266
267#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
268 sizeof(CONFIG_SYS_PROMPT) + 16)
269#define CONFIG_SYS_MAXARGS 16
270
271#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE)
272
273#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
274
275#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
276 0x01F00000)
277
278#define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0)
279
280
281
282
283
284
285
286#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2)
287#define CONFIG_SYS_PTV 2
288#define CONFIG_SYS_HZ 1000
289
290
291
292
293
294
295#define CONFIG_STACKSIZE (128 << 10)
296#ifdef CONFIG_USE_IRQ
297#define CONFIG_STACKSIZE_IRQ (4 << 10)
298#define CONFIG_STACKSIZE_FIQ (4 << 10)
299#endif
300
301
302
303
304#define CONFIG_NR_DRAM_BANKS 2
305#define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0
306#define PHYS_SDRAM_1_SIZE (32 << 20)
307#define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1
308
309
310#define SDRC_R_B_C 1
311
312
313
314
315
316
317
318
319#define PISMO1_NAND_SIZE GPMC_SIZE_128M
320#define PISMO1_ONEN_SIZE GPMC_SIZE_128M
321
322#define CONFIG_SYS_MONITOR_LEN (256 << 10)
323
324#if defined(CONFIG_CMD_NAND)
325#define CONFIG_SYS_FLASH_BASE PISMO1_NAND_BASE
326#endif
327
328
329#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
330#define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
331
332#define CONFIG_ENV_IS_IN_NAND 1
333#define ONENAND_ENV_OFFSET 0x260000
334#define SMNAND_ENV_OFFSET 0x260000
335
336#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10)
337#define CONFIG_ENV_OFFSET SMNAND_ENV_OFFSET
338#define CONFIG_ENV_ADDR SMNAND_ENV_OFFSET
339
340#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
341#define CONFIG_SYS_INIT_RAM_ADDR 0x4020f800
342#define CONFIG_SYS_INIT_RAM_SIZE 0x800
343#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
344 CONFIG_SYS_INIT_RAM_SIZE - \
345 GENERATED_GBL_DATA_SIZE)
346
347#define CONFIG_OMAP3_SPI
348
349#endif
350