xref: /openbmc/u-boot/include/configs/dockstar.h (revision 6054b153)
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  *
91a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
1038041db7SEric Cooper  */
1138041db7SEric Cooper 
1238041db7SEric Cooper #ifndef _CONFIG_DOCKSTAR_H
1338041db7SEric Cooper #define _CONFIG_DOCKSTAR_H
1438041db7SEric Cooper 
15*6054b153SLuka Perkov #define CONFIG_SYS_GENERIC_BOARD
16*6054b153SLuka Perkov 
1738041db7SEric Cooper /*
1838041db7SEric Cooper  * Version number information
1938041db7SEric Cooper  */
2038041db7SEric Cooper #define CONFIG_IDENT_STRING	"\nSeagate FreeAgent DockStar"
2138041db7SEric Cooper 
2238041db7SEric Cooper /*
2338041db7SEric Cooper  * High Level Configuration Options (easy to change)
2438041db7SEric Cooper  */
2538041db7SEric Cooper #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
2638041db7SEric Cooper #define CONFIG_KW88F6281	1	/* SOC Name */
2738041db7SEric Cooper #define CONFIG_MACH_DOCKSTAR	/* Machine type */
2838041db7SEric Cooper #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
2938041db7SEric Cooper 
3038041db7SEric Cooper /*
3138041db7SEric Cooper  * Commands configuration
3238041db7SEric Cooper  */
3338041db7SEric Cooper #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
3438041db7SEric Cooper #include <config_cmd_default.h>
3538041db7SEric Cooper #define CONFIG_CMD_DHCP
3638041db7SEric Cooper #define CONFIG_CMD_ENV
3738041db7SEric Cooper #define CONFIG_CMD_MII
3838041db7SEric Cooper #define CONFIG_CMD_NAND
3938041db7SEric Cooper #define CONFIG_CMD_PING
4038041db7SEric Cooper #define CONFIG_CMD_USB
4138041db7SEric Cooper /*
4238041db7SEric Cooper  * mv-common.h should be defined after CMD configs since it used them
4338041db7SEric Cooper  * to enable certain macros
4438041db7SEric Cooper  */
4538041db7SEric Cooper #include "mv-common.h"
4638041db7SEric Cooper 
4738041db7SEric Cooper #undef CONFIG_SYS_PROMPT	/* previously defined in mv-common.h */
4838041db7SEric Cooper #define CONFIG_SYS_PROMPT	"DockStar> "	/* Command Prompt */
4938041db7SEric Cooper 
5038041db7SEric Cooper /*
5138041db7SEric Cooper  *  Environment variables configurations
5238041db7SEric Cooper  */
5338041db7SEric Cooper #ifdef CONFIG_CMD_NAND
5438041db7SEric Cooper #define CONFIG_ENV_IS_IN_NAND		1
5538041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
5638041db7SEric Cooper #else
5738041db7SEric Cooper #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
5838041db7SEric Cooper #endif
5938041db7SEric Cooper /*
6038041db7SEric Cooper  * max 4k env size is enough, but in case of nand
6138041db7SEric Cooper  * it has to be rounded to sector size
6238041db7SEric Cooper  */
6338041db7SEric Cooper #define CONFIG_ENV_SIZE			0x20000	/* 128k */
6438041db7SEric Cooper #define CONFIG_ENV_ADDR			0x60000
6538041db7SEric Cooper #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
6638041db7SEric Cooper 
6738041db7SEric Cooper /*
6838041db7SEric Cooper  * Default environment variables
6938041db7SEric Cooper  */
7038041db7SEric Cooper #define CONFIG_BOOTCOMMAND \
7138041db7SEric Cooper 	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\
7238041db7SEric Cooper 	"ubi part root; " \
73949a7710SJoe Hershberger 	"ubifsmount ubi:root; " \
7438041db7SEric Cooper 	"ubifsload 0x800000 ${kernel}; " \
7538041db7SEric Cooper 	"ubifsload 0x1100000 ${initrd}; " \
7638041db7SEric Cooper 	"bootm 0x800000 0x1100000"
7738041db7SEric Cooper 
7838041db7SEric Cooper #define CONFIG_MTDPARTS		"mtdparts=orion_nand:1m(uboot),-(root)\0"
7938041db7SEric Cooper 
8038041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \
8138041db7SEric Cooper 	"console=console=ttyS0,115200\0" \
8238041db7SEric Cooper 	"mtdids=nand0=orion_nand\0" \
8338041db7SEric Cooper 	"mtdparts="CONFIG_MTDPARTS \
8438041db7SEric Cooper 	"kernel=/boot/uImage\0" \
8538041db7SEric Cooper 	"initrd=/boot/uInitrd\0" \
8638041db7SEric Cooper 	"bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
8738041db7SEric Cooper 
8838041db7SEric Cooper /*
8938041db7SEric Cooper  * Ethernet Driver configuration
9038041db7SEric Cooper  */
9138041db7SEric Cooper #ifdef CONFIG_CMD_NET
9238041db7SEric Cooper #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
9338041db7SEric Cooper #define CONFIG_PHY_BASE_ADR	0
9438041db7SEric Cooper #endif /* CONFIG_CMD_NET */
9538041db7SEric Cooper 
9638041db7SEric Cooper /*
9738041db7SEric Cooper  * File system
9838041db7SEric Cooper  */
9938041db7SEric Cooper #define CONFIG_CMD_EXT2
10038041db7SEric Cooper #define CONFIG_CMD_FAT
10138041db7SEric Cooper #define CONFIG_CMD_JFFS2
10238041db7SEric Cooper #define CONFIG_CMD_UBI
10338041db7SEric Cooper #define CONFIG_CMD_UBIFS
10438041db7SEric Cooper #define CONFIG_RBTREE
10538041db7SEric Cooper #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
10638041db7SEric Cooper #define CONFIG_MTD_PARTITIONS
10738041db7SEric Cooper #define CONFIG_CMD_MTDPARTS
10838041db7SEric Cooper #define CONFIG_LZO
10938041db7SEric Cooper 
11038041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */
111