xref: /openbmc/u-boot/include/configs/dockstar.h (revision d1a2f32f)
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 
156054b153SLuka Perkov #define CONFIG_SYS_GENERIC_BOARD
166054b153SLuka 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 #define CONFIG_CMD_DHCP
3538041db7SEric Cooper #define CONFIG_CMD_ENV
3638041db7SEric Cooper #define CONFIG_CMD_MII
3738041db7SEric Cooper #define CONFIG_CMD_NAND
3838041db7SEric Cooper #define CONFIG_CMD_PING
3938041db7SEric Cooper #define CONFIG_CMD_USB
4038041db7SEric Cooper /*
4138041db7SEric Cooper  * mv-common.h should be defined after CMD configs since it used them
4238041db7SEric Cooper  * to enable certain macros
4338041db7SEric Cooper  */
4438041db7SEric Cooper #include "mv-common.h"
4538041db7SEric Cooper 
4638041db7SEric Cooper /*
4738041db7SEric Cooper  *  Environment variables configurations
4838041db7SEric Cooper  */
4938041db7SEric Cooper #ifdef CONFIG_CMD_NAND
5038041db7SEric Cooper #define CONFIG_ENV_IS_IN_NAND		1
5138041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
5238041db7SEric Cooper #else
5338041db7SEric Cooper #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
5438041db7SEric Cooper #endif
5538041db7SEric Cooper /*
5638041db7SEric Cooper  * max 4k env size is enough, but in case of nand
5738041db7SEric Cooper  * it has to be rounded to sector size
5838041db7SEric Cooper  */
5938041db7SEric Cooper #define CONFIG_ENV_SIZE			0x20000	/* 128k */
60*d1a2f32fSEric Cooper #define CONFIG_ENV_ADDR			0x80000
61*d1a2f32fSEric Cooper #define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
6238041db7SEric Cooper 
6338041db7SEric Cooper /*
6438041db7SEric Cooper  * Default environment variables
6538041db7SEric Cooper  */
6638041db7SEric Cooper #define CONFIG_BOOTCOMMAND \
6738041db7SEric Cooper 	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\
6838041db7SEric Cooper 	"ubi part root; " \
69949a7710SJoe Hershberger 	"ubifsmount ubi:root; " \
7038041db7SEric Cooper 	"ubifsload 0x800000 ${kernel}; " \
7138041db7SEric Cooper 	"ubifsload 0x1100000 ${initrd}; " \
7238041db7SEric Cooper 	"bootm 0x800000 0x1100000"
7338041db7SEric Cooper 
7438041db7SEric Cooper #define CONFIG_MTDPARTS		"mtdparts=orion_nand:1m(uboot),-(root)\0"
7538041db7SEric Cooper 
7638041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \
7738041db7SEric Cooper 	"console=console=ttyS0,115200\0" \
7838041db7SEric Cooper 	"mtdids=nand0=orion_nand\0" \
7938041db7SEric Cooper 	"mtdparts="CONFIG_MTDPARTS \
8038041db7SEric Cooper 	"kernel=/boot/uImage\0" \
8138041db7SEric Cooper 	"initrd=/boot/uInitrd\0" \
8238041db7SEric Cooper 	"bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
8338041db7SEric Cooper 
8438041db7SEric Cooper /*
8538041db7SEric Cooper  * Ethernet Driver configuration
8638041db7SEric Cooper  */
8738041db7SEric Cooper #ifdef CONFIG_CMD_NET
8838041db7SEric Cooper #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
8938041db7SEric Cooper #define CONFIG_PHY_BASE_ADR	0
9038041db7SEric Cooper #endif /* CONFIG_CMD_NET */
9138041db7SEric Cooper 
9238041db7SEric Cooper /*
9338041db7SEric Cooper  * File system
9438041db7SEric Cooper  */
9538041db7SEric Cooper #define CONFIG_CMD_EXT2
9638041db7SEric Cooper #define CONFIG_CMD_FAT
9738041db7SEric Cooper #define CONFIG_CMD_JFFS2
9838041db7SEric Cooper #define CONFIG_CMD_UBI
9938041db7SEric Cooper #define CONFIG_CMD_UBIFS
10038041db7SEric Cooper #define CONFIG_RBTREE
10138041db7SEric Cooper #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
10238041db7SEric Cooper #define CONFIG_MTD_PARTITIONS
10338041db7SEric Cooper #define CONFIG_CMD_MTDPARTS
10438041db7SEric Cooper #define CONFIG_LZO
10538041db7SEric Cooper 
10638041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */
107