1 /* SPDX-License-Identifier: GPL-2.0+ */
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>
9 #ifndef _CONFIG_SHEEVAPLUG_H
10 #define _CONFIG_SHEEVAPLUG_H
13 * High Level Configuration Options (easy to change)
15 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
18 * Commands configuration
22 * Standard filesystems
27 * mv-plug-common.h should be defined after CMD configs since it used them
28 * to enable certain macros
30 #include "mv-plug-common.h"
33 * Environment variables configurations
36 * max 4k env size is enough, but in case of nand
37 * it has to be rounded to sector size
40 * Environment is right behind U-Boot in flash. Make sure U-Boot
41 * doesn't grow into the environment area.
43 #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
46 * Default environment variables
48 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
49 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
52 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
53 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
54 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
55 "x_bootcmd_usb=usb start\0" \
56 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
59 * Ethernet Driver configuration
62 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
63 #define CONFIG_PHY_BASE_ADR 0
64 #endif /* CONFIG_CMD_NET */
67 * SDIO/MMC Card Configuration
70 #define CONFIG_MVEBU_MMC
71 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
72 #endif /* CONFIG_CMD_MMC */
75 * SATA driver configuration
79 #define CONFIG_IDE_PREINIT
80 #define CONFIG_MVSATA_IDE_USE_PORT0
81 #define CONFIG_MVSATA_IDE_USE_PORT1
82 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
83 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
84 #endif /* CONFIG_IDE */
86 #endif /* _CONFIG_SHEEVAPLUG_H */