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>
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _CONFIG_SHEEVAPLUG_H
11 #define _CONFIG_SHEEVAPLUG_H
14 * High Level Configuration Options (easy to change)
16 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
17 #define CONFIG_MACH_SHEEVAPLUG /* Machine type */
20 * Commands configuration
24 * Standard filesystems
26 #define CONFIG_SYS_MVFS
29 * mv-plug-common.h should be defined after CMD configs since it used them
30 * to enable certain macros
32 #include "mv-plug-common.h"
35 * Environment variables configurations
37 #ifdef CONFIG_CMD_NAND
38 #define CONFIG_ENV_IS_IN_NAND 1
39 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
41 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
44 * max 4k env size is enough, but in case of nand
45 * it has to be rounded to sector size
47 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
48 #define CONFIG_ENV_ADDR 0x80000
49 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
52 * Default environment variables
54 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
55 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
58 #define CONFIG_MTDPARTS \
59 "orion_nand:512K(uboot)," \
60 "512K(env),4M(kernel)," \
63 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
64 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
65 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
66 "x_bootcmd_usb=usb start\0" \
67 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
69 #define MTDIDS_DEFAULT "nand0=orion_nand"
71 #define MTDPARTS_DEFAULT \
72 "mtdparts="CONFIG_MTDPARTS
75 * Ethernet Driver configuration
78 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
79 #define CONFIG_PHY_BASE_ADR 0
80 #endif /* CONFIG_CMD_NET */
83 * SDIO/MMC Card Configuration
87 #define CONFIG_GENERIC_MMC
88 #define CONFIG_MVEBU_MMC
89 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
90 #endif /* CONFIG_CMD_MMC */
93 * SATA driver configuration
97 #define CONFIG_IDE_PREINIT
98 #define CONFIG_DOS_PARTITION
99 #define CONFIG_MVSATA_IDE_USE_PORT0
100 #define CONFIG_MVSATA_IDE_USE_PORT1
101 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
102 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
103 #endif /* CONFIG_CMD_IDE */
105 #endif /* _CONFIG_SHEEVAPLUG_H */