xref: /openbmc/u-boot/include/configs/sheevaplug.h (revision eeadd3fe)
1 /*
2  * (C) Copyright 2009
3  * Marvell Semiconductor <www.marvell.com>
4  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #ifndef _CONFIG_SHEEVAPLUG_H
10 #define _CONFIG_SHEEVAPLUG_H
11 
12 /*
13  * Version number information
14  */
15 #define CONFIG_IDENT_STRING	"\nMarvell-Sheevaplug"
16 
17 /*
18  * High Level Configuration Options (easy to change)
19  */
20 #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
21 #define CONFIG_KIRKWOOD		1	/* SOC Family Name */
22 #define CONFIG_KW88F6281	1	/* SOC Name */
23 #define CONFIG_MACH_SHEEVAPLUG	/* Machine type */
24 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
25 
26 /*
27  * Commands configuration
28  */
29 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
30 #include <config_cmd_default.h>
31 #define CONFIG_CMD_DHCP
32 #define CONFIG_CMD_ENV
33 #define CONFIG_CMD_MII
34 #define CONFIG_CMD_MMC
35 #define CONFIG_CMD_NAND
36 #define CONFIG_CMD_PING
37 #define CONFIG_CMD_USB
38 /*
39  * mv-common.h should be defined after CMD configs since it used them
40  * to enable certain macros
41  */
42 #include "mv-common.h"
43 
44 /*
45  *  Environment variables configurations
46  */
47 #ifdef CONFIG_CMD_NAND
48 #define CONFIG_ENV_IS_IN_NAND		1
49 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
50 #else
51 #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
52 #endif
53 /*
54  * max 4k env size is enough, but in case of nand
55  * it has to be rounded to sector size
56  */
57 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
58 #define CONFIG_ENV_ADDR			0x60000
59 #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
60 
61 /*
62  * Default environment variables
63  */
64 #define CONFIG_BOOTCOMMAND		"${x_bootcmd_kernel}; "	\
65 	"setenv bootargs ${x_bootargs} ${x_bootargs_root}; "	\
66 	"${x_bootcmd_usb}; bootm 0x6400000;"
67 
68 #define CONFIG_MTDPARTS		"orion_nand:512k(uboot),"	\
69 	"3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
70 
71 #define CONFIG_EXTRA_ENV_SETTINGS	"x_bootargs=console"	\
72 	"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS	\
73 	"x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
74 	"x_bootcmd_usb=usb start\0" \
75 	"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
76 
77 /*
78  * Ethernet Driver configuration
79  */
80 #ifdef CONFIG_CMD_NET
81 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
82 #define CONFIG_PHY_BASE_ADR	0
83 #endif /* CONFIG_CMD_NET */
84 
85 /*
86  * SDIO/MMC Card Configuration
87  */
88 #ifdef CONFIG_CMD_MMC
89 #define CONFIG_MMC
90 #define CONFIG_GENERIC_MMC
91 #define CONFIG_MVEBU_MMC
92 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
93 #endif /* CONFIG_CMD_MMC */
94 
95 /*
96  * File system
97  */
98 #define CONFIG_CMD_EXT2
99 #define CONFIG_CMD_FAT
100 #define CONFIG_CMD_JFFS2
101 #define CONFIG_CMD_UBI
102 #define CONFIG_CMD_UBIFS
103 #define CONFIG_RBTREE
104 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
105 #define CONFIG_MTD_PARTITIONS
106 #define CONFIG_CMD_MTDPARTS
107 #define CONFIG_LZO
108 
109 #endif /* _CONFIG_SHEEVAPLUG_H */
110