xref: /openbmc/u-boot/include/configs/sheevaplug.h (revision 1e52fea3)
1 /*
2  * (C) Copyright 2009
3  * Marvell Semiconductor <www.marvell.com>
4  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5  *
6  * See file CREDITS for list of people who contributed to this
7  * project.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22  * MA 02110-1301 USA
23  */
24 
25 #ifndef _CONFIG_SHEEVAPLUG_H
26 #define _CONFIG_SHEEVAPLUG_H
27 
28 /*
29  * Version number information
30  */
31 #define CONFIG_IDENT_STRING	"\nMarvell-Sheevaplug"
32 
33 /*
34  * High Level Configuration Options (easy to change)
35  */
36 #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
37 #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
38 #define CONFIG_KW88F6281	1	/* SOC Name */
39 #define CONFIG_MACH_SHEEVAPLUG	/* Machine type */
40 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
41 
42 /*
43  * Commands configuration
44  */
45 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
46 #include <config_cmd_default.h>
47 #define CONFIG_CMD_DHCP
48 #define CONFIG_CMD_ENV
49 #define CONFIG_CMD_MII
50 #define CONFIG_CMD_NAND
51 #define CONFIG_CMD_PING
52 #define CONFIG_CMD_USB
53 /*
54  * mv-common.h should be defined after CMD configs since it used them
55  * to enable certain macros
56  */
57 #include "mv-common.h"
58 
59 /*
60  *  Environment variables configurations
61  */
62 #ifdef CONFIG_CMD_NAND
63 #define CONFIG_ENV_IS_IN_NAND		1
64 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
65 #else
66 #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
67 #endif
68 /*
69  * max 4k env size is enough, but in case of nand
70  * it has to be rounded to sector size
71  */
72 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
73 #define CONFIG_ENV_ADDR			0x60000
74 #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
75 
76 /*
77  * Default environment variables
78  */
79 #define CONFIG_BOOTCOMMAND		"${x_bootcmd_kernel}; "	\
80 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
81 	"${x_bootcmd_usb}; bootm 0x6400000;"
82 
83 #define CONFIG_MTDPARTS		"orion_nand:512k(uboot),"	\
84 	"3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
85 
86 #define CONFIG_EXTRA_ENV_SETTINGS	"x_bootargs=console"	\
87 	"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS	\
88 	"x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
89 	"x_bootcmd_usb=usb start\0" \
90 	"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
91 
92 /*
93  * Ethernet Driver configuration
94  */
95 #ifdef CONFIG_CMD_NET
96 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
97 #define CONFIG_PHY_BASE_ADR	0
98 #endif /* CONFIG_CMD_NET */
99 
100 /*
101  * File system
102  */
103 #define CONFIG_CMD_EXT2
104 #define CONFIG_CMD_FAT
105 #define CONFIG_CMD_JFFS2
106 #define CONFIG_CMD_UBI
107 #define CONFIG_CMD_UBIFS
108 #define CONFIG_RBTREE
109 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
110 #define CONFIG_MTD_PARTITIONS
111 #define CONFIG_CMD_MTDPARTS
112 #define CONFIG_LZO
113 
114 #endif /* _CONFIG_SHEEVAPLUG_H */
115