xref: /rk3399_rockchip-uboot/include/configs/dockstar.h (revision 949a77109747d5db7d559359d3ec24bade653be8)
138041db7SEric Cooper /*
238041db7SEric Cooper  * Copyright (C) 2010  Eric C. Cooper <ecc@cmu.edu>
338041db7SEric Cooper  *
438041db7SEric Cooper  * Based on sheevaplug.h originally written by
538041db7SEric Cooper  * Prafulla Wadaskar <prafulla@marvell.com>
638041db7SEric Cooper  * (C) Copyright 2009
738041db7SEric Cooper  * Marvell Semiconductor <www.marvell.com>
838041db7SEric Cooper  *
938041db7SEric Cooper  * See file CREDITS for list of people who contributed to this
1038041db7SEric Cooper  * project.
1138041db7SEric Cooper  *
1238041db7SEric Cooper  * This program is free software; you can redistribute it and/or
1338041db7SEric Cooper  * modify it under the terms of the GNU General Public License as
1438041db7SEric Cooper  * published by the Free Software Foundation; either version 2 of
1538041db7SEric Cooper  * the License, or (at your option) any later version.
1638041db7SEric Cooper  *
1738041db7SEric Cooper  * This program is distributed in the hope that it will be useful,
1838041db7SEric Cooper  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1938041db7SEric Cooper  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2038041db7SEric Cooper  * GNU General Public License for more details.
2138041db7SEric Cooper  *
2238041db7SEric Cooper  * You should have received a copy of the GNU General Public License
2338041db7SEric Cooper  * along with this program; if not, write to the Free Software
2438041db7SEric Cooper  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
2538041db7SEric Cooper  * MA 02110-1301 USA
2638041db7SEric Cooper  */
2738041db7SEric Cooper 
2838041db7SEric Cooper #ifndef _CONFIG_DOCKSTAR_H
2938041db7SEric Cooper #define _CONFIG_DOCKSTAR_H
3038041db7SEric Cooper 
3138041db7SEric Cooper /*
3238041db7SEric Cooper  * Version number information
3338041db7SEric Cooper  */
3438041db7SEric Cooper #define CONFIG_IDENT_STRING	"\nSeagate FreeAgent DockStar"
3538041db7SEric Cooper 
3638041db7SEric Cooper /*
3738041db7SEric Cooper  * High Level Configuration Options (easy to change)
3838041db7SEric Cooper  */
3938041db7SEric Cooper #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
4038041db7SEric Cooper #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
4138041db7SEric Cooper #define CONFIG_KW88F6281	1	/* SOC Name */
4238041db7SEric Cooper #define CONFIG_MACH_DOCKSTAR	/* Machine type */
4338041db7SEric Cooper #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
4438041db7SEric Cooper 
4538041db7SEric Cooper /*
4638041db7SEric Cooper  * Commands configuration
4738041db7SEric Cooper  */
4838041db7SEric Cooper #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
4938041db7SEric Cooper #include <config_cmd_default.h>
5038041db7SEric Cooper #define CONFIG_CMD_DHCP
5138041db7SEric Cooper #define CONFIG_CMD_ENV
5238041db7SEric Cooper #define CONFIG_CMD_MII
5338041db7SEric Cooper #define CONFIG_CMD_NAND
5438041db7SEric Cooper #define CONFIG_CMD_PING
5538041db7SEric Cooper #define CONFIG_CMD_USB
5638041db7SEric Cooper /*
5738041db7SEric Cooper  * mv-common.h should be defined after CMD configs since it used them
5838041db7SEric Cooper  * to enable certain macros
5938041db7SEric Cooper  */
6038041db7SEric Cooper #include "mv-common.h"
6138041db7SEric Cooper 
6238041db7SEric Cooper #undef CONFIG_SYS_PROMPT	/* previously defined in mv-common.h */
6338041db7SEric Cooper #define CONFIG_SYS_PROMPT	"DockStar> "	/* Command Prompt */
6438041db7SEric Cooper 
6538041db7SEric Cooper /*
6638041db7SEric Cooper  *  Environment variables configurations
6738041db7SEric Cooper  */
6838041db7SEric Cooper #ifdef CONFIG_CMD_NAND
6938041db7SEric Cooper #define CONFIG_ENV_IS_IN_NAND		1
7038041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
7138041db7SEric Cooper #else
7238041db7SEric Cooper #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
7338041db7SEric Cooper #endif
7438041db7SEric Cooper /*
7538041db7SEric Cooper  * max 4k env size is enough, but in case of nand
7638041db7SEric Cooper  * it has to be rounded to sector size
7738041db7SEric Cooper  */
7838041db7SEric Cooper #define CONFIG_ENV_SIZE			0x20000	/* 128k */
7938041db7SEric Cooper #define CONFIG_ENV_ADDR			0x60000
8038041db7SEric Cooper #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
8138041db7SEric Cooper 
8238041db7SEric Cooper /*
8338041db7SEric Cooper  * Default environment variables
8438041db7SEric Cooper  */
8538041db7SEric Cooper #define CONFIG_BOOTCOMMAND \
8638041db7SEric Cooper 	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\
8738041db7SEric Cooper 	"ubi part root; " \
88*949a7710SJoe Hershberger 	"ubifsmount ubi:root; " \
8938041db7SEric Cooper 	"ubifsload 0x800000 ${kernel}; " \
9038041db7SEric Cooper 	"ubifsload 0x1100000 ${initrd}; " \
9138041db7SEric Cooper 	"bootm 0x800000 0x1100000"
9238041db7SEric Cooper 
9338041db7SEric Cooper #define CONFIG_MTDPARTS		"mtdparts=orion_nand:1m(uboot),-(root)\0"
9438041db7SEric Cooper 
9538041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \
9638041db7SEric Cooper 	"console=console=ttyS0,115200\0" \
9738041db7SEric Cooper 	"mtdids=nand0=orion_nand\0" \
9838041db7SEric Cooper 	"mtdparts="CONFIG_MTDPARTS \
9938041db7SEric Cooper 	"kernel=/boot/uImage\0" \
10038041db7SEric Cooper 	"initrd=/boot/uInitrd\0" \
10138041db7SEric Cooper 	"bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
10238041db7SEric Cooper 
10338041db7SEric Cooper /*
10438041db7SEric Cooper  * Ethernet Driver configuration
10538041db7SEric Cooper  */
10638041db7SEric Cooper #ifdef CONFIG_CMD_NET
10738041db7SEric Cooper #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
10838041db7SEric Cooper #define CONFIG_PHY_BASE_ADR	0
10938041db7SEric Cooper #endif /* CONFIG_CMD_NET */
11038041db7SEric Cooper 
11138041db7SEric Cooper /*
11238041db7SEric Cooper  * File system
11338041db7SEric Cooper  */
11438041db7SEric Cooper #define CONFIG_CMD_EXT2
11538041db7SEric Cooper #define CONFIG_CMD_FAT
11638041db7SEric Cooper #define CONFIG_CMD_JFFS2
11738041db7SEric Cooper #define CONFIG_CMD_UBI
11838041db7SEric Cooper #define CONFIG_CMD_UBIFS
11938041db7SEric Cooper #define CONFIG_RBTREE
12038041db7SEric Cooper #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
12138041db7SEric Cooper #define CONFIG_MTD_PARTITIONS
12238041db7SEric Cooper #define CONFIG_CMD_MTDPARTS
12338041db7SEric Cooper #define CONFIG_LZO
12438041db7SEric Cooper 
12538041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */
126