xref: /rk3399_rockchip-uboot/include/configs/microblaze-generic.h (revision 2cce2d32318e66e5b72b78ff99e0ccdffa12277b)
152a822edSMichal Simek /*
24aecfb16SMichal Simek  * (C) Copyright 2007-2010 Michal Simek
352a822edSMichal Simek  *
452a822edSMichal Simek  * Michal SIMEK <monstr@monstr.eu>
552a822edSMichal Simek  *
652a822edSMichal Simek  * See file CREDITS for list of people who contributed to this
752a822edSMichal Simek  * project.
852a822edSMichal Simek  *
952a822edSMichal Simek  * This program is free software; you can redistribute it and/or
1052a822edSMichal Simek  * modify it under the terms of the GNU General Public License as
1152a822edSMichal Simek  * published by the Free Software Foundation; either version 2 of
1252a822edSMichal Simek  * the License, or (at your option) any later version.
1352a822edSMichal Simek  *
1452a822edSMichal Simek  * This program is distributed in the hope that it will be useful,
1552a822edSMichal Simek  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1652a822edSMichal Simek  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1752a822edSMichal Simek  * GNU General Public License for more details.
1852a822edSMichal Simek  *
1952a822edSMichal Simek  * You should have received a copy of the GNU General Public License
2052a822edSMichal Simek  * along with this program; if not, write to the Free Software
2152a822edSMichal Simek  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2252a822edSMichal Simek  * MA 02111-1307 USA
2352a822edSMichal Simek  */
2452a822edSMichal Simek 
2552a822edSMichal Simek #ifndef __CONFIG_H
2652a822edSMichal Simek #define __CONFIG_H
2752a822edSMichal Simek 
2852a822edSMichal Simek #include "../board/xilinx/microblaze-generic/xparameters.h"
2952a822edSMichal Simek 
304aecfb16SMichal Simek /* MicroBlaze CPU */
314aecfb16SMichal Simek #define	CONFIG_MICROBLAZE	1
3252a822edSMichal Simek #define	MICROBLAZE_V5		1
3352a822edSMichal Simek 
341fe7e8faSStephan Linz /* linear flash memory */
351fe7e8faSStephan Linz #ifdef XILINX_FLASH_START
361fe7e8faSStephan Linz #define	FLASH
371fe7e8faSStephan Linz #undef	RAMENV	/* hold environment in flash */
381fe7e8faSStephan Linz #else
391fe7e8faSStephan Linz #undef	FLASH
401fe7e8faSStephan Linz #define	RAMENV	/* hold environment in RAM */
411fe7e8faSStephan Linz #endif
421fe7e8faSStephan Linz 
4352a822edSMichal Simek /* uart */
4452a822edSMichal Simek #ifdef XILINX_UARTLITE_BASEADDR
4552a822edSMichal Simek # define CONFIG_XILINX_UARTLITE
4652a822edSMichal Simek # define CONFIG_SERIAL_BASE	XILINX_UARTLITE_BASEADDR
4752a822edSMichal Simek # define CONFIG_BAUDRATE	XILINX_UARTLITE_BAUDRATE
4852a822edSMichal Simek # define CONFIG_SYS_BAUDRATE_TABLE	{ CONFIG_BAUDRATE }
49330e5545SMichal Simek # define CONSOLE_ARG	"console=console=ttyUL0,115200\0"
5052a822edSMichal Simek #elif XILINX_UART16550_BASEADDR
5152a822edSMichal Simek # define CONFIG_SYS_NS16550		1
5252a822edSMichal Simek # define CONFIG_SYS_NS16550_SERIAL
531de55ef1SStephan Linz # if defined(__MICROBLAZEEL__)
5452a822edSMichal Simek #  define CONFIG_SYS_NS16550_REG_SIZE	-4
551de55ef1SStephan Linz # else
561de55ef1SStephan Linz #  define CONFIG_SYS_NS16550_REG_SIZE	4
571de55ef1SStephan Linz # endif
5852a822edSMichal Simek # define CONFIG_CONS_INDEX		1
594aecfb16SMichal Simek # define CONFIG_SYS_NS16550_COM1 \
601de55ef1SStephan Linz 		((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
6152a822edSMichal Simek # define CONFIG_SYS_NS16550_CLK	XILINX_UART16550_CLOCK_HZ
6252a822edSMichal Simek # define CONFIG_BAUDRATE	115200
6352a822edSMichal Simek 
6452a822edSMichal Simek /* The following table includes the supported baudrates */
6552a822edSMichal Simek # define CONFIG_SYS_BAUDRATE_TABLE \
6652a822edSMichal Simek 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
67330e5545SMichal Simek # define CONSOLE_ARG	"console=console=ttyS0,115200\0"
6852a822edSMichal Simek #else
6952a822edSMichal Simek # error Undefined uart
7052a822edSMichal Simek #endif
7152a822edSMichal Simek 
7252a822edSMichal Simek /* setting reset address */
7314d0a02aSWolfgang Denk /*#define	CONFIG_SYS_RESET_ADDRESS	CONFIG_SYS_TEXT_BASE*/
7452a822edSMichal Simek 
7552a822edSMichal Simek /* ethernet */
761252df06SMichal Simek #undef CONFIG_SYS_ENET
778422a35eSStephan Linz #if defined(XILINX_EMACLITE_BASEADDR)
7852a822edSMichal Simek # define CONFIG_XILINX_EMACLITE	1
7952a822edSMichal Simek # define CONFIG_SYS_ENET
808422a35eSStephan Linz #endif
818422a35eSStephan Linz #if defined(XILINX_LLTEMAC_BASEADDR)
82330e5545SMichal Simek # define CONFIG_XILINX_LL_TEMAC	1
83330e5545SMichal Simek # define CONFIG_SYS_ENET
8452a822edSMichal Simek #endif
85e634138eSMichal Simek #if defined(XILINX_AXIEMAC_BASEADDR)
86e634138eSMichal Simek # define CONFIG_XILINX_AXIEMAC	1
87e634138eSMichal Simek # define CONFIG_SYS_ENET
88e634138eSMichal Simek #endif
89330e5545SMichal Simek 
9052a822edSMichal Simek #undef ET_DEBUG
9152a822edSMichal Simek 
9252a822edSMichal Simek /* gpio */
9352a822edSMichal Simek #ifdef XILINX_GPIO_BASEADDR
9452a822edSMichal Simek # define CONFIG_SYS_GPIO_0		1
9552a822edSMichal Simek # define CONFIG_SYS_GPIO_0_ADDR		XILINX_GPIO_BASEADDR
9652a822edSMichal Simek #endif
9752a822edSMichal Simek 
9852a822edSMichal Simek /* interrupt controller */
9952a822edSMichal Simek #ifdef XILINX_INTC_BASEADDR
10052a822edSMichal Simek # define CONFIG_SYS_INTC_0		1
10152a822edSMichal Simek # define CONFIG_SYS_INTC_0_ADDR		XILINX_INTC_BASEADDR
10252a822edSMichal Simek # define CONFIG_SYS_INTC_0_NUM		XILINX_INTC_NUM_INTR_INPUTS
10352a822edSMichal Simek #endif
10452a822edSMichal Simek 
10552a822edSMichal Simek /* timer */
10652a822edSMichal Simek #ifdef XILINX_TIMER_BASEADDR
10752a822edSMichal Simek # if (XILINX_TIMER_IRQ != -1)
10852a822edSMichal Simek #  define CONFIG_SYS_TIMER_0		1
10952a822edSMichal Simek #  define CONFIG_SYS_TIMER_0_ADDR	XILINX_TIMER_BASEADDR
11052a822edSMichal Simek #  define CONFIG_SYS_TIMER_0_IRQ	XILINX_TIMER_IRQ
11152a822edSMichal Simek #  define FREQUENCE	XILINX_CLOCK_FREQ
11252a822edSMichal Simek #  define CONFIG_SYS_TIMER_0_PRELOAD	( FREQUENCE/1000 )
11352a822edSMichal Simek # endif
114330e5545SMichal Simek #elif XILINX_CLOCK_FREQ
11552a822edSMichal Simek # define CONFIG_XILINX_CLOCK_FREQ	XILINX_CLOCK_FREQ
11652a822edSMichal Simek #else
11752a822edSMichal Simek # error BAD CLOCK FREQ
11852a822edSMichal Simek #endif
11952a822edSMichal Simek /* FSL */
12052a822edSMichal Simek /* #define	CONFIG_SYS_FSL_2 */
12152a822edSMichal Simek /* #define	FSL_INTR_2	1 */
12252a822edSMichal Simek 
12352a822edSMichal Simek /*
12452a822edSMichal Simek  * memory layout - Example
1258f371b18SStephan Linz  * CONFIG_SYS_TEXT_BASE = 0x1200_0000;	defined in config.mk
12652a822edSMichal Simek  * CONFIG_SYS_SRAM_BASE = 0x1000_0000;
1278f371b18SStephan Linz  * CONFIG_SYS_SRAM_SIZE = 0x0400_0000;	64MB
1288f371b18SStephan Linz  *
1298f371b18SStephan Linz  * CONFIG_SYS_MONITOR_LEN = 0x40000
1308f371b18SStephan Linz  * CONFIG_SYS_MALLOC_LEN = 3 * CONFIG_SYS_MONITOR_LEN = 0xC0000
13152a822edSMichal Simek  *
13252a822edSMichal Simek  * CONFIG_SYS_GBL_DATA_OFFSET = 0x1000_0000 + 0x0400_0000 - 0x1000 = 0x13FF_F000
1338f371b18SStephan Linz  * CONFIG_SYS_MONITOR_BASE = 0x13FF_F000 - CONFIG_SYS_MONITOR_LEN = 0x13FB_F000
1348f371b18SStephan Linz  * CONFIG_SYS_MALLOC_BASE = 0x13FB_F000 - CONFIG_SYS_MALLOC_LEN = 0x13EF_F000
13552a822edSMichal Simek  *
13652a822edSMichal Simek  * 0x1000_0000	CONFIG_SYS_SDRAM_BASE
1378f371b18SStephan Linz  *					MEMTEST_AREA	 64kB
13852a822edSMichal Simek  *					FREE
13914d0a02aSWolfgang Denk  * 0x1200_0000	CONFIG_SYS_TEXT_BASE
14052a822edSMichal Simek  *		U-BOOT code
14152a822edSMichal Simek  * 0x1202_0000
14252a822edSMichal Simek  *					FREE
14352a822edSMichal Simek  *
14452a822edSMichal Simek  *					STACK
1458f371b18SStephan Linz  * 0x13EF_F000	CONFIG_SYS_MALLOC_BASE
1468f371b18SStephan Linz  *					MALLOC_AREA	768kB	Alloc
1478f371b18SStephan Linz  * 0x13FB_F000	CONFIG_SYS_MONITOR_BASE
14852a822edSMichal Simek  *					MONITOR_CODE	256kB	Env
14952a822edSMichal Simek  * 0x13FF_F000	CONFIG_SYS_GBL_DATA_OFFSET
15052a822edSMichal Simek  *					GLOBAL_DATA	4kB	bd, gd
15152a822edSMichal Simek  * 0x1400_0000	CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE
15252a822edSMichal Simek  */
15352a822edSMichal Simek 
15452a822edSMichal Simek /* ddr sdram - main memory */
15552a822edSMichal Simek #define	CONFIG_SYS_SDRAM_BASE		XILINX_RAM_START
15652a822edSMichal Simek #define	CONFIG_SYS_SDRAM_SIZE		XILINX_RAM_SIZE
15752a822edSMichal Simek #define	CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
15852a822edSMichal Simek #define	CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x1000)
15952a822edSMichal Simek 
16052a822edSMichal Simek /* global pointer */
16152a822edSMichal Simek /* start of global data */
1624aecfb16SMichal Simek #define	CONFIG_SYS_GBL_DATA_OFFSET \
1631020286eSMichal Simek 		(CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE)
16452a822edSMichal Simek 
16552a822edSMichal Simek /* monitor code */
16652a822edSMichal Simek #define	SIZE				0x40000
1671020286eSMichal Simek #define	CONFIG_SYS_MONITOR_LEN		SIZE
1684aecfb16SMichal Simek #define	CONFIG_SYS_MONITOR_BASE	\
1691020286eSMichal Simek 		(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
1701020286eSMichal Simek 			- CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE)
1714aecfb16SMichal Simek #define	CONFIG_SYS_MONITOR_END \
1724aecfb16SMichal Simek 			(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
1737cfb13a7SStephan Linz #define	CONFIG_SYS_MALLOC_LEN		(SIZE * 3)
1744aecfb16SMichal Simek #define	CONFIG_SYS_MALLOC_BASE \
1754aecfb16SMichal Simek 			(CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
17652a822edSMichal Simek 
17752a822edSMichal Simek /* stack */
1788fe7b29fSGraeme Smecher #define	CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_MALLOC_BASE
17952a822edSMichal Simek 
1808f371b18SStephan Linz /*
1818f371b18SStephan Linz  * CFI flash memory layout - Example
1828f371b18SStephan Linz  * CONFIG_SYS_FLASH_BASE = 0x2200_0000;
1838f371b18SStephan Linz  * CONFIG_SYS_FLASH_SIZE = 0x0080_0000;	  8MB
1848f371b18SStephan Linz  *
1858f371b18SStephan Linz  * SECT_SIZE = 0x20000;			128kB is one sector
1868f371b18SStephan Linz  * CONFIG_ENV_SIZE = SECT_SIZE;		128kB environment store
1878f371b18SStephan Linz  *
1888f371b18SStephan Linz  * 0x2200_0000	CONFIG_SYS_FLASH_BASE
1898f371b18SStephan Linz  *					FREE		256kB
1908f371b18SStephan Linz  * 0x2204_0000	CONFIG_ENV_ADDR
1918f371b18SStephan Linz  *					ENV_AREA	128kB
1928f371b18SStephan Linz  * 0x2206_0000
1938f371b18SStephan Linz  *					FREE
1948f371b18SStephan Linz  * 0x2280_0000	CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE
1958f371b18SStephan Linz  *
1968f371b18SStephan Linz  */
1978f371b18SStephan Linz 
19852a822edSMichal Simek #ifdef FLASH
19952a822edSMichal Simek # define CONFIG_SYS_FLASH_BASE		XILINX_FLASH_START
20052a822edSMichal Simek # define CONFIG_SYS_FLASH_SIZE		XILINX_FLASH_SIZE
20152a822edSMichal Simek # define CONFIG_SYS_FLASH_CFI		1
20252a822edSMichal Simek # define CONFIG_FLASH_CFI_DRIVER	1
2034aecfb16SMichal Simek /* ?empty sector */
2044aecfb16SMichal Simek # define CONFIG_SYS_FLASH_EMPTY_INFO	1
2054aecfb16SMichal Simek /* max number of memory banks */
2064aecfb16SMichal Simek # define CONFIG_SYS_MAX_FLASH_BANKS	1
2074aecfb16SMichal Simek /* max number of sectors on one chip */
2084aecfb16SMichal Simek # define CONFIG_SYS_MAX_FLASH_SECT	512
2094aecfb16SMichal Simek /* hardware flash protection */
2104aecfb16SMichal Simek # define CONFIG_SYS_FLASH_PROTECTION
21152a822edSMichal Simek 
21252a822edSMichal Simek # ifdef	RAMENV
21352a822edSMichal Simek #  define CONFIG_ENV_IS_NOWHERE	1
21452a822edSMichal Simek #  define CONFIG_ENV_SIZE	0x1000
21552a822edSMichal Simek #  define CONFIG_ENV_ADDR	(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
21652a822edSMichal Simek 
21752a822edSMichal Simek # else	/* !RAMENV */
21852a822edSMichal Simek #  define CONFIG_ENV_IS_IN_FLASH	1
2194aecfb16SMichal Simek /* 128K(one sector) for env */
2204aecfb16SMichal Simek #  define CONFIG_ENV_SECT_SIZE	0x20000
2214aecfb16SMichal Simek #  define CONFIG_ENV_ADDR \
2224aecfb16SMichal Simek 			(CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
223330e5545SMichal Simek #  define CONFIG_ENV_SIZE	0x20000
22452a822edSMichal Simek # endif /* !RAMBOOT */
22552a822edSMichal Simek #else /* !FLASH */
22652a822edSMichal Simek /* ENV in RAM */
22752a822edSMichal Simek # define CONFIG_SYS_NO_FLASH	1
22852a822edSMichal Simek # define CONFIG_ENV_IS_NOWHERE	1
22952a822edSMichal Simek # define CONFIG_ENV_SIZE	0x1000
23052a822edSMichal Simek # define CONFIG_ENV_ADDR	(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
23152a822edSMichal Simek #endif /* !FLASH */
23252a822edSMichal Simek 
23352a822edSMichal Simek /* system ace */
23452a822edSMichal Simek #ifdef XILINX_SYSACE_BASEADDR
23552a822edSMichal Simek # define CONFIG_SYSTEMACE
23652a822edSMichal Simek /* #define DEBUG_SYSTEMACE */
23752a822edSMichal Simek # define SYSTEMACE_CONFIG_FPGA
23852a822edSMichal Simek # define CONFIG_SYS_SYSTEMACE_BASE	XILINX_SYSACE_BASEADDR
23952a822edSMichal Simek # define CONFIG_SYS_SYSTEMACE_WIDTH	XILINX_SYSACE_MEM_WIDTH
24052a822edSMichal Simek # define CONFIG_DOS_PARTITION
24152a822edSMichal Simek #endif
24252a822edSMichal Simek 
243e9b737deSMichal Simek #if defined(XILINX_USE_ICACHE)
244e9b737deSMichal Simek # define CONFIG_ICACHE
245e9b737deSMichal Simek #else
246e9b737deSMichal Simek # undef CONFIG_ICACHE
247e9b737deSMichal Simek #endif
248e9b737deSMichal Simek 
249e9b737deSMichal Simek #if defined(XILINX_USE_DCACHE)
250e9b737deSMichal Simek # define CONFIG_DCACHE
251e9b737deSMichal Simek #else
252e9b737deSMichal Simek # undef CONFIG_DCACHE
253e9b737deSMichal Simek #endif
254e9b737deSMichal Simek 
25552a822edSMichal Simek /*
25652a822edSMichal Simek  * BOOTP options
25752a822edSMichal Simek  */
25852a822edSMichal Simek #define CONFIG_BOOTP_BOOTFILESIZE
25952a822edSMichal Simek #define CONFIG_BOOTP_BOOTPATH
26052a822edSMichal Simek #define CONFIG_BOOTP_GATEWAY
26152a822edSMichal Simek #define CONFIG_BOOTP_HOSTNAME
26252a822edSMichal Simek 
26352a822edSMichal Simek /*
26452a822edSMichal Simek  * Command line configuration.
26552a822edSMichal Simek  */
26652a822edSMichal Simek #include <config_cmd_default.h>
26752a822edSMichal Simek 
26852a822edSMichal Simek #define CONFIG_CMD_ASKENV
26952a822edSMichal Simek #define CONFIG_CMD_IRQ
27052a822edSMichal Simek #define CONFIG_CMD_MFSL
271330e5545SMichal Simek #define CONFIG_CMD_ECHO
27252a822edSMichal Simek 
273e9b737deSMichal Simek #if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE)
274e9b737deSMichal Simek # define CONFIG_CMD_CACHE
275e9b737deSMichal Simek #else
276e9b737deSMichal Simek # undef CONFIG_CMD_CACHE
277e9b737deSMichal Simek #endif
278e9b737deSMichal Simek 
27952a822edSMichal Simek #ifndef CONFIG_SYS_ENET
28052a822edSMichal Simek # undef CONFIG_CMD_NET
2811252df06SMichal Simek # undef CONFIG_CMD_NFS
28252a822edSMichal Simek #else
28352a822edSMichal Simek # define CONFIG_CMD_PING
2843faf987dSStephan Linz # define CONFIG_CMD_DHCP
2854eb29cf0SStephan Linz # define CONFIG_CMD_TFTPPUT
28652a822edSMichal Simek #endif
28752a822edSMichal Simek 
28852a822edSMichal Simek #if defined(CONFIG_SYSTEMACE)
28952a822edSMichal Simek # define CONFIG_CMD_EXT2
29052a822edSMichal Simek # define CONFIG_CMD_FAT
29152a822edSMichal Simek #endif
29252a822edSMichal Simek 
29352a822edSMichal Simek #if defined(FLASH)
29452a822edSMichal Simek # define CONFIG_CMD_ECHO
29552a822edSMichal Simek # define CONFIG_CMD_FLASH
29652a822edSMichal Simek # define CONFIG_CMD_IMLS
29752a822edSMichal Simek # define CONFIG_CMD_JFFS2
2987cfb13a7SStephan Linz # define CONFIG_CMD_UBI
2997cfb13a7SStephan Linz # undef CONFIG_CMD_UBIFS
30052a822edSMichal Simek 
30152a822edSMichal Simek # if !defined(RAMENV)
302bdab39d3SMike Frysinger #  define CONFIG_CMD_SAVEENV
30352a822edSMichal Simek #  define CONFIG_CMD_SAVES
30452a822edSMichal Simek # endif
30552a822edSMichal Simek #else
306330e5545SMichal Simek # undef CONFIG_CMD_IMLS
30752a822edSMichal Simek # undef CONFIG_CMD_FLASH
308330e5545SMichal Simek # undef CONFIG_CMD_JFFS2
309*2cce2d32SStephan Linz # undef CONFIG_CMD_UBI
310*2cce2d32SStephan Linz # undef CONFIG_CMD_UBIFS
31152a822edSMichal Simek #endif
31252a822edSMichal Simek 
31352a822edSMichal Simek #if defined(CONFIG_CMD_JFFS2)
3147cfb13a7SStephan Linz # define CONFIG_MTD_PARTITIONS
3157cfb13a7SStephan Linz #endif
3167cfb13a7SStephan Linz 
3177cfb13a7SStephan Linz #if defined(CONFIG_CMD_UBIFS)
3187cfb13a7SStephan Linz # define CONFIG_CMD_UBI
3197cfb13a7SStephan Linz # define CONFIG_LZO
3207cfb13a7SStephan Linz #endif
3217cfb13a7SStephan Linz 
3227cfb13a7SStephan Linz #if defined(CONFIG_CMD_UBI)
3237cfb13a7SStephan Linz # define CONFIG_MTD_PARTITIONS
3247cfb13a7SStephan Linz # define CONFIG_RBTREE
3257cfb13a7SStephan Linz #endif
3267cfb13a7SStephan Linz 
3277cfb13a7SStephan Linz #if defined(CONFIG_MTD_PARTITIONS)
3287cfb13a7SStephan Linz /* MTD partitions */
32968d7d651SStefan Roese #define CONFIG_CMD_MTDPARTS	/* mtdparts command line support */
330942556a9SStefan Roese #define CONFIG_MTD_DEVICE	/* needed for mtdparts commands */
331942556a9SStefan Roese #define CONFIG_FLASH_CFI_MTD
332c82a541dSStephan Linz #define MTDIDS_DEFAULT		"nor0=flash-0"
33352a822edSMichal Simek 
33452a822edSMichal Simek /* default mtd partition table */
335c82a541dSStephan Linz #define MTDPARTS_DEFAULT	"mtdparts=flash-0:256k(u-boot),"\
33652a822edSMichal Simek 				"256k(env),3m(kernel),1m(romfs),"\
33752a822edSMichal Simek 				"1m(cramfs),-(jffs2)"
33852a822edSMichal Simek #endif
33952a822edSMichal Simek 
34052a822edSMichal Simek /* Miscellaneous configurable options */
34152a822edSMichal Simek #define	CONFIG_SYS_PROMPT	"U-Boot-mONStR> "
3424aecfb16SMichal Simek /* size of console buffer */
3434aecfb16SMichal Simek #define	CONFIG_SYS_CBSIZE	512
3444aecfb16SMichal Simek  /* print buffer size */
3454aecfb16SMichal Simek #define	CONFIG_SYS_PBSIZE \
3464aecfb16SMichal Simek 		(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
3474aecfb16SMichal Simek /* max number of command args */
3484aecfb16SMichal Simek #define	CONFIG_SYS_MAXARGS	15
34952a822edSMichal Simek #define	CONFIG_SYS_LONGHELP
3504aecfb16SMichal Simek /* default load address */
3514aecfb16SMichal Simek #define	CONFIG_SYS_LOAD_ADDR	XILINX_RAM_START
35252a822edSMichal Simek 
353330e5545SMichal Simek #define	CONFIG_BOOTDELAY	-1	/* -1 disables auto-boot */
35452a822edSMichal Simek #define	CONFIG_BOOTARGS		"root=romfs"
355330e5545SMichal Simek #define	CONFIG_HOSTNAME		XILINX_BOARD_NAME
35652a822edSMichal Simek #define	CONFIG_BOOTCOMMAND	"base 0;tftp 11000000 image.img;bootm"
35752a822edSMichal Simek #define	CONFIG_IPADDR		192.168.0.3
35852a822edSMichal Simek #define	CONFIG_SERVERIP		192.168.0.5
35952a822edSMichal Simek #define	CONFIG_GATEWAYIP	192.168.0.1
36052a822edSMichal Simek #define	CONFIG_ETHADDR		00:E0:0C:00:00:FD
36152a822edSMichal Simek 
36252a822edSMichal Simek /* architecture dependent code */
36352a822edSMichal Simek #define	CONFIG_SYS_USR_EXCEP	/* user exception */
36452a822edSMichal Simek #define CONFIG_SYS_HZ	1000
36552a822edSMichal Simek 
3660900bee9SMichal Simek #define	CONFIG_PREBOOT	"echo U-BOOT for ${hostname};setenv preboot;echo"
36752a822edSMichal Simek 
3684aecfb16SMichal Simek #define	CONFIG_EXTRA_ENV_SETTINGS	"unlock=yes\0" \
369c82a541dSStephan Linz 					"nor0=flash-0\0"\
370c82a541dSStephan Linz 					"mtdparts=mtdparts=flash-0:"\
37152a822edSMichal Simek 					"256k(u-boot),256k(env),3m(kernel),"\
37252a822edSMichal Simek 					"1m(romfs),1m(cramfs),-(jffs2)\0"
37352a822edSMichal Simek 
37452a822edSMichal Simek #define CONFIG_CMDLINE_EDITING
37552a822edSMichal Simek 
3760900bee9SMichal Simek /* Use the HUSH parser */
3770900bee9SMichal Simek #define CONFIG_SYS_HUSH_PARSER
3780900bee9SMichal Simek 
37937e892d9SMichal Simek /* Enable flat device tree support */
38037e892d9SMichal Simek #define CONFIG_LMB		1
38137e892d9SMichal Simek #define CONFIG_FIT		1
38237e892d9SMichal Simek #define CONFIG_OF_LIBFDT	1
38337e892d9SMichal Simek 
3848422a35eSStephan Linz #if defined(CONFIG_XILINX_LL_TEMAC) || defined(CONFIG_XILINX_AXIEMAC)
385f5e5e1ffSStephan Linz # define CONFIG_MII		1
386f5e5e1ffSStephan Linz # define CONFIG_CMD_MII		1
387f5e5e1ffSStephan Linz # define CONFIG_PHY_GIGE	1
388f5e5e1ffSStephan Linz # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN	1
389f5e5e1ffSStephan Linz # define CONFIG_PHYLIB		1
390f5e5e1ffSStephan Linz # define CONFIG_PHY_ATHEROS	1
391f5e5e1ffSStephan Linz # define CONFIG_PHY_BROADCOM	1
392f5e5e1ffSStephan Linz # define CONFIG_PHY_DAVICOM	1
393f5e5e1ffSStephan Linz # define CONFIG_PHY_LXT		1
394f5e5e1ffSStephan Linz # define CONFIG_PHY_MARVELL	1
395f5e5e1ffSStephan Linz # define CONFIG_PHY_MICREL	1
396f5e5e1ffSStephan Linz # define CONFIG_PHY_NATSEMI	1
397f5e5e1ffSStephan Linz # define CONFIG_PHY_REALTEK	1
398f5e5e1ffSStephan Linz # define CONFIG_PHY_VITESSE	1
399f5e5e1ffSStephan Linz #else
400f5e5e1ffSStephan Linz # undef CONFIG_MII
401f5e5e1ffSStephan Linz # undef CONFIG_CMD_MII
402f5e5e1ffSStephan Linz # undef CONFIG_PHYLIB
403f5e5e1ffSStephan Linz #endif
404f5e5e1ffSStephan Linz 
40552a822edSMichal Simek #endif	/* __CONFIG_H */
406