]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/dbau1x00.h
Move default y configs out of arch/board Kconfig
[karo-tx-uboot.git] / include / configs / dbau1x00.h
1 /*
2  * (C) Copyright 2003
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 /*
9  * This file contains the configuration parameters for the dbau1x00 board.
10  */
11
12 #ifndef __CONFIG_H
13 #define __CONFIG_H
14
15 #define CONFIG_DBAU1X00         1
16
17 #define CONFIG_DISPLAY_BOARDINFO
18
19 #ifdef CONFIG_DBAU1000
20 /* Also known as Merlot */
21 #else
22 #ifdef CONFIG_DBAU1100
23 #else
24 #ifdef CONFIG_DBAU1500
25 #else
26 #ifdef CONFIG_DBAU1550
27 /* Cabernet */
28 #else
29 #error "No valid board set"
30 #endif
31 #endif
32 #endif
33 #endif
34
35 #define CONFIG_BOOTDELAY        2       /* autoboot after 2 seconds     */
36
37 #define CONFIG_BAUDRATE         115200
38
39 /* valid baudrates */
40
41 #define CONFIG_TIMESTAMP                /* Print image info with timestamp */
42 #undef  CONFIG_BOOTARGS
43
44 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
45         "addmisc=setenv bootargs ${bootargs} "                          \
46                 "console=ttyS0,${baudrate} "                            \
47                 "panic=1\0"                                             \
48         "bootfile=/tftpboot/vmlinux.srec\0"                             \
49         "load=tftp 80500000 ${u-boot}\0"                                \
50         ""
51
52 #ifdef CONFIG_DBAU1550
53 /* Boot from flash by default, revert to bootp */
54 #define CONFIG_BOOTCOMMAND      "bootm 0xbfc20000; bootp; bootm"
55 #else /* CONFIG_DBAU1550 */
56 #define CONFIG_BOOTCOMMAND      "bootp;bootm"
57 #endif /* CONFIG_DBAU1550 */
58
59
60 /*
61  * BOOTP options
62  */
63 #define CONFIG_BOOTP_BOOTFILESIZE
64 #define CONFIG_BOOTP_BOOTPATH
65 #define CONFIG_BOOTP_GATEWAY
66 #define CONFIG_BOOTP_HOSTNAME
67
68
69 /*
70  * Command line configuration.
71  */
72 #include <config_cmd_default.h>
73
74 #undef CONFIG_CMD_BDI
75 #undef CONFIG_CMD_BEDBUG
76 #undef CONFIG_CMD_ELF
77 #undef CONFIG_CMD_SAVEENV
78 #undef CONFIG_CMD_FAT
79 #undef CONFIG_CMD_FPGA
80 #undef CONFIG_CMD_MII
81 #undef CONFIG_CMD_RUN
82
83
84 #ifdef CONFIG_DBAU1550
85
86 #define CONFIG_CMD_FLASH
87 #define CONFIG_CMD_LOADB
88
89 #undef CONFIG_CMD_I2C
90 #undef CONFIG_CMD_IDE
91 #undef CONFIG_CMD_NFS
92 #undef CONFIG_CMD_PCMCIA
93
94 #else
95
96 #define CONFIG_CMD_IDE
97 #define CONFIG_CMD_DHCP
98
99 #undef CONFIG_CMD_FLASH
100 #undef CONFIG_CMD_LOADB
101 #undef CONFIG_CMD_LOADS
102
103 #endif
104
105
106 /*
107  * Miscellaneous configurable options
108  */
109 #define CONFIG_SYS_LONGHELP                             /* undef to save memory      */
110
111 #define CONFIG_SYS_PROMPT               "DbAu1xx0 # "   /* Monitor Command Prompt    */
112
113 #define CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size   */
114 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
115 #define CONFIG_SYS_MAXARGS              16              /* max number of command args*/
116
117 #define CONFIG_SYS_MALLOC_LEN           128*1024
118
119 #define CONFIG_SYS_BOOTPARAMS_LEN       128*1024
120
121 #define CONFIG_SYS_MHZ                  396
122
123 #if (CONFIG_SYS_MHZ % 12) != 0
124 #error "Invalid CPU frequency - must be multiple of 12!"
125 #endif
126
127 #define CONFIG_SYS_MIPS_TIMER_FREQ      (CONFIG_SYS_MHZ * 1000000)
128
129 #define CONFIG_SYS_SDRAM_BASE           0x80000000     /* Cached addr */
130
131 #define CONFIG_SYS_LOAD_ADDR            0x81000000     /* default load address  */
132
133 #define CONFIG_SYS_MEMTEST_START        0x80100000
134 #define CONFIG_SYS_MEMTEST_END          0x80800000
135
136 /*-----------------------------------------------------------------------
137  * FLASH and environment organization
138  */
139 #ifdef CONFIG_DBAU1550
140
141 #define CONFIG_SYS_MAX_FLASH_BANKS      2       /* max number of memory banks */
142 #define CONFIG_SYS_MAX_FLASH_SECT       (512)   /* max number of sectors on one chip */
143
144 #define PHYS_FLASH_1            0xb8000000 /* Flash Bank #1 */
145 #define PHYS_FLASH_2            0xbc000000 /* Flash Bank #2 */
146
147 #else /* CONFIG_DBAU1550 */
148
149 #define CONFIG_SYS_MAX_FLASH_BANKS      2       /* max number of memory banks */
150 #define CONFIG_SYS_MAX_FLASH_SECT       (128)   /* max number of sectors on one chip */
151
152 #define PHYS_FLASH_1            0xbec00000 /* Flash Bank #1 */
153 #define PHYS_FLASH_2            0xbfc00000 /* Flash Bank #2 */
154
155 #endif /* CONFIG_DBAU1550 */
156
157 #define CONFIG_SYS_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
158
159 #define CONFIG_SYS_FLASH_CFI           1
160 #define CONFIG_FLASH_CFI_DRIVER    1
161
162 /* The following #defines are needed to get flash environment right */
163 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
164 #define CONFIG_SYS_MONITOR_LEN          (192 << 10)
165
166 #define CONFIG_SYS_INIT_SP_OFFSET       0x400000
167
168 /* We boot from this flash, selected with dip switch */
169 #define CONFIG_SYS_FLASH_BASE           PHYS_FLASH_2
170
171 /* timeout values are in ticks */
172 #define CONFIG_SYS_FLASH_ERASE_TOUT     (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
173 #define CONFIG_SYS_FLASH_WRITE_TOUT     (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
174
175 #define CONFIG_ENV_IS_NOWHERE   1
176
177 /* Address and size of Primary Environment Sector       */
178 #define CONFIG_ENV_ADDR         0xB0030000
179 #define CONFIG_ENV_SIZE         0x10000
180
181 #define CONFIG_FLASH_16BIT
182
183 #define CONFIG_NR_DRAM_BANKS    2
184
185
186 #ifdef CONFIG_DBAU1550
187 #define MEM_SIZE 192
188 #else
189 #define MEM_SIZE 64
190 #endif
191
192 #define CONFIG_MEMSIZE_IN_BYTES
193
194 #ifndef CONFIG_DBAU1550
195 /*---ATA PCMCIA ------------------------------------*/
196 #define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
197 #define CONFIG_SYS_PCMCIA_MEM_ADDR 0x20000000
198 #define CONFIG_PCMCIA_SLOT_A
199
200 #define CONFIG_ATAPI 1
201 #define CONFIG_MAC_PARTITION 1
202
203 /* We run CF in "true ide" mode or a harddrive via pcmcia */
204 #define CONFIG_IDE_PCMCIA 1
205
206 /* We only support one slot for now */
207 #define CONFIG_SYS_IDE_MAXBUS           1       /* max. 1 IDE bus               */
208 #define CONFIG_SYS_IDE_MAXDEVICE        1       /* max. 1 drive per IDE bus     */
209
210 #undef  CONFIG_IDE_LED                  /* LED   for ide not supported  */
211 #undef  CONFIG_IDE_RESET                /* reset for ide not supported  */
212
213 #define CONFIG_SYS_ATA_IDE0_OFFSET      0x0000
214
215 #define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
216
217 /* Offset for data I/O                  */
218 #define CONFIG_SYS_ATA_DATA_OFFSET     8
219
220 /* Offset for normal register accesses  */
221 #define CONFIG_SYS_ATA_REG_OFFSET      0
222
223 /* Offset for alternate registers       */
224 #define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
225 #endif /* CONFIG_DBAU1550 */
226
227 /*-----------------------------------------------------------------------
228  * Cache Configuration
229  */
230 #define CONFIG_SYS_DCACHE_SIZE          16384
231 #define CONFIG_SYS_ICACHE_SIZE          16384
232 #define CONFIG_SYS_CACHELINE_SIZE       32
233
234 #endif  /* __CONFIG_H */