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