3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef _CONFIG_SHEEVAPLUG_H
10 #define _CONFIG_SHEEVAPLUG_H
13 * Version number information
15 #define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
18 * High Level Configuration Options (easy to change)
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 */
27 * Commands configuration
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_NAND
35 #define CONFIG_CMD_PING
36 #define CONFIG_CMD_USB
38 * mv-common.h should be defined after CMD configs since it used them
39 * to enable certain macros
41 #include "mv-common.h"
44 * Environment variables configurations
46 #ifdef CONFIG_CMD_NAND
47 #define CONFIG_ENV_IS_IN_NAND 1
48 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
50 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
53 * max 4k env size is enough, but in case of nand
54 * it has to be rounded to sector size
56 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
57 #define CONFIG_ENV_ADDR 0x60000
58 #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
61 * Default environment variables
63 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
64 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
65 "${x_bootcmd_usb}; bootm 0x6400000;"
67 #define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \
68 "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
70 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
71 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
72 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
73 "x_bootcmd_usb=usb start\0" \
74 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
77 * Ethernet Driver configuration
80 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
81 #define CONFIG_PHY_BASE_ADR 0
82 #endif /* CONFIG_CMD_NET */
87 #define CONFIG_CMD_EXT2
88 #define CONFIG_CMD_FAT
89 #define CONFIG_CMD_JFFS2
90 #define CONFIG_CMD_UBI
91 #define CONFIG_CMD_UBIFS
93 #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
94 #define CONFIG_MTD_PARTITIONS
95 #define CONFIG_CMD_MTDPARTS
98 #endif /* _CONFIG_SHEEVAPLUG_H */