1 /* 2 * (C) Copyright 2009-2014 3 * Gerald Kerma <dreagle@doukki.net> 4 * Marvell Semiconductor <www.marvell.com> 5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com> 6 * 7 * SPDX-License-Identifier: GPL-2.0+ 8 */ 9 10 #ifndef _CONFIG_SHEEVAPLUG_H 11 #define _CONFIG_SHEEVAPLUG_H 12 13 /* 14 * Version number information 15 */ 16 #define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug" 17 18 /* 19 * High Level Configuration Options (easy to change) 20 */ 21 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 22 #define CONFIG_MACH_SHEEVAPLUG /* Machine type */ 23 24 /* 25 * Commands configuration 26 */ 27 28 /* 29 * Standard filesystems 30 */ 31 #define CONFIG_SYS_MVFS 32 33 /* 34 * mv-plug-common.h should be defined after CMD configs since it used them 35 * to enable certain macros 36 */ 37 #include "mv-plug-common.h" 38 39 /* 40 * Environment variables configurations 41 */ 42 #ifdef CONFIG_CMD_NAND 43 #define CONFIG_ENV_IS_IN_NAND 1 44 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 45 #else 46 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ 47 #endif 48 /* 49 * max 4k env size is enough, but in case of nand 50 * it has to be rounded to sector size 51 */ 52 #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 53 #define CONFIG_ENV_ADDR 0x80000 54 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ 55 56 /* 57 * Default environment variables 58 */ 59 #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ 60 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ 61 "bootm 0x6400000;" 62 63 #define CONFIG_MTDPARTS \ 64 "orion_nand:512K(uboot)," \ 65 "512K(env),4M(kernel)," \ 66 "-(rootfs)\0" 67 68 #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ 69 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \ 70 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ 71 "x_bootcmd_usb=usb start\0" \ 72 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" 73 74 #define MTDIDS_DEFAULT "nand0=orion_nand" 75 76 #define MTDPARTS_DEFAULT \ 77 "mtdparts="CONFIG_MTDPARTS 78 79 /* 80 * Ethernet Driver configuration 81 */ 82 #ifdef CONFIG_CMD_NET 83 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 84 #define CONFIG_PHY_BASE_ADR 0 85 #endif /* CONFIG_CMD_NET */ 86 87 /* 88 * SDIO/MMC Card Configuration 89 */ 90 #ifdef CONFIG_CMD_MMC 91 #define CONFIG_MMC 92 #define CONFIG_GENERIC_MMC 93 #define CONFIG_MVEBU_MMC 94 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE 95 #endif /* CONFIG_CMD_MMC */ 96 97 /* 98 * SATA driver configuration 99 */ 100 #ifdef CONFIG_CMD_IDE 101 #define __io 102 #define CONFIG_IDE_PREINIT 103 #define CONFIG_DOS_PARTITION 104 #define CONFIG_MVSATA_IDE_USE_PORT0 105 #define CONFIG_MVSATA_IDE_USE_PORT1 106 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET 107 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET 108 #endif /* CONFIG_CMD_IDE */ 109 110 #endif /* _CONFIG_SHEEVAPLUG_H */ 111