xref: /openbmc/u-boot/include/configs/sheevaplug.h (revision 8d52ea6d)
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_MARVELL		1
37 #define CONFIG_ARM926EJS	1	/* Basic Architecture */
38 #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
39 #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
40 #define CONFIG_KW88F6281	1	/* SOC Name */
41 #define CONFIG_MACH_SHEEVAPLUG	/* Machine type */
42 
43 #define CONFIG_MD5	/* get_random_hex on krikwood needs MD5 support */
44 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
45 #define CONFIG_KIRKWOOD_EGIGA_INIT	/* Enable GbePort0/1 for kernel */
46 #define CONFIG_KIRKWOOD_RGMII_PAD_1V8	/* Set RGMII Pad voltage to 1.8V */
47 
48 /*
49  * CLKs configurations
50  */
51 #define CONFIG_SYS_HZ		1000
52 
53 /*
54  * NS16550 Configuration
55  */
56 #define CONFIG_SYS_NS16550
57 #define CONFIG_SYS_NS16550_SERIAL
58 #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
59 #define CONFIG_SYS_NS16550_CLK		CONFIG_SYS_TCLK
60 #define CONFIG_SYS_NS16550_COM1		KW_UART0_BASE
61 
62 /*
63  * Serial Port configuration
64  * The following definitions let you select what serial you want to use
65  * for your console driver.
66  */
67 
68 #define CONFIG_CONS_INDEX	1	/*Console on UART0 */
69 #define CONFIG_BAUDRATE			115200
70 #define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, \
71 					  115200,230400, 460800, 921600 }
72 /* auto boot */
73 #define CONFIG_BOOTDELAY	3	/* default enable autoboot */
74 
75 /*
76  * For booting Linux, the board info and command line data
77  * have to be in the first 8 MB of memory, since this is
78  * the maximum mapped by the Linux kernel during initialization.
79  */
80 #define CONFIG_CMDLINE_TAG	1	/* enable passing of ATAGs  */
81 #define CONFIG_INITRD_TAG	1	/* enable INITRD tag */
82 #define CONFIG_SETUP_MEMORY_TAGS 1	/* enable memory tag */
83 
84 #define	CONFIG_SYS_PROMPT	"Marvell>> "	/* Command Prompt */
85 #define	CONFIG_SYS_CBSIZE	1024	/* Console I/O Buff Size */
86 #define	CONFIG_SYS_PBSIZE	(CONFIG_SYS_CBSIZE \
87 		+sizeof(CONFIG_SYS_PROMPT) + 16)	/* Print Buff */
88 
89 /*
90  * Commands configuration
91  */
92 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
93 #include <config_cmd_default.h>
94 #define CONFIG_CMD_AUTOSCRIPT
95 #define CONFIG_CMD_DHCP
96 #define CONFIG_CMD_ENV
97 #define CONFIG_CMD_MII
98 #define CONFIG_CMD_NAND
99 #define CONFIG_CMD_PING
100 #define CONFIG_CMD_USB
101 
102 /*
103  * NAND configuration
104  */
105 #ifdef CONFIG_CMD_NAND
106 #define CONFIG_NAND_KIRKWOOD
107 #define CONFIG_SYS_MAX_NAND_DEVICE	1
108 #define NAND_MAX_CHIPS			1
109 #define CONFIG_SYS_NAND_BASE		0xD8000000	/* KW_DEFADR_NANDF */
110 #define NAND_ALLOW_ERASE_ALL		1
111 #endif
112 
113 /*
114  *  Environment variables configurations
115  */
116 #ifdef CONFIG_CMD_NAND
117 #define CONFIG_ENV_IS_IN_NAND		1
118 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
119 #else
120 #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
121 #endif
122 /*
123  * max 4k env size is enough, but in case of nand
124  * it has to be rounded to sector size
125  */
126 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
127 #define CONFIG_ENV_ADDR			0x60000
128 #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
129 
130 /*
131  * Default environment variables
132  */
133 #define CONFIG_BOOTCOMMAND		"${x_bootcmd_kernel}; "	\
134 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
135 	"${x_bootcmd_usb}; bootm 0x6400000;"
136 
137 #define CONFIG_MTDPARTS		"orion_nand:512k(uboot),"	\
138 	"3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
139 
140 #define CONFIG_EXTRA_ENV_SETTINGS	"x_bootargs=console"	\
141 	"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS	\
142 	"x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
143 	"x_bootcmd_usb=usb start\0" \
144 	"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
145 
146 /*
147  * Size of malloc() pool
148  */
149 #define CONFIG_SYS_MALLOC_LEN	(1024 * 1024) /* 1 MiB for malloc() */
150 /* size in bytes reserved for initial data */
151 #define CONFIG_SYS_GBL_DATA_SIZE	128
152 
153 /*
154  * Other required minimal configurations
155  */
156 #define CONFIG_SYS_LONGHELP
157 #define CONFIG_AUTO_COMPLETE
158 #define CONFIG_CMDLINE_EDITING
159 #define CONFIG_ARCH_CPU_INIT	/* call arch_cpu_init() */
160 #define CONFIG_ARCH_MISC_INIT	/* call arch_misc_init() */
161 #define CONFIG_DISPLAY_CPUINFO	/* Display cpu info */
162 #define CONFIG_NR_DRAM_BANKS	4
163 #define CONFIG_STACKSIZE	0x00100000	/* regular stack- 1M */
164 #define CONFIG_SYS_LOAD_ADDR	0x00800000	/* default load adr- 8M */
165 #define CONFIG_SYS_MEMTEST_START 0x00400000	/* 4M */
166 #define CONFIG_SYS_MEMTEST_END	0x007fffff	/*(_8M -1) */
167 #define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
168 #define CONFIG_SYS_MAXARGS	16	/* max number of command args */
169 
170 /*
171  * Ethernet Driver configuration
172  */
173 #ifdef CONFIG_CMD_NET
174 #define CONFIG_NETCONSOLE	/* include NetConsole support   */
175 #define CONFIG_NET_MULTI	/* specify more that one ports available */
176 #define	CONFIG_MII		/* expose smi ove miiphy interface */
177 #define CONFIG_KIRKWOOD_EGIGA	/* Enable kirkwood Gbe Controller Driver */
178 #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN	/* detect link using phy */
179 #define CONFIG_KIRKWOOD_EGIGA_PORTS	{1,0}	/* enable port 0 only */
180 #define CONFIG_PHY_BASE_ADR	0
181 #define CONFIG_ENV_OVERWRITE	/* ethaddr can be reprogrammed */
182 #define CONFIG_RESET_PHY_R	/* use reset_phy() to init mv8831116 PHY */
183 #endif /* CONFIG_CMD_NET */
184 
185 /*
186  * USB/EHCI
187  */
188 #ifdef CONFIG_CMD_USB
189 #define CONFIG_USB_EHCI			/* Enable EHCI USB support */
190 #define CONFIG_USB_EHCI_KIRKWOOD	/* on Kirkwood platform	*/
191 #define CONFIG_EHCI_IS_TDI
192 #define CONFIG_USB_STORAGE
193 #define CONFIG_DOS_PARTITION
194 #define CONFIG_ISO_PARTITION
195 #define CONFIG_SUPPORT_VFAT
196 #endif /* CONFIG_CMD_USB */
197 
198 /*
199  * File system
200  */
201 #define CONFIG_CMD_EXT2
202 #define CONFIG_CMD_FAT
203 #define CONFIG_CMD_JFFS2
204 #define CONFIG_CMD_UBI
205 #define CONFIG_CMD_UBIFS
206 #define CONFIG_RBTREE
207 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
208 #define CONFIG_MTD_PARTITIONS
209 #define CONFIG_CMD_MTDPARTS
210 #define CONFIG_LZO
211 
212 #endif /* _CONFIG_SHEEVAPLUG_H */
213