1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 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> 7 */ 8 9#ifndef _CONFIG_SHEEVAPLUG_H 10#define _CONFIG_SHEEVAPLUG_H 11 12/* 13 * High Level Configuration Options (easy to change) 14 */ 15#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 16 17#include "mv-plug-common.h" 18 19/* 20 * Environment variables configurations 21 */ 22/* 23 * max 4k env size is enough, but in case of nand 24 * it has to be rounded to sector size 25 */ 26/* 27 * Environment is right behind U-Boot in flash. Make sure U-Boot 28 * doesn't grow into the environment area. 29 */ 30#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET 31 32/* 33 * Default environment variables 34 */ 35#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ 36 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ 37 "bootm 0x6400000;" 38 39#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ 40 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \ 41 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ 42 "x_bootcmd_usb=usb start\0" \ 43 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" 44 45/* 46 * Ethernet Driver configuration 47 */ 48#ifdef CONFIG_CMD_NET 49#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 50#define CONFIG_PHY_BASE_ADR 0 51#endif /* CONFIG_CMD_NET */ 52 53/* 54 * SDIO/MMC Card Configuration 55 */ 56#ifdef CONFIG_CMD_MMC 57#define CONFIG_MVEBU_MMC 58#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE 59#endif /* CONFIG_CMD_MMC */ 60 61/* 62 * SATA driver configuration 63 */ 64#ifdef CONFIG_IDE 65#define __io 66#define CONFIG_IDE_PREINIT 67#define CONFIG_MVSATA_IDE_USE_PORT0 68#define CONFIG_MVSATA_IDE_USE_PORT1 69#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET 70#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET 71#endif /* CONFIG_IDE */ 72 73#endif /* _CONFIG_SHEEVAPLUG_H */ 74