xref: /rk3399_rockchip-uboot/include/configs/guruplug.h (revision 54e999a30af2ce4fab27b01a90676de3f1db1f49)
116b76705SSiddarth Gore /*
216b76705SSiddarth Gore  * (C) Copyright 2009
316b76705SSiddarth Gore  * Marvell Semiconductor <www.marvell.com>
416b76705SSiddarth Gore  * Written-by: Siddarth Gore <gores@marvell.com>
516b76705SSiddarth Gore  *
616b76705SSiddarth Gore  * See file CREDITS for list of people who contributed to this
716b76705SSiddarth Gore  * project.
816b76705SSiddarth Gore  *
916b76705SSiddarth Gore  * This program is free software; you can redistribute it and/or
1016b76705SSiddarth Gore  * modify it under the terms of the GNU General Public License as
1116b76705SSiddarth Gore  * published by the Free Software Foundation; either version 2 of
1216b76705SSiddarth Gore  * the License, or (at your option) any later version.
1316b76705SSiddarth Gore  *
1416b76705SSiddarth Gore  * This program is distributed in the hope that it will be useful,
1516b76705SSiddarth Gore  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1616b76705SSiddarth Gore  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1716b76705SSiddarth Gore  * GNU General Public License for more details.
1816b76705SSiddarth Gore  *
1916b76705SSiddarth Gore  * You should have received a copy of the GNU General Public License
2016b76705SSiddarth Gore  * along with this program; if not, write to the Free Software
2116b76705SSiddarth Gore  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
2216b76705SSiddarth Gore  * MA 02110-1301 USA
2316b76705SSiddarth Gore  */
2416b76705SSiddarth Gore 
2516b76705SSiddarth Gore #ifndef _CONFIG_GURUPLUG_H
2616b76705SSiddarth Gore #define _CONFIG_GURUPLUG_H
2716b76705SSiddarth Gore 
2816b76705SSiddarth Gore /*
2916b76705SSiddarth Gore  * Version number information
3016b76705SSiddarth Gore  */
3116b76705SSiddarth Gore #define CONFIG_IDENT_STRING	"\nMarvell-GuruPlug"
3216b76705SSiddarth Gore 
3316b76705SSiddarth Gore /*
3416b76705SSiddarth Gore  * High Level Configuration Options (easy to change)
3516b76705SSiddarth Gore  */
3616b76705SSiddarth Gore #define CONFIG_SHEEVA_88SV131	1	/* CPU Core subversion */
3716b76705SSiddarth Gore #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
3816b76705SSiddarth Gore #define CONFIG_KW88F6281	1	/* SOC Name */
3916b76705SSiddarth Gore #define CONFIG_MACH_GURUPLUG	/* Machine type */
4016b76705SSiddarth Gore #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
4116b76705SSiddarth Gore 
4216b76705SSiddarth Gore /*
4316b76705SSiddarth Gore  * Commands configuration
4416b76705SSiddarth Gore  */
4516b76705SSiddarth Gore #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
4616b76705SSiddarth Gore #include <config_cmd_default.h>
4716b76705SSiddarth Gore #define CONFIG_CMD_DHCP
4816b76705SSiddarth Gore #define CONFIG_CMD_ENV
4916b76705SSiddarth Gore #define CONFIG_CMD_FAT
5016b76705SSiddarth Gore #define CONFIG_CMD_NAND
5116b76705SSiddarth Gore #define CONFIG_CMD_PING
5216b76705SSiddarth Gore #define CONFIG_CMD_USB
53*54e999a3SPrafulla Wadaskar #define CONFIG_CMD_IDE
5416b76705SSiddarth Gore 
5516b76705SSiddarth Gore /*
56*54e999a3SPrafulla Wadaskar  * mv-common.h should be defined after CMD configs since it used them
57*54e999a3SPrafulla Wadaskar  * to enable certain macros
5816b76705SSiddarth Gore  */
59*54e999a3SPrafulla Wadaskar #include "mv-common.h"
6016b76705SSiddarth Gore 
6116b76705SSiddarth Gore /*
6216b76705SSiddarth Gore  *  Environment variables configurations
6316b76705SSiddarth Gore  */
6416b76705SSiddarth Gore #ifdef CONFIG_CMD_NAND
6516b76705SSiddarth Gore #define CONFIG_ENV_IS_IN_NAND		1
6616b76705SSiddarth Gore #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
6716b76705SSiddarth Gore #else
6816b76705SSiddarth Gore #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
6916b76705SSiddarth Gore #endif
7016b76705SSiddarth Gore /*
7116b76705SSiddarth Gore  * max 4k env size is enough, but in case of nand
7216b76705SSiddarth Gore  * it has to be rounded to sector size
7316b76705SSiddarth Gore  */
7416b76705SSiddarth Gore #define CONFIG_ENV_SIZE			0x20000	/* 128k */
7516b76705SSiddarth Gore #define CONFIG_ENV_ADDR			0x40000
7616b76705SSiddarth Gore #define CONFIG_ENV_OFFSET		0x40000	/* env starts here */
7716b76705SSiddarth Gore 
7816b76705SSiddarth Gore /*
7916b76705SSiddarth Gore  * Default environment variables
8016b76705SSiddarth Gore  */
8116b76705SSiddarth Gore #define CONFIG_BOOTCOMMAND		"setenv ethact egiga0; " \
8216b76705SSiddarth Gore 	"${x_bootcmd_ethernet}; setenv ethact egiga1; " \
8316b76705SSiddarth Gore 	"${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
8416b76705SSiddarth Gore 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
8516b76705SSiddarth Gore 	"bootm 0x6400000;"
8616b76705SSiddarth Gore 
8716b76705SSiddarth Gore #define CONFIG_EXTRA_ENV_SETTINGS	\
8816b76705SSiddarth Gore 	"x_bootcmd_ethernet=ping 192.168.2.1\0"	\
8916b76705SSiddarth Gore 	"x_bootcmd_usb=usb start\0"	\
9016b76705SSiddarth Gore 	"x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \
9116b76705SSiddarth Gore 	"x_bootargs=console=ttyS0,115200\0"	\
9216b76705SSiddarth Gore 	"x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
9316b76705SSiddarth Gore 
9416b76705SSiddarth Gore /*
9516b76705SSiddarth Gore  * Ethernet Driver configuration
9616b76705SSiddarth Gore  */
9716b76705SSiddarth Gore #ifdef CONFIG_CMD_NET
98d44265adSAlbert Aribaud #define CONFIG_MVGBE_PORTS	{1, 1}	/* enable both ports */
9916b76705SSiddarth Gore #define CONFIG_PHY_BASE_ADR	0
10016b76705SSiddarth Gore #endif /* CONFIG_CMD_NET */
10116b76705SSiddarth Gore 
10216b76705SSiddarth Gore /*
103*54e999a3SPrafulla Wadaskar  * SATA Driver configuration
10416b76705SSiddarth Gore  */
105*54e999a3SPrafulla Wadaskar #ifdef CONFIG_MVSATA_IDE
106*54e999a3SPrafulla Wadaskar #define CONFIG_SYS_ATA_IDE0_OFFSET	MV_SATA_PORT0_OFFSET
107*54e999a3SPrafulla Wadaskar #endif /*CONFIG_MVSATA_IDE*/
10816b76705SSiddarth Gore 
10916b76705SSiddarth Gore #define CONFIG_SYS_ALT_MEMTEST
11016b76705SSiddarth Gore 
11116b76705SSiddarth Gore #endif /* _CONFIG_GURUPLUG_H */
112