xref: /openbmc/u-boot/include/configs/sheevaplug.h (revision 7fb46430)
1 /*
2  * (C) Copyright 2009-2014
3  * Gerald Kerma <dreagle@doukki.net>
4  * Marvell Semiconductor <www.marvell.com>
5  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 #ifndef _CONFIG_SHEEVAPLUG_H
11 #define _CONFIG_SHEEVAPLUG_H
12 
13 /*
14  * High Level Configuration Options (easy to change)
15  */
16 #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
17 
18 /*
19  * Commands configuration
20  */
21 
22 /*
23  * Standard filesystems
24  */
25 #define CONFIG_SYS_MVFS
26 
27 /*
28  * mv-plug-common.h should be defined after CMD configs since it used them
29  * to enable certain macros
30  */
31 #include "mv-plug-common.h"
32 
33 /*
34  *  Environment variables configurations
35  */
36 #ifdef CONFIG_CMD_NAND
37 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
38 #endif
39 /*
40  * max 4k env size is enough, but in case of nand
41  * it has to be rounded to sector size
42  */
43 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
44 #define CONFIG_ENV_ADDR			0x80000
45 #define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
46 
47 /*
48  * Default environment variables
49  */
50 #define CONFIG_BOOTCOMMAND		"${x_bootcmd_kernel}; "	\
51 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
52 	"bootm 0x6400000;"
53 
54 #define CONFIG_EXTRA_ENV_SETTINGS	"x_bootargs=console"	\
55 	"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT	\
56 	"x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
57 	"x_bootcmd_usb=usb start\0" \
58 	"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
59 
60 /*
61  * Ethernet Driver configuration
62  */
63 #ifdef CONFIG_CMD_NET
64 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
65 #define CONFIG_PHY_BASE_ADR	0
66 #endif /* CONFIG_CMD_NET */
67 
68 /*
69  * SDIO/MMC Card Configuration
70  */
71 #ifdef CONFIG_CMD_MMC
72 #define CONFIG_MVEBU_MMC
73 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
74 #endif /* CONFIG_CMD_MMC */
75 
76 /*
77  * SATA driver configuration
78  */
79 #ifdef CONFIG_IDE
80 #define __io
81 #define CONFIG_IDE_PREINIT
82 #define CONFIG_MVSATA_IDE_USE_PORT0
83 #define CONFIG_MVSATA_IDE_USE_PORT1
84 #define CONFIG_SYS_ATA_IDE0_OFFSET	MV_SATA_PORT0_OFFSET
85 #define CONFIG_SYS_ATA_IDE1_OFFSET	MV_SATA_PORT1_OFFSET
86 #endif /* CONFIG_IDE */
87 
88 #endif /* _CONFIG_SHEEVAPLUG_H */
89