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
25 #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
26 #define CONFIG_MTD_PARTITIONS
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_SECT_SIZE 0x20000 /* 128K */
41 * max 4k env size is enough, but in case of nand
42 * it has to be rounded to sector size
44 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
45 #define CONFIG_ENV_ADDR 0x80000
46 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
48 * Environment is right behind U-Boot in flash. Make sure U-Boot
49 * doesn't grow into the environment area.
51 #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
54 * Default environment variables
56 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
57 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
60 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
61 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
62 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
63 "x_bootcmd_usb=usb start\0" \
64 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
67 * Ethernet Driver configuration
70 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
71 #define CONFIG_PHY_BASE_ADR 0
72 #endif /* CONFIG_CMD_NET */
75 * SDIO/MMC Card Configuration
78 #define CONFIG_MVEBU_MMC
79 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
80 #endif /* CONFIG_CMD_MMC */
83 * SATA driver configuration
87 #define CONFIG_IDE_PREINIT
88 #define CONFIG_MVSATA_IDE_USE_PORT0
89 #define CONFIG_MVSATA_IDE_USE_PORT1
90 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
91 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
92 #endif /* CONFIG_IDE */
94 #endif /* _CONFIG_SHEEVAPLUG_H */