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 /* 18 * Commands configuration 19 */ 20 21 /* 22 * Standard filesystems 23 */ 24 #define CONFIG_SYS_MVFS 25 26 /* 27 * mv-plug-common.h should be defined after CMD configs since it used them 28 * to enable certain macros 29 */ 30 #include "mv-plug-common.h" 31 32 /* 33 * Environment variables configurations 34 */ 35 #ifdef CONFIG_CMD_NAND 36 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 37 #endif 38 /* 39 * max 4k env size is enough, but in case of nand 40 * it has to be rounded to sector size 41 */ 42 #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 43 #define CONFIG_ENV_ADDR 0x80000 44 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ 45 46 /* 47 * Default environment variables 48 */ 49 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ 50 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ 51 "bootm 0x6400000;" 52 53 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ 54 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \ 55 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ 56 "x_bootcmd_usb=usb start\0" \ 57 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" 58 59 /* 60 * Ethernet Driver configuration 61 */ 62 #ifdef CONFIG_CMD_NET 63 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 64 #define CONFIG_PHY_BASE_ADR 0 65 #endif /* CONFIG_CMD_NET */ 66 67 /* 68 * SDIO/MMC Card Configuration 69 */ 70 #ifdef CONFIG_CMD_MMC 71 #define CONFIG_MVEBU_MMC 72 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE 73 #endif /* CONFIG_CMD_MMC */ 74 75 /* 76 * SATA driver configuration 77 */ 78 #ifdef CONFIG_IDE 79 #define __io 80 #define CONFIG_IDE_PREINIT 81 #define CONFIG_MVSATA_IDE_USE_PORT0 82 #define CONFIG_MVSATA_IDE_USE_PORT1 83 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET 84 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET 85 #endif /* CONFIG_IDE */ 86 87 #endif /* _CONFIG_SHEEVAPLUG_H */ 88