xref: /openbmc/u-boot/include/configs/at91rm9200ek.h (revision 425de62d40f84524b90e776b141b060cd438a9fe)
1cb82a532SUlf Samuelsson /*
2cb82a532SUlf Samuelsson  * Ulf Samuelsson <ulf@atmel.com>
3cb82a532SUlf Samuelsson  * Rick Bronson <rick@efn.org>
4cb82a532SUlf Samuelsson  *
5cb82a532SUlf Samuelsson  * Configuration settings for the AT91RM9200EK board.
6cb82a532SUlf Samuelsson  *
7cb82a532SUlf Samuelsson  * See file CREDITS for list of people who contributed to this
8cb82a532SUlf Samuelsson  * project.
9cb82a532SUlf Samuelsson  *
10cb82a532SUlf Samuelsson  * This program is free software; you can redistribute it and/or
11cb82a532SUlf Samuelsson  * modify it under the terms of the GNU General Public License as
12cb82a532SUlf Samuelsson  * published by the Free Software Foundation; either version 2 of
13cb82a532SUlf Samuelsson  * the License, or (at your option) any later version.
14cb82a532SUlf Samuelsson  *
15cb82a532SUlf Samuelsson  * This program is distributed in the hope that it will be useful,
16cb82a532SUlf Samuelsson  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17cb82a532SUlf Samuelsson  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18cb82a532SUlf Samuelsson  * GNU General Public License for more details.
19cb82a532SUlf Samuelsson  *
20cb82a532SUlf Samuelsson  * You should have received a copy of the GNU General Public License
21cb82a532SUlf Samuelsson  * along with this program; if not, write to the Free Software
22cb82a532SUlf Samuelsson  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23cb82a532SUlf Samuelsson  * MA 02111-1307 USA
24cb82a532SUlf Samuelsson  */
25cb82a532SUlf Samuelsson 
26cb82a532SUlf Samuelsson #ifndef __CONFIG_H
27cb82a532SUlf Samuelsson #define __CONFIG_H
28cb82a532SUlf Samuelsson 
29*425de62dSJens Scharsig #define CONFIG_AT91_LEGACY
30*425de62dSJens Scharsig 
31cb82a532SUlf Samuelsson /* ARM asynchronous clock */
32cb82a532SUlf Samuelsson /*
33cb82a532SUlf Samuelsson  * from 18.432 MHz crystal
34cb82a532SUlf Samuelsson  * (18432000 / 4 * 39)
35cb82a532SUlf Samuelsson  */
36cb82a532SUlf Samuelsson #define AT91C_MAIN_CLOCK	179712000
37cb82a532SUlf Samuelsson /*
38cb82a532SUlf Samuelsson  * peripheral clock
39cb82a532SUlf Samuelsson  * (AT91C_MASTER_CLOCK / 3)
40cb82a532SUlf Samuelsson  */
41cb82a532SUlf Samuelsson #define AT91C_MASTER_CLOCK	59904000
42cb82a532SUlf Samuelsson 
43cb82a532SUlf Samuelsson #define AT91_SLOW_CLOCK		32768	/* slow clock */
44cb82a532SUlf Samuelsson 
45cb82a532SUlf Samuelsson #define CONFIG_ARM920T		1	/* This is an ARM920T Core	*/
46cb82a532SUlf Samuelsson #define CONFIG_AT91RM9200	1	/* It's an Atmel AT91RM9200 SoC	*/
47cb82a532SUlf Samuelsson #define CONFIG_AT91RM9200EK	1	/* on an AT91RM9200EK Board	*/
48cb82a532SUlf Samuelsson #undef  CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff	*/
49cb82a532SUlf Samuelsson #define USE_920T_MMU		1
50cb82a532SUlf Samuelsson 
51cb82a532SUlf Samuelsson #define CONFIG_CMDLINE_TAG	1	/* enable passing of ATAGs	*/
52cb82a532SUlf Samuelsson #define CONFIG_SETUP_MEMORY_TAGS 1
53cb82a532SUlf Samuelsson #define CONFIG_INITRD_TAG	1
54cb82a532SUlf Samuelsson 
55cb82a532SUlf Samuelsson /*
56cb82a532SUlf Samuelsson  * LowLevel Init
57cb82a532SUlf Samuelsson  */
58cb82a532SUlf Samuelsson #ifndef CONFIG_SKIP_LOWLEVEL_INIT
59cb82a532SUlf Samuelsson #define CONFIG_SYS_USE_MAIN_OSCILLATOR		1
60cb82a532SUlf Samuelsson /* flash */
61cb82a532SUlf Samuelsson #define CONFIG_SYS_EBI_CFGR_VAL	0x00000000
62cb82a532SUlf Samuelsson #define CONFIG_SYS_SMC_CSR0_VAL	0x00003284 /* 16bit, 2 TDF, 4 WS */
63cb82a532SUlf Samuelsson 
64cb82a532SUlf Samuelsson /* clocks */
65cb82a532SUlf Samuelsson #define CONFIG_SYS_PLLAR_VAL	0x20263E04 /* 179.712000 MHz for PCK */
66cb82a532SUlf Samuelsson #define CONFIG_SYS_PLLBR_VAL	0x10483E0E /* 48.054857 MHz (divider by 2 for USB) */
67cb82a532SUlf Samuelsson /* PCK/3 = MCK Master Clock = 59.904000MHz from PLLA */
68cb82a532SUlf Samuelsson #define CONFIG_SYS_MCKR_VAL	0x00000202
69cb82a532SUlf Samuelsson 
70cb82a532SUlf Samuelsson /* sdram */
71cb82a532SUlf Samuelsson #define CONFIG_SYS_PIOC_ASR_VAL	0xFFFF0000 /* Configure PIOC as peripheral (D16/D31) */
72cb82a532SUlf Samuelsson #define CONFIG_SYS_PIOC_BSR_VAL	0x00000000
73cb82a532SUlf Samuelsson #define CONFIG_SYS_PIOC_PDR_VAL	0xFFFF0000
74cb82a532SUlf Samuelsson #define CONFIG_SYS_EBI_CSA_VAL	0x00000002 /* CS1=CONFIG_SYS_SDRAM */
75cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_CR_VAL	0x2188c155 /* set up the CONFIG_SYS_SDRAM */
76cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRAM	0x20000000 /* address of the CONFIG_SYS_SDRAM */
77cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRAM1	0x20000080 /* address of the CONFIG_SYS_SDRAM */
78cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRAM_VAL	0x00000000 /* value written to CONFIG_SYS_SDRAM */
79cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_MR_VAL	0x00000002 /* Precharge All */
80cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_MR_VAL1	0x00000004 /* refresh */
81cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_MR_VAL2	0x00000003 /* Load Mode Register */
82cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_MR_VAL3	0x00000000 /* Normal Mode */
83cb82a532SUlf Samuelsson #define CONFIG_SYS_SDRC_TR_VAL	0x000002E0 /* Write refresh rate */
84cb82a532SUlf Samuelsson #else
85cb82a532SUlf Samuelsson #define CONFIG_SKIP_RELOCATE_UBOOT
86cb82a532SUlf Samuelsson #endif	/* CONFIG_SKIP_LOWLEVEL_INIT */
87cb82a532SUlf Samuelsson 
88cb82a532SUlf Samuelsson /* hardcode so no __divsi3 : AT91C_MASTER_CLOCK / baudrate / 16 */
89cb82a532SUlf Samuelsson #define CONFIG_SYS_AT91C_BRGR_DIVISOR	33
90cb82a532SUlf Samuelsson 
91cb82a532SUlf Samuelsson /*
92cb82a532SUlf Samuelsson  * Memory Configuration
93cb82a532SUlf Samuelsson  */
94cb82a532SUlf Samuelsson #define CONFIG_NR_DRAM_BANKS		1
95cb82a532SUlf Samuelsson #define PHYS_SDRAM			0x20000000
96cb82a532SUlf Samuelsson #define PHYS_SDRAM_SIZE			0x02000000	/* 32 megs */
97cb82a532SUlf Samuelsson 
98cb82a532SUlf Samuelsson #define CONFIG_SYS_MEMTEST_START	PHYS_SDRAM
99cb82a532SUlf Samuelsson #define CONFIG_SYS_MEMTEST_END		\
100cb82a532SUlf Samuelsson 		(CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144)
101cb82a532SUlf Samuelsson 
102cb82a532SUlf Samuelsson /*
103cb82a532SUlf Samuelsson  * Hardware drivers
104cb82a532SUlf Samuelsson  */
105cb82a532SUlf Samuelsson 
106cb82a532SUlf Samuelsson /*
107cb82a532SUlf Samuelsson  * UART Configuration
108cb82a532SUlf Samuelsson  *
109cb82a532SUlf Samuelsson  * define one of these to choose the DBGU,
110cb82a532SUlf Samuelsson  * USART0 or USART1 as console
111cb82a532SUlf Samuelsson  */
112beebd851SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_AT91RM9200_USART
113cb82a532SUlf Samuelsson #define CONFIG_DBGU
114cb82a532SUlf Samuelsson #undef CONFIG_USART0
115cb82a532SUlf Samuelsson #undef CONFIG_USART1
116cb82a532SUlf Samuelsson /* don't include RTS/CTS flow control support	*/
117cb82a532SUlf Samuelsson #undef	CONFIG_HWFLOW
118cb82a532SUlf Samuelsson /* disable modem initialization stuff */
119cb82a532SUlf Samuelsson #undef	CONFIG_MODEM_SUPPORT
120cb82a532SUlf Samuelsson 
121cb82a532SUlf Samuelsson #define CONFIG_SYS_BAUDRATE_TABLE	{115200 , 19200, 38400, 57600, 9600 }
122cb82a532SUlf Samuelsson #define CONFIG_BAUDRATE			115200
123cb82a532SUlf Samuelsson 
124cb82a532SUlf Samuelsson /*
125cb82a532SUlf Samuelsson  * Command line configuration.
126cb82a532SUlf Samuelsson  */
127cb82a532SUlf Samuelsson #include <config_cmd_default.h>
128cb82a532SUlf Samuelsson 
129cb82a532SUlf Samuelsson #define CONFIG_CMD_DHCP
130cb82a532SUlf Samuelsson #define CONFIG_CMD_FAT
131cb82a532SUlf Samuelsson #define CONFIG_CMD_MII
132cb82a532SUlf Samuelsson #define CONFIG_CMD_PING
133cb82a532SUlf Samuelsson 
134cb82a532SUlf Samuelsson #undef CONFIG_CMD_BDI
135cb82a532SUlf Samuelsson #undef CONFIG_CMD_IMI
136cb82a532SUlf Samuelsson #undef CONFIG_CMD_FPGA
137cb82a532SUlf Samuelsson #undef CONFIG_CMD_MISC
138cb82a532SUlf Samuelsson #undef CONFIG_CMD_LOADS
139cb82a532SUlf Samuelsson 
140cb82a532SUlf Samuelsson #include <asm/arch/AT91RM9200.h>	/* needed for port definitions */
141cb82a532SUlf Samuelsson /* Options for MMC/SD Card */
142cb82a532SUlf Samuelsson #define CONFIG_DOS_PARTITION	1
143cb82a532SUlf Samuelsson #undef CONFIG_MMC
144cb82a532SUlf Samuelsson #define CONFIG_SYS_MMC_BASE		0xFFFB4000
145cb82a532SUlf Samuelsson #define CONFIG_SYS_MMC_BLOCKSIZE	512
146cb82a532SUlf Samuelsson 
147cb82a532SUlf Samuelsson /*
148cb82a532SUlf Samuelsson  * Network Driver Setting
149cb82a532SUlf Samuelsson  */
150c041e9d2SJens Scharsig #define CONFIG_NET_MULTI		1
151c041e9d2SJens Scharsig #ifdef CONFIG_NET_MULTI
152c041e9d2SJens Scharsig #define CONFIG_DRIVER_AT91EMAC		1
153c041e9d2SJens Scharsig #define CONFIG_SYS_RX_ETH_BUFFER	8
154c041e9d2SJens Scharsig #else
155c041e9d2SJens Scharsig #define CONFIG_DRIVER_ETHER		1
156c041e9d2SJens Scharsig #endif
157cb82a532SUlf Samuelsson #define CONFIG_NET_RETRY_COUNT		20
158cb82a532SUlf Samuelsson #define CONFIG_AT91C_USE_RMII
159cb82a532SUlf Samuelsson 
160cb82a532SUlf Samuelsson /*
161cb82a532SUlf Samuelsson  * AC Characteristics
162cb82a532SUlf Samuelsson  * DLYBS = tCSS = 250ns min and DLYBCT = tCSH = 250ns
163cb82a532SUlf Samuelsson  */
164cb82a532SUlf Samuelsson #define DATAFLASH_TCSS	(0xC << 16)
165cb82a532SUlf Samuelsson #define DATAFLASH_TCHS	(0x1 << 24)
166cb82a532SUlf Samuelsson 
167cb82a532SUlf Samuelsson #if defined(CONFIG_HAS_DATAFLASH)
168cb82a532SUlf Samuelsson #define CONFIG_SYS_SPI_WRITE_TOUT		(5 * CONFIG_SYS_HZ)
169cb82a532SUlf Samuelsson #define CONFIG_SYS_MAX_DATAFLASH_BANKS		2
170cb82a532SUlf Samuelsson #define CONFIG_SYS_MAX_DATAFLASH_PAGES		16384
171cb82a532SUlf Samuelsson /* Logical adress for CS0 */
172cb82a532SUlf Samuelsson #define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0	0xC0000000
173cb82a532SUlf Samuelsson /* Logical adress for CS3 */
174cb82a532SUlf Samuelsson #define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3	0xD0000000
175cb82a532SUlf Samuelsson #define	CONFIG_SYS_SUPPORT_BLOCK_ERASE		1
176cb82a532SUlf Samuelsson #define	CONFIG_SYS_DATAFLASH_MMC_PIO		AT91C_PIO_PB22
177cb82a532SUlf Samuelsson #endif
178cb82a532SUlf Samuelsson 
179cb82a532SUlf Samuelsson /*
180cb82a532SUlf Samuelsson  * NOR Flash
181cb82a532SUlf Samuelsson  */
182cb82a532SUlf Samuelsson #define CONFIG_SYS_FLASH_BASE			0x10000000
183cb82a532SUlf Samuelsson #define PHYS_FLASH_SIZE				0x800000	/* 8MB */
184cb82a532SUlf Samuelsson #define CONFIG_SYS_FLASH_CFI			1
185cb82a532SUlf Samuelsson #define CONFIG_FLASH_CFI_DRIVER			1
186cb82a532SUlf Samuelsson #define CONFIG_SYS_MAX_FLASH_BANKS		1
187cb82a532SUlf Samuelsson #define CONFIG_SYS_MAX_FLASH_SECT		256
188cb82a532SUlf Samuelsson #define CONFIG_SYS_FLASH_PROTECTION
189cb82a532SUlf Samuelsson 
190cb82a532SUlf Samuelsson /*
191cb82a532SUlf Samuelsson  * Environment Settings
192cb82a532SUlf Samuelsson  */
193cb82a532SUlf Samuelsson #ifdef CONFIG_ENV_IS_IN_DATAFLASH
194cb82a532SUlf Samuelsson /*
195cb82a532SUlf Samuelsson  * Datasflash Environment Settings
196cb82a532SUlf Samuelsson  */
197cb82a532SUlf Samuelsson #define CONFIG_ENV_OFFSET			0x4200
198cb82a532SUlf Samuelsson #define CONFIG_ENV_ADDR			\
199cb82a532SUlf Samuelsson 		(CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
200cb82a532SUlf Samuelsson /* 8 * 1056 really , but start.s is not OK with this*/
201cb82a532SUlf Samuelsson #define CONFIG_ENV_SIZE			0x2000
202cb82a532SUlf Samuelsson 
203cb82a532SUlf Samuelsson #else
204cb82a532SUlf Samuelsson /*
205cb82a532SUlf Samuelsson  * NOR Flash Environment Settings
206cb82a532SUlf Samuelsson  */
207cb82a532SUlf Samuelsson #define CONFIG_ENV_IS_IN_FLASH		1
208cb82a532SUlf Samuelsson 
209cb82a532SUlf Samuelsson #ifdef CONFIG_SKIP_LOWLEVEL_INIT
210cb82a532SUlf Samuelsson /*
211cb82a532SUlf Samuelsson  * between boot.bin and u-boot.bin.gz
212cb82a532SUlf Samuelsson  */
213cb82a532SUlf Samuelsson #define CONFIG_ENV_ADDR			(CONFIG_SYS_FLASH_BASE + 0xe000)
214cb82a532SUlf Samuelsson #define CONFIG_ENV_SIZE			0x10000 /* sectors are 64K here */
215cb82a532SUlf Samuelsson #else
216cb82a532SUlf Samuelsson /*
217cb82a532SUlf Samuelsson  * after u-boot.bin
218cb82a532SUlf Samuelsson  */
219cb82a532SUlf Samuelsson #define CONFIG_ENV_ADDR			\
220cb82a532SUlf Samuelsson 		(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
221cb82a532SUlf Samuelsson #define CONFIG_ENV_SIZE			0x10000 /* sectors are 64K here */
222cb82a532SUlf Samuelsson /* The following #defines are needed to get flash environment right */
223cb82a532SUlf Samuelsson #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_FLASH_BASE
224cb82a532SUlf Samuelsson #define CONFIG_SYS_MONITOR_LEN		\
225cb82a532SUlf Samuelsson 		(CONFIG_SYS_BOOT_SIZE + CONFIG_SYS_U_BOOT_SIZE)
226cb82a532SUlf Samuelsson #endif	/* CONFIG_SKIP_LOWLEVEL_INIT */
227cb82a532SUlf Samuelsson 
228cb82a532SUlf Samuelsson #endif	/* CONFIG_ENV_IS_IN_DATAFLASH */
229cb82a532SUlf Samuelsson 
230cb82a532SUlf Samuelsson /*
231cb82a532SUlf Samuelsson  * Boot option
232cb82a532SUlf Samuelsson  */
233cb82a532SUlf Samuelsson #define CONFIG_BOOTDELAY		3
234cb82a532SUlf Samuelsson 
235cb82a532SUlf Samuelsson #ifdef CONFIG_SKIP_LOWLEVEL_INIT
236cb82a532SUlf Samuelsson /* boot.bin, env, u-boot.bin.gz */
237cb82a532SUlf Samuelsson #define CONFIG_SYS_BOOT_SIZE		0x6000 /* 24 KBytes */
238cb82a532SUlf Samuelsson #define CONFIG_SYS_U_BOOT_BASE		(CONFIG_SYS_FLASH_BASE + 0x10000)
239cb82a532SUlf Samuelsson #define CONFIG_SYS_U_BOOT_SIZE		0x10000 /* 64 KBytes */
240cb82a532SUlf Samuelsson #else
241cb82a532SUlf Samuelsson /* u-boot.bin */
242cb82a532SUlf Samuelsson #define CONFIG_SYS_BOOT_SIZE		0x0 /* 0 KBytes */
243cb82a532SUlf Samuelsson #define CONFIG_SYS_U_BOOT_BASE		CONFIG_SYS_FLASH_BASE
244cb82a532SUlf Samuelsson #define CONFIG_SYS_U_BOOT_SIZE		0x40000 /* 128 KBytes */
245cb82a532SUlf Samuelsson #endif /* CONFIG_SKIP_LOWLEVEL_INIT */
246cb82a532SUlf Samuelsson 
247cb82a532SUlf Samuelsson #define CONFIG_SYS_LOAD_ADDR		0x21000000 /* default load address */
248cb82a532SUlf Samuelsson #define CONFIG_ENV_OVERWRITE	1
249cb82a532SUlf Samuelsson 
250cb82a532SUlf Samuelsson /*
251cb82a532SUlf Samuelsson  * USB Config
252cb82a532SUlf Samuelsson  */
253cb82a532SUlf Samuelsson #define CONFIG_CMD_USB
254cb82a532SUlf Samuelsson #define CONFIG_USB_OHCI_NEW	1
255cb82a532SUlf Samuelsson #define CONFIG_USB_KEYBOARD	1
256cb82a532SUlf Samuelsson #define CONFIG_USB_STORAGE	1
257cb82a532SUlf Samuelsson #define CONFIG_DOS_PARTITION	1
258cb82a532SUlf Samuelsson 
259cb82a532SUlf Samuelsson #undef CONFIG_SYS_USB_OHCI_BOARD_INIT
260cb82a532SUlf Samuelsson #define CONFIG_SYS_USB_OHCI_CPU_INIT		1
261cb82a532SUlf Samuelsson #define CONFIG_SYS_USB_OHCI_REGS_BASE		AT91_USB_HOST_BASE
262cb82a532SUlf Samuelsson #define CONFIG_SYS_USB_OHCI_SLOT_NAME		"at91rm9200"
263cb82a532SUlf Samuelsson #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	15
264cb82a532SUlf Samuelsson 
265cb82a532SUlf Samuelsson /*
266cb82a532SUlf Samuelsson  * I2C
267cb82a532SUlf Samuelsson  */
268cb82a532SUlf Samuelsson #define CONFIG_HARD_I2C
269cb82a532SUlf Samuelsson 
270cb82a532SUlf Samuelsson #ifdef CONFIG_HARD_I2C
271cb82a532SUlf Samuelsson #define CONFIG_CMD_I2C
272cb82a532SUlf Samuelsson #define CONFIG_SYS_I2C_SPEED		0	/* not used */
273cb82a532SUlf Samuelsson #define CONFIG_SYS_I2C_SLAVE		0	/* not used */
274cb82a532SUlf Samuelsson #endif
275cb82a532SUlf Samuelsson 
276cb82a532SUlf Samuelsson /*
277cb82a532SUlf Samuelsson  * Shell Settings
278cb82a532SUlf Samuelsson  */
279cb82a532SUlf Samuelsson #define CONFIG_CMDLINE_EDITING		1
280cb82a532SUlf Samuelsson #define CONFIG_SYS_LONGHELP		1
281cb82a532SUlf Samuelsson #define CONFIG_AUTO_COMPLETE		1
282cb82a532SUlf Samuelsson #define CONFIG_SYS_HUSH_PARSER		1
283cb82a532SUlf Samuelsson #define CONFIG_SYS_PROMPT		"U-Boot> "
284cb82a532SUlf Samuelsson #define CONFIG_SYS_PROMPT_HUSH_PS2	"> "
285cb82a532SUlf Samuelsson #define CONFIG_SYS_CBSIZE		256	/* Console I/O Buffer Size */
286cb82a532SUlf Samuelsson #define CONFIG_SYS_MAXARGS		16	/* max number of command args */
287cb82a532SUlf Samuelsson /* Print Buffer Size */
288cb82a532SUlf Samuelsson #define CONFIG_SYS_PBSIZE		\
289cb82a532SUlf Samuelsson 		(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
290cb82a532SUlf Samuelsson 
291cb82a532SUlf Samuelsson #ifndef __ASSEMBLY__
292cb82a532SUlf Samuelsson /*-----------------------------------------------------------------------
293cb82a532SUlf Samuelsson  * Board specific extension for bd_info
294cb82a532SUlf Samuelsson  *
295cb82a532SUlf Samuelsson  * This structure is embedded in the global bd_info (bd_t) structure
296cb82a532SUlf Samuelsson  * and can be used by the board specific code (eg board/...)
297cb82a532SUlf Samuelsson  */
298cb82a532SUlf Samuelsson 
299cb82a532SUlf Samuelsson struct bd_info_ext {
300cb82a532SUlf Samuelsson 	/* helper variable for board environment handling
301cb82a532SUlf Samuelsson 	 *
302cb82a532SUlf Samuelsson 	 * env_crc_valid == 0	=>	uninitialised
303cb82a532SUlf Samuelsson 	 * env_crc_valid > 0	=>	environment crc in flash is valid
304cb82a532SUlf Samuelsson 	 * env_crc_valid < 0	=>	environment crc in flash is invalid
305cb82a532SUlf Samuelsson 	 */
306cb82a532SUlf Samuelsson 	int env_crc_valid;
307cb82a532SUlf Samuelsson };
308cb82a532SUlf Samuelsson #endif
309cb82a532SUlf Samuelsson 
310cb82a532SUlf Samuelsson #define CONFIG_SYS_HZ 1000
311cb82a532SUlf Samuelsson /*
312cb82a532SUlf Samuelsson  * AT91C_TC0_CMR is implicitly set to
313cb82a532SUlf Samuelsson  * AT91C_TC_TIMER_DIV1_CLOCK
314cb82a532SUlf Samuelsson  */
315cb82a532SUlf Samuelsson #define CONFIG_SYS_HZ_CLOCK (AT91C_MASTER_CLOCK / 2)
316cb82a532SUlf Samuelsson 
317cb82a532SUlf Samuelsson /*
318cb82a532SUlf Samuelsson  * Size of malloc() pool
319cb82a532SUlf Samuelsson  */
320cb82a532SUlf Samuelsson #define CONFIG_SYS_MALLOC_LEN		ROUND(3 * CONFIG_ENV_SIZE + 128 * 1024 \
321cb82a532SUlf Samuelsson 					     , 0x1000)
322cb82a532SUlf Samuelsson /* size in bytes reserved for initial data */
323cb82a532SUlf Samuelsson #define CONFIG_SYS_GBL_DATA_SIZE	128
324cb82a532SUlf Samuelsson 
325cb82a532SUlf Samuelsson #define CONFIG_STACKSIZE		(32 * 1024)	/* regular stack */
326cb82a532SUlf Samuelsson #define CONFIG_STACKSIZE_IRQ		(4 * 1024) /* Unsure if to big or to small*/
327cb82a532SUlf Samuelsson #define CONFIG_STACKSIZE_FIQ		(4 * 1024) /* Unsure if to big or to small*/
328cb82a532SUlf Samuelsson #endif
329