1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#ifndef __OMAP3_CAIRO_CONFIG_H
20#define __OMAP3_CAIRO_CONFIG_H
21
22
23
24
25
26
27
28
29#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
30#define CONFIG_SPL_BSS_START_ADDR 0x80000000
31#define CONFIG_SPL_BSS_MAX_SIZE (512 << 10)
32#define CONFIG_SYS_SPL_MALLOC_START 0x80208000
33#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000
34
35#include <configs/ti_omap3_common.h>
36
37#define CONFIG_REVISION_TAG 1
38#define CONFIG_ENV_OVERWRITE
39
40
41#define CONFIG_I2C_MULTI_BUS 1
42
43
44#define CONFIG_SYS_I2C_NOPROBES { {0x0, 0x0} }
45
46
47
48
49
50
51
52
53#define CONFIG_SYS_MAX_NAND_DEVICE 1
54
55#define CONFIG_EXTRA_ENV_SETTINGS \
56 "machid=ffffffff\0" \
57 "fdt_high=0x87000000\0" \
58 "baudrate=115200\0" \
59 "fec_addr=00:50:C2:7E:90:F0\0" \
60 "netmask=255.255.255.0\0" \
61 "ipaddr=192.168.2.9\0" \
62 "gateway=192.168.2.1\0" \
63 "serverip=192.168.2.10\0" \
64 "nfshost=192.168.2.10\0" \
65 "stdin=serial\0" \
66 "stdout=serial\0" \
67 "stderr=serial\0" \
68 "bootargs_mmc_ramdisk=mem=128M " \
69 "console=ttyO1,115200n8 " \
70 "root=/dev/ram0 rw " \
71 "initrd=0x81600000,16M " \
72 "mpurate=600 ramdisk_size=16384 omapfb.rotate=1 " \
73 "omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y\0" \
74 "mmcboot=mmc init; " \
75 "fatload mmc 0 0x80000000 uImage; " \
76 "fatload mmc 0 0x81600000 ramdisk.gz; " \
77 "setenv bootargs ${bootargs_mmc_ramdisk}; " \
78 "bootm 0x80000000\0" \
79 "bootargs_nfs=mem=99M console=ttyO0,115200n8 noinitrd rw ip=dhcp " \
80 "root=/dev/nfs " \
81 "nfsroot=192.168.2.10:/home/spiid/workdir/Quipos/rootfs,nolock " \
82 "mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 " \
83 "omap_vout.vid1_static_vrfb_alloc=y\0" \
84 "boot_nfs=run get_kernel; setenv bootargs ${bootargs_nfs}; " \
85 "bootm 0x80000000\0" \
86 "bootargs_nand=mem=128M console=ttyO1,115200n8 noinitrd " \
87 "root=/dev/mtdblock4 rw rootfstype=jffs2 mpurate=600 " \
88 "omap_vout.vid1_static_vrfb_alloc=y omapfb.rotate=1 " \
89 "omapfb.rotate_type=1\0" \
90 "boot_nand=nand read.i 0x80000000 280000 300000; setenv " \
91 "bootargs ${bootargs_nand}; bootm 0x80000000\0" \
92 "ledorange=i2c dev 1; i2c mw 60 00 00 1; i2c mw 60 14 FF 1; " \
93 "i2c mw 60 15 FF 1; i2c mw 60 16 FF 1; i2c mw 60 17 FF 1; " \
94 "i2c mw 60 09 10 1; i2c mw 60 06 10 1\0" \
95 "ledgreen=i2c dev 1; i2c mw 60 00 00 1; i2c mw 60 14 FF 1; " \
96 "i2c mw 60 15 FF 1; i2c mw 60 16 FF 1; i2c mw 60 17 FF 1; i2c " \
97 "mw 60 09 00 1; i2c mw 60 06 10 1\0" \
98 "ledoff=i2c dev 1; i2c mw 60 00 00 1; i2c mw 60 14 FF 1; " \
99 "i2c mw 60 15 FF 1; i2c mw 60 16 FF 1; i2c mw 60 17 FF 1; " \
100 "i2c mw 60 09 00 1; i2c mw 60 06 0 1\0" \
101 "ledred=i2c dev 1; i2c mw 60 00 00 1; i2c mw 60 14 FF 1; " \
102 "i2c mw 60 15 FF 1; i2c mw 60 16 FF 1; i2c mw 60 17 FF 1; " \
103 "i2c mw 60 09 10 1; i2c mw 60 06 0 1\0" \
104 "flash_xloader=mw.b 0x81600000 0xff 0x20000; " \
105 "nand erase 0 20000; " \
106 "fatload mmc 0 0x81600000 MLO; " \
107 "nandecc hw; " \
108 "nand write.i 0x81600000 0 20000;\0" \
109 "flash_uboot=mw.b 0x81600000 0xff 0x40000; " \
110 "nand erase 80000 40000; " \
111 "fatload mmc 0 0x81600000 u-boot.bin; " \
112 "nandecc sw; " \
113 "nand write.i 0x81600000 80000 40000;\0" \
114 "flash_kernel=mw.b 0x81600000 0xff 0x300000; " \
115 "nand erase 280000 300000; " \
116 "fatload mmc 0 0x81600000 uImage; " \
117 "nandecc sw; " \
118 "nand write.i 0x81600000 280000 300000;\0" \
119 "flash_rootfs=fatload mmc 0 0x81600000 rootfs.jffs2; " \
120 "nandecc sw; " \
121 "nand write.jffs2 0x680000 0xFF ${filesize}; " \
122 "nand erase 680000 ${filesize}; " \
123 "nand write.jffs2 81600000 680000 ${filesize};\0" \
124 "flash_scrub=nand scrub; " \
125 "run flash_xloader; " \
126 "run flash_uboot; " \
127 "run flash_kernel; " \
128 "run flash_rootfs;\0" \
129 "flash_all=run ledred; " \
130 "nand erase.chip; " \
131 "run ledorange; " \
132 "run flash_xloader; " \
133 "run flash_uboot; " \
134 "run flash_kernel; " \
135 "run flash_rootfs; " \
136 "run ledgreen; " \
137 "run boot_nand; \0" \
138
139#define CONFIG_BOOTCOMMAND \
140 "if fatload mmc 0 0x81600000 MLO; then run flash_all; " \
141 "else run boot_nand; fi"
142
143
144
145
146
147
148#define CONFIG_SYS_PTV 2
149
150
151
152
153
154
155#if defined(CONFIG_CMD_NAND)
156#define CONFIG_SYS_FLASH_BASE NAND_BASE
157#endif
158
159
160#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
161#define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
162
163#define CONFIG_ENV_SIZE (128 << 10)
164#define ONENAND_ENV_OFFSET 0x260000
165
166#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10)
167#define CONFIG_ENV_OFFSET 0x260000
168#define CONFIG_ENV_ADDR 0x260000
169
170
171
172
173#define CONFIG_SYS_NAND_5_ADDR_CYCLE
174#define CONFIG_SYS_NAND_PAGE_COUNT 64
175#define CONFIG_SYS_NAND_PAGE_SIZE 2048
176#define CONFIG_SYS_NAND_OOBSIZE 64
177#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
178#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
179#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
180 10, 11, 12, 13}
181#define CONFIG_SYS_NAND_ECCSIZE 512
182#define CONFIG_SYS_NAND_ECCBYTES 3
183#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
184#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
185
186#ifdef CONFIG_SPL_OS_BOOT
187#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
188#endif
189
190
191#define CONFIG_BOOTFILE "uImage"
192
193
194#define CONFIG_MACH_TYPE 3063
195
196
197
198
199
200
201
202#define CONFIG_SYS_MAX_FLASH_SECT 520
203
204#define CONFIG_SYS_MAX_FLASH_BANKS 2
205
206
207
208
209
210#define CONFIG_SYS_FLASH_ERASE_TOUT (100 * CONFIG_SYS_HZ)
211#define CONFIG_SYS_FLASH_WRITE_TOUT (100 * CONFIG_SYS_HZ)
212
213
214#define CONFIG_SYS_MAX_MTD_BANKS (CONFIG_SYS_MAX_FLASH_BANKS + \
215 CONFIG_SYS_MAX_NAND_DEVICE)
216#define CONFIG_SYS_JFFS2_MEM_NAND
217
218#define CONFIG_SYS_JFFS2_FIRST_BANK CONFIG_SYS_MAX_FLASH_BANKS
219#define CONFIG_SYS_JFFS2_NUM_BANKS 1
220
221#endif
222