1
2
3
4
5
6
7
8
9
10#ifndef __CONFIG_H
11#define __CONFIG_H
12
13
14
15
16#define CONFIG_OMAP
17#define CONFIG_CM_T3517
18#define CONFIG_OMAP_COMMON
19
20#define CONFIG_ARM_ERRATA_454179
21#define CONFIG_ARM_ERRATA_430973
22#define CONFIG_ARM_ERRATA_621766
23
24#define CONFIG_SYS_TEXT_BASE 0x80008000
25
26
27
28
29
30
31
32#define CONFIG_EMIF4
33
34#include <asm/arch/cpu.h>
35#include <asm/arch/omap.h>
36
37#define CONFIG_MACH_TYPE MACH_TYPE_CM_T3517
38
39
40
41
42#define CONFIG_DISPLAY_CPUINFO
43#define CONFIG_DISPLAY_BOARDINFO
44
45
46#define V_OSCK 26000000
47#define V_SCLK (V_OSCK >> 1)
48
49#define CONFIG_MISC_INIT_R
50
51
52
53
54
55
56
57#define CONFIG_SYS_BOOTMAPSZ 0x4000
58
59#define CONFIG_CMDLINE_TAG
60#define CONFIG_SETUP_MEMORY_TAGS
61#define CONFIG_INITRD_TAG
62#define CONFIG_REVISION_TAG
63#define CONFIG_SERIAL_TAG
64
65
66
67
68#define CONFIG_ENV_SIZE (128 << 10)
69#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (128 << 10))
70
71
72
73
74
75
76
77
78#define CONFIG_SYS_NS16550_SERIAL
79#define CONFIG_SYS_NS16550_REG_SIZE (-4)
80#define CONFIG_SYS_NS16550_CLK 48000000
81
82
83
84
85#define CONFIG_CONS_INDEX 3
86#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
87#define CONFIG_SERIAL3 3
88#define CONFIG_SYS_CONSOLE_IS_IN_ENV
89
90
91#define CONFIG_ENV_OVERWRITE
92#define CONFIG_BAUDRATE 115200
93#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
94 115200}
95
96#define CONFIG_OMAP_GPIO
97
98#define CONFIG_GENERIC_MMC
99#define CONFIG_MMC
100#define CONFIG_OMAP_HSMMC
101#define CONFIG_DOS_PARTITION
102
103
104#define CONFIG_USB_MUSB_AM35X
105
106#ifndef CONFIG_USB_MUSB_AM35X
107#define CONFIG_USB_OMAP3
108#define CONFIG_USB_EHCI
109#define CONFIG_USB_EHCI_OMAP
110#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 146
111#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 147
112#else
113#define CONFIG_USB_MUSB_PIO_ONLY
114#endif
115
116
117#define CONFIG_CMD_MTDPARTS
118#define CONFIG_MTD_DEVICE
119#define CONFIG_MTD_PARTITIONS
120#define MTDIDS_DEFAULT "nand0=nand"
121#define MTDPARTS_DEFAULT "mtdparts=nand:512k(x-loader),"\
122 "1920k(u-boot),256k(u-boot-env),"\
123 "4m(kernel),-(fs)"
124
125#define CONFIG_CMD_NAND
126
127#define CONFIG_SYS_NO_FLASH
128#define CONFIG_SYS_I2C
129#define CONFIG_SYS_OMAP24_I2C_SPEED 400000
130#define CONFIG_SYS_OMAP24_I2C_SLAVE 1
131#define CONFIG_SYS_I2C_OMAP34XX
132#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
133#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
134#define CONFIG_SYS_I2C_EEPROM_BUS 0
135#define CONFIG_I2C_MULTI_BUS
136
137
138
139
140#define CONFIG_NAND_OMAP_GPMC
141#define CONFIG_SYS_NAND_ADDR NAND_BASE
142
143#define CONFIG_SYS_NAND_BASE NAND_BASE
144
145
146#define CONFIG_SYS_MAX_NAND_DEVICE 1
147
148
149
150#define CONFIG_EXTRA_ENV_SETTINGS \
151 "loadaddr=0x82000000\0" \
152 "baudrate=115200\0" \
153 "console=ttyO2,115200n8\0" \
154 "netretry=yes\0" \
155 "mpurate=auto\0" \
156 "vram=12M\0" \
157 "dvimode=1024x768MR-16@60\0" \
158 "defaultdisplay=dvi\0" \
159 "mmcdev=0\0" \
160 "mmcroot=/dev/mmcblk0p2 rw rootwait\0" \
161 "mmcrootfstype=ext4\0" \
162 "nandroot=/dev/mtdblock4 rw\0" \
163 "nandrootfstype=ubifs\0" \
164 "mmcargs=setenv bootargs console=${console} " \
165 "mpurate=${mpurate} " \
166 "vram=${vram} " \
167 "omapfb.mode=dvi:${dvimode} " \
168 "omapdss.def_disp=${defaultdisplay} " \
169 "root=${mmcroot} " \
170 "rootfstype=${mmcrootfstype}\0" \
171 "nandargs=setenv bootargs console=${console} " \
172 "mpurate=${mpurate} " \
173 "vram=${vram} " \
174 "omapfb.mode=dvi:${dvimode} " \
175 "omapdss.def_disp=${defaultdisplay} " \
176 "root=${nandroot} " \
177 "rootfstype=${nandrootfstype}\0" \
178 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
179 "bootscript=echo Running bootscript from mmc ...; " \
180 "source ${loadaddr}\0" \
181 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
182 "mmcboot=echo Booting from mmc ...; " \
183 "run mmcargs; " \
184 "bootm ${loadaddr}\0" \
185 "nandboot=echo Booting from nand ...; " \
186 "run nandargs; " \
187 "nand read ${loadaddr} 2a0000 400000; " \
188 "bootm ${loadaddr}\0" \
189
190#define CONFIG_BOOTCOMMAND \
191 "mmc dev ${mmcdev}; if mmc rescan; then " \
192 "if run loadbootscript; then " \
193 "run bootscript; " \
194 "else " \
195 "if run loaduimage; then " \
196 "run mmcboot; " \
197 "else run nandboot; " \
198 "fi; " \
199 "fi; " \
200 "else run nandboot; fi"
201
202
203
204
205#define CONFIG_AUTO_COMPLETE
206#define CONFIG_CMDLINE_EDITING
207#define CONFIG_TIMESTAMP
208#define CONFIG_SYS_AUTOLOAD "no"
209#define CONFIG_SYS_LONGHELP
210#define CONFIG_SYS_CBSIZE 512
211
212#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
213 sizeof(CONFIG_SYS_PROMPT) + 16)
214#define CONFIG_SYS_MAXARGS 32
215
216#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE)
217
218#define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0 + 0x02000000)
219
220
221
222
223
224
225#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2)
226#define CONFIG_SYS_PTV 2
227#define CONFIG_SYS_HZ 1000
228
229
230
231
232#define CONFIG_NR_DRAM_BANKS 1
233#define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0
234#define CONFIG_SYS_CS0_SIZE (256 << 20)
235
236
237
238
239
240
241
242#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
243#define CONFIG_SYS_MONITOR_LEN (256 << 10)
244
245#define CONFIG_ENV_IS_IN_NAND
246#define SMNAND_ENV_OFFSET 0x260000
247#define CONFIG_ENV_OFFSET SMNAND_ENV_OFFSET
248#define CONFIG_ENV_ADDR SMNAND_ENV_OFFSET
249
250#if defined(CONFIG_CMD_NET)
251#define CONFIG_DRIVER_TI_EMAC
252#define CONFIG_DRIVER_TI_EMAC_USE_RMII
253#define CONFIG_MII
254#define CONFIG_SMC911X
255#define CONFIG_SMC911X_32_BIT
256#define CONFIG_SMC911X_BASE (0x2C000000 + (16 << 20))
257#define CONFIG_ARP_TIMEOUT 200UL
258#define CONFIG_NET_RETRY_COUNT 5
259#endif
260
261
262#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
263#define CONFIG_SYS_INIT_RAM_ADDR 0x4020f800
264#define CONFIG_SYS_INIT_RAM_SIZE 0x800
265#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
266 CONFIG_SYS_INIT_RAM_SIZE - \
267 GENERATED_GBL_DATA_SIZE)
268
269
270#define CONFIG_STATUS_LED
271#define CONFIG_BOARD_SPECIFIC_LED
272#define CONFIG_GPIO_LED
273#define GREEN_LED_GPIO 186
274#define GREEN_LED_DEV 0
275#define STATUS_LED_BIT GREEN_LED_GPIO
276#define STATUS_LED_STATE STATUS_LED_ON
277#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
278#define STATUS_LED_BOOT GREEN_LED_DEV
279
280
281#ifdef CONFIG_STATUS_LED
282#define CONFIG_OMAP3_GPIO_6
283#endif
284
285
286#define CONFIG_OMAP3_GPIO_2
287#define CONFIG_OMAP3_GPIO_5
288#define CONFIG_VIDEO_OMAP3
289#define LCD_BPP LCD_COLOR16
290
291#define CONFIG_LCD
292#define CONFIG_SPLASH_SCREEN
293#define CONFIG_SPLASHIMAGE_GUARD
294#define CONFIG_CMD_BMP
295#define CONFIG_BMP_16BPP
296#define CONFIG_SCF0403_LCD
297
298#define CONFIG_OMAP3_SPI
299
300
301#define CONFIG_CMD_EEPROM
302#define CONFIG_ENV_EEPROM_IS_ON_I2C
303#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
304#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
305#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
306#define CONFIG_SYS_EEPROM_SIZE 256
307
308#define CONFIG_CMD_EEPROM_LAYOUT
309#define CONFIG_EEPROM_LAYOUT_HELP_STRING "v1, v2, v3"
310
311#endif
312