]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/cam_enc_4xx.h
Move default y configs out of arch/board Kconfig
[karo-tx-uboot.git] / include / configs / cam_enc_4xx.h
1 /*
2  * Copyright (C) 2009 Texas Instruments Incorporated
3  *
4  * Copyright (C) 2011
5  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9
10 #ifndef __CONFIG_H
11 #define __CONFIG_H
12
13 #define CONFIG_SYS_NO_FLASH             /* that is, no *NOR* flash */
14 #define CONFIG_SYS_CONSOLE_INFO_QUIET
15
16 /* SoC Configuration */
17 #define CONFIG_SYS_TIMERBASE            0x01c21400      /* use timer 0 */
18 #define CONFIG_SYS_HZ_CLOCK             24000000        /* timer0 freq */
19
20 #define CONFIG_MACH_TYPE        MACH_TYPE_DAVINCI_DM365_EVM
21
22 #define CONFIG_HOSTNAME                 cam_enc_4xx
23
24 #define CONFIG_BOARD_LATE_INIT
25 #define CONFIG_CAM_ENC_LED_MASK         0x0fc00000
26
27 /* Memory Info */
28 #define CONFIG_NR_DRAM_BANKS            1
29 #define PHYS_SDRAM_1                    0x80000000
30 #define PHYS_SDRAM_1_SIZE               (256 << 20)     /* 256 MiB */
31 #define DDR_4BANKS                              /* 4-bank DDR2 (256MB) */
32 #define CONFIG_MAX_RAM_BANK_SIZE        (256 << 20)     /* 256 MB */
33 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
34
35 /* Serial Driver info: UART0 for console  */
36 #define CONFIG_SYS_NS16550
37 #define CONFIG_SYS_NS16550_SERIAL
38 #define CONFIG_SYS_NS16550_REG_SIZE     -4
39 #define CONFIG_SYS_NS16550_COM1         0x01c20000
40 #define CONFIG_SYS_NS16550_CLK          CONFIG_SYS_HZ_CLOCK
41 #define CONFIG_CONS_INDEX               1
42 #define CONFIG_BAUDRATE                 115200
43
44 /* Network Configuration */
45 #define CONFIG_DRIVER_TI_EMAC
46 #define CONFIG_EMAC_MDIO_PHY_NUM        0
47 #define CONFIG_SYS_EMAC_TI_CLKDIV       0xa9    /* 1MHz */
48 #define CONFIG_MII
49 #define CONFIG_BOOTP_DNS
50 #define CONFIG_BOOTP_DNS2
51 #define CONFIG_BOOTP_SEND_HOSTNAME
52 #define CONFIG_NET_RETRY_COUNT  10
53 #define CONFIG_CMD_MII
54 #define CONFIG_SYS_DCACHE_OFF
55 #define CONFIG_RESET_PHY_R
56
57 /* I2C */
58 #define CONFIG_SYS_I2C
59 #define CONFIG_SYS_I2C_DAVINCI
60 #define CONFIG_SYS_DAVINCI_I2C_SPEED            400000
61 #define CONFIG_SYS_DAVINCI_I2C_SLAVE            0x10    /* SMBus host address */
62
63 /* NAND: socketed, two chipselects, normally 2 GBytes */
64 #define CONFIG_NAND_DAVINCI
65 #define CONFIG_SYS_NAND_CS              2
66 #define CONFIG_SYS_NAND_USE_FLASH_BBT
67 #define CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST
68 #define CONFIG_SYS_NAND_PAGE_2K
69
70 #define CONFIG_SYS_NAND_LARGEPAGE
71 #define CONFIG_SYS_NAND_BASE_LIST       { 0x02000000, }
72 /* socket has two chipselects, nCE0 gated by address BIT(14) */
73 #define CONFIG_SYS_MAX_NAND_DEVICE      1
74
75 /* SPI support */
76 #define CONFIG_SPI
77 #define CONFIG_SPI_FLASH_STMICRO
78 #define CONFIG_DAVINCI_SPI
79 #define CONFIG_SYS_SPI_BASE             DAVINCI_SPI1_BASE
80 #define CONFIG_SYS_SPI_CLK              davinci_clk_get(SPI_PLLDIV)
81 #define CONFIG_SF_DEFAULT_SPEED         3000000
82 #define CONFIG_ENV_SPI_MAX_HZ           CONFIG_SF_DEFAULT_SPEED
83 #define CONFIG_CMD_SF
84
85 /* SD/MMC */
86 #define CONFIG_MMC
87 #define CONFIG_GENERIC_MMC
88 #define CONFIG_DAVINCI_MMC
89 #define CONFIG_MMC_MBLOCK
90
91 /* U-Boot command configuration */
92 #include <config_cmd_default.h>
93
94 #define CONFIG_CMD_BDI
95 #undef CONFIG_CMD_FLASH
96 #undef CONFIG_CMD_FPGA
97 #undef CONFIG_CMD_SETGETDCR
98 #define CONFIG_CMD_ASKENV
99 #define CONFIG_CMD_CACHE
100 #define CONFIG_CMD_DHCP
101 #define CONFIG_CMD_I2C
102 #define CONFIG_CMD_PING
103 #define CONFIG_CMD_SAVES
104
105 #ifdef CONFIG_CMD_BDI
106 #define CONFIG_CLOCKS
107 #endif
108
109 #ifdef CONFIG_MMC
110 #define CONFIG_DOS_PARTITION
111 #define CONFIG_CMD_EXT2
112 #define CONFIG_CMD_FAT
113 #define CONFIG_CMD_MMC
114 #endif
115
116 #ifdef CONFIG_NAND_DAVINCI
117 #define CONFIG_CMD_MTDPARTS
118 #define CONFIG_MTD_PARTITIONS
119 #define CONFIG_MTD_DEVICE
120 #define CONFIG_CMD_NAND
121 #define CONFIG_CMD_UBI
122 #define CONFIG_CMD_UBIFS
123 #define CONFIG_RBTREE
124 #define CONFIG_LZO
125 #endif
126
127 #define CONFIG_CRC32_VERIFY
128 #define CONFIG_MX_CYCLIC
129
130 /* U-Boot general configuration */
131 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
132 #define CONFIG_SYS_PROMPT       "cam_enc_4xx> " /* Monitor Command Prompt */
133 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size  */
134 #define CONFIG_SYS_PBSIZE                       /* Print buffer size */ \
135                 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
136 #define CONFIG_SYS_MAXARGS      16              /* max number of command args */
137 #define CONFIG_SYS_HUSH_PARSER
138 #define CONFIG_SYS_LONGHELP
139
140 #define CONFIG_MENU
141 #define CONFIG_MENU_SHOW
142 #define CONFIG_FIT
143 #define CONFIG_BOARD_IMG_ADDR_R 0x80000000
144
145 #ifdef CONFIG_NAND_DAVINCI
146 #define CONFIG_ENV_SIZE                 (16 << 10)
147 #define CONFIG_ENV_IS_IN_NAND
148 #define CONFIG_ENV_OFFSET               0x180000
149 #define CONFIG_ENV_RANGE                0x040000
150 #define CONFIG_ENV_OFFSET_REDUND        0x1c0000
151 #undef CONFIG_ENV_IS_IN_FLASH
152 #endif
153
154 #if defined(CONFIG_MMC) && !defined(CONFIG_ENV_IS_IN_NAND)
155 #define CONFIG_CMD_ENV
156 #define CONFIG_SYS_MMC_ENV_DEV  0
157 #define CONFIG_ENV_SIZE         (16 << 10)      /* 16 KiB */
158 #define CONFIG_ENV_OFFSET       (51 << 9)       /* Sector 51 */
159 #define CONFIG_ENV_IS_IN_MMC
160 #undef CONFIG_ENV_IS_IN_FLASH
161 #endif
162
163 #define CONFIG_BOOTDELAY        3
164 /*
165  * 24MHz InputClock / 15 prediv -> 1.6 MHz timer running
166  * Timeout 1 second.
167  */
168 #define CONFIG_AIT_TIMER_TIMEOUT        0x186a00
169
170 #define CONFIG_CMDLINE_EDITING
171 #define CONFIG_VERSION_VARIABLE
172 #define CONFIG_TIMESTAMP
173
174 /* U-Boot memory configuration */
175 #define CONFIG_SYS_MALLOC_LEN           (1 << 20)       /* 1 MiB */
176 #define CONFIG_SYS_MEMTEST_START        0x80000000      /* physical address */
177 #define CONFIG_SYS_MEMTEST_END          0x81000000      /* test 16MB RAM */
178
179 /* Linux interfacing */
180 #define CONFIG_CMDLINE_TAG
181 #define CONFIG_SETUP_MEMORY_TAGS
182 #define CONFIG_SYS_BARGSIZE     1024                    /* bootarg Size */
183 #define CONFIG_SYS_LOAD_ADDR    0x80700000              /* kernel address */
184
185 #define MTDIDS_DEFAULT          "nand0=davinci_nand.0"
186 #define MTDPARTS_DEFAULT                        \
187         "mtdparts="                             \
188                 "davinci_nand.0:"               \
189                         "128k(spl),"            \
190                         "384k(UBLheader),"      \
191                         "1m(u-boot),"           \
192                         "512k(env),"            \
193                         "-(ubi)"
194
195 #define CONFIG_SYS_NAND_PAGE_SIZE       0x800
196 #define CONFIG_SYS_NAND_BLOCK_SIZE      0x20000
197
198 /* Defines for SPL */
199 #define CONFIG_SPL_FRAMEWORK
200 #define CONFIG_SPL_BOARD_INIT
201 #define CONFIG_SPL_LIBGENERIC_SUPPORT
202 #define CONFIG_SPL_NAND_SUPPORT
203 #define CONFIG_SPL_NAND_BASE
204 #define CONFIG_SPL_NAND_DRIVERS
205 #define CONFIG_SPL_NAND_ECC
206 #define CONFIG_SPL_NAND_SIMPLE
207 #define CONFIG_SYS_NAND_HW_ECC_OOBFIRST
208 #define CONFIG_SPL_SERIAL_SUPPORT
209 #define CONFIG_SPL_POST_MEM_SUPPORT
210 #define CONFIG_SPL_LDSCRIPT             "$(BOARDDIR)/u-boot-spl.lds"
211 #define CONFIG_SPL_STACK                (0x00010000 + 0x7f00)
212
213 #define CONFIG_SPL_TEXT_BASE            0x00000020 /*CONFIG_SYS_SRAM_START*/
214 /* Provide at least 16MB spacing between us and the Linux Kernel image */
215 #define CONFIG_SPL_PAD_TO               12320
216 #define CONFIG_SPL_MAX_FOOTPRINT        12288
217
218 #ifndef CONFIG_SPL_BUILD
219 #define CONFIG_SYS_TEXT_BASE            0x81080000
220 #endif
221
222 #define CONFIG_SYS_NAND_BASE            0x02000000
223 #define CONFIG_SYS_NAND_PAGE_COUNT      (CONFIG_SYS_NAND_BLOCK_SIZE / \
224                                         CONFIG_SYS_NAND_PAGE_SIZE)
225
226 #define CONFIG_SYS_NAND_ECCPOS          {                               \
227                                 24, 25, 26, 27, 28,                     \
228                                 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, \
229                                 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, \
230                                 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, \
231                                 59, 60, 61, 62, 63 }
232 #define CONFIG_SYS_NAND_BAD_BLOCK_POS   0
233 #define CONFIG_SYS_NAND_ECCSIZE         0x200
234 #define CONFIG_SYS_NAND_ECCBYTES        10
235 #define CONFIG_SYS_NAND_MAX_OOBFREE     2
236 #define CONFIG_SYS_NAND_MAX_ECCPOS      56
237 #define CONFIG_SYS_NAND_OOBSIZE         64
238 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
239
240 /*
241  * RBL searches from Block n (n = 1..24)
242  * so we can define, how many UBL Headers
243  * we can write before the real spl code
244  */
245 #define CONFIG_SYS_NROF_PAGES_NAND_SPL  6
246
247 #define CONFIG_SYS_NAND_U_BOOT_DST      0x81080000 /* u-boot TEXT_BASE */
248 #define CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_NAND_U_BOOT_DST
249
250 /*
251  * Post tests for memory testing
252  */
253 #define CONFIG_POST     CONFIG_SYS_POST_MEMORY
254 #define _POST_WORD_ADDR 0x0
255
256 #define CONFIG_DISPLAY_BOARDINFO
257
258 #define CONFIG_SYS_INIT_SP_ADDR         CONFIG_SPL_STACK
259
260 #define CONFIG_SYS_NAND_U_BOOT_OFFS     0x80000
261 #define CONFIG_SYS_NAND_U_BOOT_SIZE     0xa0000
262 #define CONFIG_SYS_NAND_U_BOOT_ERA_SIZE 0x100000
263
264 /* for UBL header */
265 #define CONFIG_SYS_UBL_BLOCK            (CONFIG_SYS_NAND_PAGE_SIZE)
266
267 #define CONFIG_SYS_DM36x_PLL1_PLLM      0x55
268 #define CONFIG_SYS_DM36x_PLL1_PREDIV    0x8005
269 #define CONFIG_SYS_DM36x_PLL2_PLLM      0x09
270 #define CONFIG_SYS_DM36x_PLL2_PREDIV    0x8000
271 #define CONFIG_SYS_DM36x_PERI_CLK_CTRL  0x243F04FC
272 #define CONFIG_SYS_DM36x_PLL1_PLLDIV1   0x801b
273 #define CONFIG_SYS_DM36x_PLL1_PLLDIV2   0x8001
274 /* POST DIV 680/2 = 340Mhz  -> MJCP and HDVICP bus interface clock */
275 #define CONFIG_SYS_DM36x_PLL1_PLLDIV3   0x8001
276 /*
277  * POST DIV 680/4 = 170Mhz  -> EDMA/Peripheral CFG0(1/2 MJCP/HDVICP bus
278  * interface clk)
279  */
280 #define CONFIG_SYS_DM36x_PLL1_PLLDIV4   0x8003
281 /* POST DIV 680/2 = 340Mhz  -> VPSS */
282 #define CONFIG_SYS_DM36x_PLL1_PLLDIV5   0x8001
283 /* POST DIV 680/9 = 75.6 Mhz -> VENC */
284 #define CONFIG_SYS_DM36x_PLL1_PLLDIV6   0x8008
285 /*
286  * POST DIV 680/1 = 680Mhz -> DDRx2(with internal divider of 2, clock boils
287  * down to 340 Mhz)
288  */
289 #define CONFIG_SYS_DM36x_PLL1_PLLDIV7   0x8000
290 /* POST DIV 680/7= 97Mhz-> MMC0/SD0 */
291 #define CONFIG_SYS_DM36x_PLL1_PLLDIV8   0x8006
292 /* POST DIV 680/28 = 24.3Mhz-> CLKOUT */
293 #define CONFIG_SYS_DM36x_PLL1_PLLDIV9   0x801b
294
295 #define CONFIG_SYS_DM36x_PLL2_PLLDIV1   0x8011
296 /* POST DIV 432/1=432 Mhz  -> ARM926/(HDVICP block) clk */
297 #define CONFIG_SYS_DM36x_PLL2_PLLDIV2   0x8000
298 #define CONFIG_SYS_DM36x_PLL2_PLLDIV3   0x8001
299 /* POST DIV 432/21= 20.5714 Mhz->VOICE Codec clk */
300 #define CONFIG_SYS_DM36x_PLL2_PLLDIV4   0x8014
301 /* POST DIV 432/16=27 Mhz  -> VENC(For SD modes, requires) */
302 #define CONFIG_SYS_DM36x_PLL2_PLLDIV5   0x800f
303
304 /*
305  * READ LATENCY 7 (CL + 2)
306  * CONFIG_PWRDNEN = 1
307  * CONFIG_EXT_STRBEN = 1
308  */
309 #define CONFIG_SYS_DM36x_DDR2_DDRPHYCR  (0 \
310         | DV_DDR_PHY_EXT_STRBEN \
311         | DV_DDR_PHY_PWRDNEN \
312         | (7 << DV_DDR_PHY_RD_LATENCY_SHIFT))
313
314 /*
315  * T_RFC = (trfc/DDR_CLK) - 1 = (195 / 2.941) - 1
316  * T_RP  = (trp/DDR_CLK) - 1  = (12.5 / 2.941) - 1
317  * T_RCD = (trcd/DDR_CLK) - 1 = (12.5 / 2.941) - 1
318  * T_WR  = (twr/DDR_CLK) - 1  = (15 / 2.941) - 1
319  * T_RAS = (tras/DDR_CLK) - 1 = (45 / 2.941) - 1
320  * T_RC  = (trc/DDR_CLK) - 1  = (57.5 / 2.941) - 1
321  * T_RRD = (trrd/DDR_CLK) - 1 = (7.5 / 2.941) - 1
322  * T_WTR = (twtr/DDR_CLK) - 1 = (7.5 / 2.941) - 1
323  */
324 #define CONFIG_SYS_DM36x_DDR2_SDTIMR    (0 \
325         | (66 << DV_DDR_SDTMR1_RFC_SHIFT) \
326         | (4  << DV_DDR_SDTMR1_RP_SHIFT) \
327         | (4  << DV_DDR_SDTMR1_RCD_SHIFT) \
328         | (5  << DV_DDR_SDTMR1_WR_SHIFT) \
329         | (14 << DV_DDR_SDTMR1_RAS_SHIFT) \
330         | (19 << DV_DDR_SDTMR1_RC_SHIFT) \
331         | (2  << DV_DDR_SDTMR1_RRD_SHIFT) \
332         | (2  << DV_DDR_SDTMR1_WTR_SHIFT))
333
334 /*
335  * T_RASMAX = (trasmax/refresh_rate) - 1 = (70K / 7812.6) - 1
336  * T_XP  = tCKE - 1 = 3 - 2
337  * T_XSNR= ((trfc + 10)/DDR_CLK) - 1 = (205 / 2.941) - 1
338  * T_XSRD = txsrd - 1 = 200 - 1
339  * T_RTP = (trtp/DDR_CLK) - 1 = (7.5 / 2.941) - 1
340  * T_CKE = tcke - 1     = 3 - 1
341  */
342 #define CONFIG_SYS_DM36x_DDR2_SDTIMR2   (0 \
343         | (8  << DV_DDR_SDTMR2_RASMAX_SHIFT) \
344         | (2  << DV_DDR_SDTMR2_XP_SHIFT) \
345         | (69 << DV_DDR_SDTMR2_XSNR_SHIFT) \
346         | (199 <<  DV_DDR_SDTMR2_XSRD_SHIFT) \
347         | (2 <<  DV_DDR_SDTMR2_RTP_SHIFT) \
348         | (2 <<  DV_DDR_SDTMR2_CKE_SHIFT))
349
350 /* PR_OLD_COUNT = 0xfe */
351 #define CONFIG_SYS_DM36x_DDR2_PBBPR     0x000000FE
352 /* refresh rate = 0x768 */
353 #define CONFIG_SYS_DM36x_DDR2_SDRCR     0x00000768
354
355 #define CONFIG_SYS_DM36x_DDR2_SDBCR     (0 \
356         | (2 << DV_DDR_SDCR_PAGESIZE_SHIFT) \
357         | (3 << DV_DDR_SDCR_IBANK_SHIFT) \
358         | (5 << DV_DDR_SDCR_CL_SHIFT) \
359         | (1 << DV_DDR_SDCR_BUS_WIDTH_SHIFT)    \
360         | (1 << DV_DDR_SDCR_TIMUNLOCK_SHIFT) \
361         | (1 << DV_DDR_SDCR_DDREN_SHIFT) \
362         | (0 << DV_DDR_SDCR_DDRDRIVE0_SHIFT)    \
363         | (1 << DV_DDR_SDCR_DDR2EN_SHIFT) \
364         | (1 << DV_DDR_SDCR_DDR_DDQS_SHIFT) \
365         | (1 << DV_DDR_SDCR_BOOTUNLOCK_SHIFT))
366
367 #define CONFIG_SYS_DM36x_AWCCR  0xff
368 #define CONFIG_SYS_DM36x_AB1CR  0x40400204
369 #define CONFIG_SYS_DM36x_AB2CR  0x04ca2650
370
371 /* All Video Inputs */
372 #define CONFIG_SYS_DM36x_PINMUX0        0x00000000
373 /*
374  * All Video Outputs,
375  * GPIO 86, 87 + 90 0x0000f030
376  */
377 #define CONFIG_SYS_DM36x_PINMUX1        0x00530002
378 #define CONFIG_SYS_DM36x_PINMUX2        0x00001815
379 /*
380  * SPI1, UART1, I2C, SD0, SD1, McBSP0, CLKOUTs
381  * GPIO 25 0x60000000
382  */
383 #define CONFIG_SYS_DM36x_PINMUX3        0x9b5affff
384 /*
385  * MMC/SD0 instead of MS, SPI0
386  * GPIO 34 0x0000c000
387  */
388 #define CONFIG_SYS_DM36x_PINMUX4        0x00002655
389
390 /*
391  * Default environment settings
392  */
393
394 #define DVN4XX_UBOOT_ADDR_R_RAM         0x80000000
395 /* (DVN4XX_UBOOT_ADDR_R_RAM + CONFIG_SYS_NAND_PAGE_SIZE) */
396 #define DVN4XX_UBOOT_ADDR_R_NAND_SPL    0x80000800
397 /*
398  * (DVN4XX_UBOOT_ADDR_R_NAND_SPL + (CONFIG_SYS_NROF_PAGES_NAND_SPL * \
399  * CONFIG_SYS_NAND_PAGE_SIZE))
400  */
401 #define DVN4XX_UBOOT_ADDR_R_UBOOT       0x80003800
402
403 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
404         "u_boot_addr_r=" __stringify(DVN4XX_UBOOT_ADDR_R_RAM) "\0"      \
405         "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.ubl\0"          \
406         "load=tftp ${u_boot_addr_r} ${u-boot}\0"                        \
407         "pagesz=" __stringify(CONFIG_SYS_NAND_PAGE_SIZE) "\0"           \
408         "writeheader=nandrbl rbl;nand erase 20000 ${pagesz};"           \
409                 "nand write ${u_boot_addr_r} 20000 ${pagesz};"          \
410                 "nandrbl uboot\0"                                       \
411         "writenand_spl=nandrbl rbl;nand erase 0 3000;"                  \
412                 "nand write " __stringify(DVN4XX_UBOOT_ADDR_R_NAND_SPL) \
413                 " 0 3000;nandrbl uboot\0"                               \
414         "writeuboot=nandrbl uboot;"                                     \
415                 "nand erase " __stringify(CONFIG_SYS_NAND_U_BOOT_OFFS) " "\
416                  __stringify(CONFIG_SYS_NAND_U_BOOT_ERA_SIZE)           \
417                 ";nand write " __stringify(DVN4XX_UBOOT_ADDR_R_UBOOT)   \
418                 " " __stringify(CONFIG_SYS_NAND_U_BOOT_OFFS) " "        \
419                 __stringify(CONFIG_SYS_NAND_U_BOOT_SIZE) "\0"           \
420         "update=run load writenand_spl writeuboot\0"                    \
421         "bootcmd=run net_nfs\0"                                         \
422         "rootpath=/opt/eldk-arm/arm\0"                                  \
423         "mtdids=" MTDIDS_DEFAULT "\0"                                   \
424         "mtdparts=" MTDPARTS_DEFAULT "\0"                               \
425         "netdev=eth0\0"                                                 \
426         "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"              \
427         "addmisc=setenv bootargs ${bootargs} app_reset=${app_reset}\0"  \
428         "addcon=setenv bootargs ${bootargs} console=ttyS0,"             \
429                 "${baudrate}n8\0"                                       \
430         "addip=setenv bootargs ${bootargs} "                            \
431                 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}"      \
432                 ":${hostname}:${netdev}:off eth=${ethaddr} panic=1\0"   \
433         "rootpath=/opt/eldk-arm/arm\0"                                  \
434         "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
435                 "nfsroot=${serverip}:${rootpath}\0"                     \
436         "bootfile=" __stringify(CONFIG_HOSTNAME) "/uImage \0"           \
437         "kernel_addr_r=80600000\0"                                      \
438         "load_kernel=tftp ${kernel_addr_r} ${bootfile}\0"               \
439         "ubi_load_kernel=ubi part ubi 2048;ubifsmount ubi:${img_volume};" \
440                 "ubifsload ${kernel_addr_r} boot/uImage\0"              \
441         "fit_addr_r=" __stringify(CONFIG_BOARD_IMG_ADDR_R) "\0"         \
442         "img_addr_r=" __stringify(CONFIG_BOARD_IMG_ADDR_R) "\0"         \
443         "img_file=" __stringify(CONFIG_HOSTNAME) "/ait.itb\0"           \
444         "header_addr=20000\0"                                           \
445         "img_writeheader=nandrbl rbl;"                                  \
446                 "nand erase ${header_addr} ${pagesz};"                  \
447                 "nand write ${img_addr_r} ${header_addr} ${pagesz};"    \
448                 "nandrbl uboot\0"                                       \
449         "img_writespl=nandrbl rbl;nand erase 0 3000;"                   \
450                 "nand write ${img_addr_r} 0 3000;nandrbl uboot\0"       \
451         "img_writeuboot=nandrbl uboot;"                                 \
452                 "nand erase " __stringify(CONFIG_SYS_NAND_U_BOOT_OFFS) " "\
453                  __stringify(CONFIG_SYS_NAND_U_BOOT_ERA_SIZE)           \
454                 ";nand write ${img_addr_r} "                            \
455                 __stringify(CONFIG_SYS_NAND_U_BOOT_OFFS) " "            \
456                 __stringify(CONFIG_SYS_NAND_U_BOOT_SIZE) "\0"           \
457         "img_writedfenv=ubi part ubi 2048;"                             \
458                 "ubi write ${img_addr_r} default ${filesize}\0"         \
459         "img_volume=rootfs1\0"                                          \
460         "img_writeramdisk=ubi part ubi 2048;"                           \
461                 "ubi write ${img_addr_r} ${img_volume} ${filesize}\0"   \
462         "load_img=tftp ${fit_addr_r} ${img_file}\0"                     \
463         "net_nfs=run load_kernel; "                                     \
464                 "run nfsargs addip addcon addmtd addmisc;"              \
465                 "bootm ${kernel_addr_r}\0"                              \
466         "ubi_ubi=run ubi_load_kernel; "                                 \
467                 "run ubiargs addip addcon addmtd addmisc;"              \
468                 "bootm ${kernel_addr_r}\0"                              \
469         "ubiargs=setenv bootargs ubi.mtd=4,2048"                        \
470                 " root=ubi0:${img_volume} rw rootfstype=ubifs\0"        \
471         "app_reset=no\0"                                                \
472         "dvn_app_vers=void\0"                                           \
473         "dvn_boot_vers=void\0"                                          \
474         "savenewvers=run savetmpparms restoreparms; saveenv;"           \
475                 "run restoretmpparms\0"                                 \
476         "savetmpparms=setenv y_ipaddr ${ipaddr};"                       \
477                 "setenv y_netmask ${netmask};"                          \
478                 "setenv y_serverip ${serverip};"                        \
479                 "setenv y_gatewayip ${gatewayip}\0"                     \
480         "saveparms=setenv x_ipaddr ${ipaddr};"                          \
481                 "setenv x_netmask ${netmask};"                          \
482                 "setenv x_serverip ${serverip};"                        \
483                 "setenv x_gatewayip ${gatewayip}\0"                     \
484         "restoreparms=setenv ipaddr ${x_ipaddr};"                       \
485                 "setenv netmask ${x_netmask};"                          \
486                 "setenv serverip ${x_serverip};"                        \
487                 "setenv gatewayip ${x_gatewayip}\0"                     \
488         "restoretmpparms=setenv ipaddr ${y_ipaddr};"                    \
489                 "setenv netmask ${y_netmask};"                          \
490                 "setenv serverip ${y_serverip};"                        \
491                 "setenv gatewayip ${y_gatewayip}\0"                     \
492         "\0"
493
494 /* USB Configuration */
495 #define CONFIG_USB_DAVINCI
496 #define CONFIG_MUSB_HCD
497 #define CONFIG_DV_USBPHY_CTL (USBPHY_SESNDEN | USBPHY_VBDTCTEN | \
498                                 USBPHY_PHY24MHZ)
499
500 #define CONFIG_CMD_USB         /* include support for usb cmd */
501 #define CONFIG_USB_STORAGE     /* MSC class support */
502 #define CONFIG_CMD_STORAGE     /* inclue support for usb-storage cmd */
503 #define CONFIG_CMD_FAT         /* inclue support for FAT/storage */
504 #define CONFIG_DOS_PARTITION   /* inclue support for FAT/storage */
505
506 #undef DAVINCI_DM365EVM
507 #define PINMUX4_USBDRVBUS_BITCLEAR       0x3000
508 #define PINMUX4_USBDRVBUS_BITSET         0x2000
509
510 #endif /* __CONFIG_H */