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"
32 #ifdef CONFIG_CMD_DATE
34 #endif /* CONFIG_CMD_DATE */
37 * Environment variables configurations
39 #ifdef CONFIG_CMD_NAND
40 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
43 * max 4k env size is enough, but in case of nand
44 * it has to be rounded to sector size
46 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
47 #define CONFIG_ENV_ADDR 0x80000
48 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
50 * Environment is right behind U-Boot in flash. Make sure U-Boot
51 * doesn't grow into the environment area.
53 #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
56 * Default environment variables
58 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
59 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
62 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
63 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
64 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
65 "x_bootcmd_usb=usb start\0" \
66 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
69 * Ethernet Driver configuration
72 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
73 #define CONFIG_PHY_BASE_ADR 0
74 #endif /* CONFIG_CMD_NET */
77 * SDIO/MMC Card Configuration
80 #define CONFIG_MVEBU_MMC
81 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
82 #endif /* CONFIG_CMD_MMC */
85 * SATA driver configuration
89 #define CONFIG_IDE_PREINIT
90 #define CONFIG_MVSATA_IDE_USE_PORT0
91 #define CONFIG_MVSATA_IDE_USE_PORT1
92 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
93 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
94 #endif /* CONFIG_IDE */
96 #endif /* _CONFIG_SHEEVAPLUG_H */