xref: /rk3399_rockchip-uboot/include/configs/guruplug.h (revision 1a4596601fd395f3afb8f82f3f840c5e00bdd57a)
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  *
6*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
716b76705SSiddarth Gore  */
816b76705SSiddarth Gore 
916b76705SSiddarth Gore #ifndef _CONFIG_GURUPLUG_H
1016b76705SSiddarth Gore #define _CONFIG_GURUPLUG_H
1116b76705SSiddarth Gore 
1216b76705SSiddarth Gore /*
1316b76705SSiddarth Gore  * Version number information
1416b76705SSiddarth Gore  */
1516b76705SSiddarth Gore #define CONFIG_IDENT_STRING	"\nMarvell-GuruPlug"
1616b76705SSiddarth Gore 
1716b76705SSiddarth Gore /*
1816b76705SSiddarth Gore  * High Level Configuration Options (easy to change)
1916b76705SSiddarth Gore  */
2016b76705SSiddarth Gore #define CONFIG_SHEEVA_88SV131	1	/* CPU Core subversion */
2116b76705SSiddarth Gore #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
2216b76705SSiddarth Gore #define CONFIG_KW88F6281	1	/* SOC Name */
2316b76705SSiddarth Gore #define CONFIG_MACH_GURUPLUG	/* Machine type */
2416b76705SSiddarth Gore #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
2516b76705SSiddarth Gore 
2616b76705SSiddarth Gore /*
2716b76705SSiddarth Gore  * Commands configuration
2816b76705SSiddarth Gore  */
2916b76705SSiddarth Gore #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
3016b76705SSiddarth Gore #include <config_cmd_default.h>
3116b76705SSiddarth Gore #define CONFIG_CMD_DHCP
3216b76705SSiddarth Gore #define CONFIG_CMD_ENV
3316b76705SSiddarth Gore #define CONFIG_CMD_FAT
3416b76705SSiddarth Gore #define CONFIG_CMD_NAND
3516b76705SSiddarth Gore #define CONFIG_CMD_PING
3616b76705SSiddarth Gore #define CONFIG_CMD_USB
3754e999a3SPrafulla Wadaskar #define CONFIG_CMD_IDE
3816b76705SSiddarth Gore 
3916b76705SSiddarth Gore /*
4054e999a3SPrafulla Wadaskar  * mv-common.h should be defined after CMD configs since it used them
4154e999a3SPrafulla Wadaskar  * to enable certain macros
4216b76705SSiddarth Gore  */
4354e999a3SPrafulla Wadaskar #include "mv-common.h"
4416b76705SSiddarth Gore 
4516b76705SSiddarth Gore /*
4616b76705SSiddarth Gore  *  Environment variables configurations
4716b76705SSiddarth Gore  */
4816b76705SSiddarth Gore #ifdef CONFIG_CMD_NAND
4916b76705SSiddarth Gore #define CONFIG_ENV_IS_IN_NAND		1
5016b76705SSiddarth Gore #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
5116b76705SSiddarth Gore #else
5216b76705SSiddarth Gore #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
5316b76705SSiddarth Gore #endif
5416b76705SSiddarth Gore /*
5516b76705SSiddarth Gore  * max 4k env size is enough, but in case of nand
5616b76705SSiddarth Gore  * it has to be rounded to sector size
5716b76705SSiddarth Gore  */
5816b76705SSiddarth Gore #define CONFIG_ENV_SIZE			0x20000	/* 128k */
595842383eSGray Remlin #define CONFIG_ENV_ADDR			0x60000
605842383eSGray Remlin #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
6116b76705SSiddarth Gore 
6216b76705SSiddarth Gore /*
6316b76705SSiddarth Gore  * Default environment variables
6416b76705SSiddarth Gore  */
6516b76705SSiddarth Gore #define CONFIG_BOOTCOMMAND		"setenv ethact egiga0; " \
6616b76705SSiddarth Gore 	"${x_bootcmd_ethernet}; setenv ethact egiga1; " \
6716b76705SSiddarth Gore 	"${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
6816b76705SSiddarth Gore 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
6916b76705SSiddarth Gore 	"bootm 0x6400000;"
7016b76705SSiddarth Gore 
7116b76705SSiddarth Gore #define CONFIG_EXTRA_ENV_SETTINGS	\
7216b76705SSiddarth Gore 	"x_bootcmd_ethernet=ping 192.168.2.1\0"	\
7316b76705SSiddarth Gore 	"x_bootcmd_usb=usb start\0"	\
7416b76705SSiddarth Gore 	"x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \
7516b76705SSiddarth Gore 	"x_bootargs=console=ttyS0,115200\0"	\
7616b76705SSiddarth Gore 	"x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
7716b76705SSiddarth Gore 
7816b76705SSiddarth Gore /*
7916b76705SSiddarth Gore  * Ethernet Driver configuration
8016b76705SSiddarth Gore  */
8116b76705SSiddarth Gore #ifdef CONFIG_CMD_NET
82d44265adSAlbert Aribaud #define CONFIG_MVGBE_PORTS	{1, 1}	/* enable both ports */
8316b76705SSiddarth Gore #define CONFIG_PHY_BASE_ADR	0
8416b76705SSiddarth Gore #endif /* CONFIG_CMD_NET */
8516b76705SSiddarth Gore 
8616b76705SSiddarth Gore /*
8754e999a3SPrafulla Wadaskar  * SATA Driver configuration
8816b76705SSiddarth Gore  */
8954e999a3SPrafulla Wadaskar #ifdef CONFIG_MVSATA_IDE
9054e999a3SPrafulla Wadaskar #define CONFIG_SYS_ATA_IDE0_OFFSET	MV_SATA_PORT0_OFFSET
9154e999a3SPrafulla Wadaskar #endif /*CONFIG_MVSATA_IDE*/
9216b76705SSiddarth Gore 
9316b76705SSiddarth Gore #define CONFIG_SYS_ALT_MEMTEST
9416b76705SSiddarth Gore 
9516b76705SSiddarth Gore #endif /* _CONFIG_GURUPLUG_H */
96