6d0f63d075d9972d7268519fe96376797f329bc5
[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 /* High Level Configuration Options */
18
19 /*
20  * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
21  * 64 bytes before this address should be set aside for u-boot.img's
22  * header. That is 0x800FFFC0--0x80100000 should not be used for any
23  * other needs.
24  */
25
26 #define CONFIG_SPL_BSS_START_ADDR       0x80000500 /* leave space for bootargs*/
27
28 #define CONFIG_SYS_SPL_MALLOC_START     0x80208000
29 #define CONFIG_SYS_SPL_MALLOC_SIZE      0x100000        /* 1 MB */
30
31 /*  Physical Memory Map  */
32
33 #include <configs/ti_omap3_common.h>
34
35 /* Hardware drivers */
36 /* DM9000 */
37 #define CONFIG_DM9000_BASE              0x2c000000
38 #define DM9000_IO                       CONFIG_DM9000_BASE
39 #define DM9000_DATA                     (CONFIG_DM9000_BASE + 0x400)
40 #define CONFIG_DM9000_USE_16BIT         1
41 #define CONFIG_DM9000_NO_SROM           1
42 #undef  CONFIG_DM9000_DEBUG
43
44 /* TWL4030 */
45
46 /* BOOTP/DHCP options */
47
48 /* Environment information */
49 #define CONFIG_EXTRA_ENV_SETTINGS \
50         "loadaddr=0x82000000\0" \
51         "console=ttyO2,115200n8\0" \
52         "mmcdev=0\0" \
53         "vram=12M\0" \
54         "dvimode=1024x768MR-16@60\0" \
55         "defaultdisplay=dvi\0" \
56         "nfsopts=hard,tcp,rsize=65536,wsize=65536\0" \
57         "kernelopts=rw\0" \
58         "commonargs=" \
59                 "setenv bootargs console=${console} " \
60                 "vram=${vram} " \
61                 "omapfb.mode=dvi:${dvimode} " \
62                 "omapdss.def_disp=${defaultdisplay}\0" \
63         "mmcargs=" \
64                 "run commonargs; " \
65                 "setenv bootargs ${bootargs} " \
66                 "root=/dev/mmcblk0p2 " \
67                 "rootwait " \
68                 "${kernelopts}\0" \
69         "nandargs=" \
70                 "run commonargs; " \
71                 "setenv bootargs ${bootargs} " \
72                 "omapfb.mode=dvi:${dvimode} " \
73                 "omapdss.def_disp=${defaultdisplay} " \
74                 "root=/dev/mtdblock4 " \
75                 "rootfstype=jffs2 " \
76                 "${kernelopts}\0" \
77         "netargs=" \
78                 "run commonargs; " \
79                 "setenv bootargs ${bootargs} " \
80                 "root=/dev/nfs " \
81                 "nfsroot=${serverip}:${rootpath},${nfsopts} " \
82                 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off " \
83                 "${kernelopts} " \
84                 "dnsip1=${dnsip} " \
85                 "dnsip2=${dnsip2}\0" \
86         "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
87         "bootscript=echo Running bootscript from mmc ...; " \
88                 "source ${loadaddr}\0" \
89         "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
90         "eraseenv=nand unlock 0x260000 0x20000; nand erase 0x260000 0x20000\0" \
91         "mmcboot=echo Booting from mmc ...; " \
92                 "run mmcargs; " \
93                 "bootm ${loadaddr}\0" \
94         "nandboot=echo Booting from nand ...; " \
95                 "run nandargs; " \
96                 "nand read ${loadaddr} 280000 400000; " \
97                 "bootm ${loadaddr}\0" \
98         "netboot=echo Booting from network ...; " \
99                 "dhcp ${loadaddr}; " \
100                 "run netargs; " \
101                 "bootm ${loadaddr}\0" \
102         "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
103                         "if run loadbootscript; then " \
104                                 "run bootscript; " \
105                         "else " \
106                                 "if run loaduimage; then " \
107                                         "run mmcboot; " \
108                                 "else run nandboot; " \
109                                 "fi; " \
110                         "fi; " \
111                 "else run nandboot; fi\0"
112
113 /* Defines for SPL */
114
115 /* NAND boot config */
116 #define CONFIG_SYS_NAND_ECCPOS          {2, 3, 4, 5, 6, 7, 8, 9,\
117                                                 10, 11, 12, 13}
118
119 #define CONFIG_SYS_NAND_ECCSIZE         512
120 #define CONFIG_SYS_NAND_ECCBYTES        3
121
122 #define CONFIG_SYS_NAND_U_BOOT_SIZE     0x200000
123
124 /* SPL OS boot options */
125 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
126
127 #undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR
128 #undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS
129 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR   0x8   /* address 0x1000 */
130 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS  8     /* 4KB */
131
132 #undef CONFIG_SYS_SPL_ARGS_ADDR
133 #define CONFIG_SYS_SPL_ARGS_ADDR        (PHYS_SDRAM_1 + 0x100)
134
135 #endif /* __CONFIG_H */