Convert CONFIG_PCI_GT64120 to Kconfig
[platform/kernel/u-boot.git] / include / configs / devkit8000.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2006-2008
4  * Texas Instruments.
5  * Richard Woodruff <r-woodruff2@ti.com>
6  * Syed Mohammed Khasim <x0khasim@ti.com>
7  *
8  * (C) Copyright 2009
9  * Frederik Kriewitz <frederik@kriewitz.eu>
10  *
11  * Configuration settings for the DevKit8000 board.
12  */
13
14 #ifndef __CONFIG_H
15 #define __CONFIG_H
16
17 #include <configs/ti_omap3_common.h>
18
19 /* Hardware drivers */
20 /* DM9000 */
21 #define CONFIG_DM9000_BASE              0x2c000000
22 #define DM9000_IO                       CONFIG_DM9000_BASE
23 #define DM9000_DATA                     (CONFIG_DM9000_BASE + 0x400)
24 #define CONFIG_DM9000_USE_16BIT         1
25 #define CONFIG_DM9000_NO_SROM           1
26 #undef  CONFIG_DM9000_DEBUG
27
28 /* TWL4030 */
29
30 /* BOOTP/DHCP options */
31
32 #define MEM_LAYOUT_ENV_SETTINGS \
33         DEFAULT_LINUX_BOOT_ENV
34
35 /* Environment information */
36 #define CONFIG_EXTRA_ENV_SETTINGS \
37         MEM_LAYOUT_ENV_SETTINGS \
38         "console=ttyO2,115200n8\0" \
39         "mmcdev=0\0" \
40         "vram=12M\0" \
41         "dvimode=1024x768MR-16@60\0" \
42         "defaultdisplay=dvi\0" \
43         "nfsopts=hard,tcp,rsize=65536,wsize=65536\0" \
44         "kernelopts=rw\0" \
45         "commonargs=" \
46                 "setenv bootargs console=${console} " \
47                 "vram=${vram} " \
48                 "omapfb.mode=dvi:${dvimode} " \
49                 "omapdss.def_disp=${defaultdisplay}\0" \
50         "mmcargs=" \
51                 "run commonargs; " \
52                 "setenv bootargs ${bootargs} " \
53                 "root=/dev/mmcblk0p2 " \
54                 "rootwait " \
55                 "${kernelopts}\0" \
56         "nandargs=" \
57                 "run commonargs; " \
58                 "setenv bootargs ${bootargs} " \
59                 "omapfb.mode=dvi:${dvimode} " \
60                 "omapdss.def_disp=${defaultdisplay} " \
61                 "root=/dev/mtdblock4 " \
62                 "rootfstype=jffs2 " \
63                 "${kernelopts}\0" \
64         "netargs=" \
65                 "run commonargs; " \
66                 "setenv bootargs ${bootargs} " \
67                 "root=/dev/nfs " \
68                 "nfsroot=${serverip}:${rootpath},${nfsopts} " \
69                 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off " \
70                 "${kernelopts} " \
71                 "dnsip1=${dnsip} " \
72                 "dnsip2=${dnsip2}\0" \
73         "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
74         "bootscript=echo Running bootscript from mmc ...; " \
75                 "source ${loadaddr}\0" \
76         "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
77         "eraseenv=nand unlock 0x260000 0x20000; nand erase 0x260000 0x20000\0" \
78         "mmcboot=echo Booting from mmc ...; " \
79                 "run mmcargs; " \
80                 "bootm ${loadaddr}\0" \
81         "nandboot=echo Booting from nand ...; " \
82                 "run nandargs; " \
83                 "nand read ${loadaddr} 280000 400000; " \
84                 "bootm ${loadaddr}\0" \
85         "netboot=echo Booting from network ...; " \
86                 "dhcp ${loadaddr}; " \
87                 "run netargs; " \
88                 "bootm ${loadaddr}\0" \
89         "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
90                         "if run loadbootscript; then " \
91                                 "run bootscript; " \
92                         "else " \
93                                 "if run loaduimage; then " \
94                                         "run mmcboot; " \
95                                 "else run nandboot; " \
96                                 "fi; " \
97                         "fi; " \
98                 "else run nandboot; fi\0"
99
100 /* Defines for SPL */
101
102 /* NAND boot config */
103 #define CONFIG_SYS_NAND_ECCPOS          {2, 3, 4, 5, 6, 7, 8, 9,\
104                                                 10, 11, 12, 13}
105
106 #define CONFIG_SYS_NAND_ECCSIZE         512
107 #define CONFIG_SYS_NAND_ECCBYTES        3
108
109 #define CONFIG_SYS_NAND_U_BOOT_SIZE     0x200000
110
111 #endif /* __CONFIG_H */