1*38041db7SEric Cooper /* 2*38041db7SEric Cooper * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> 3*38041db7SEric Cooper * 4*38041db7SEric Cooper * Based on sheevaplug.h originally written by 5*38041db7SEric Cooper * Prafulla Wadaskar <prafulla@marvell.com> 6*38041db7SEric Cooper * (C) Copyright 2009 7*38041db7SEric Cooper * Marvell Semiconductor <www.marvell.com> 8*38041db7SEric Cooper * 9*38041db7SEric Cooper * See file CREDITS for list of people who contributed to this 10*38041db7SEric Cooper * project. 11*38041db7SEric Cooper * 12*38041db7SEric Cooper * This program is free software; you can redistribute it and/or 13*38041db7SEric Cooper * modify it under the terms of the GNU General Public License as 14*38041db7SEric Cooper * published by the Free Software Foundation; either version 2 of 15*38041db7SEric Cooper * the License, or (at your option) any later version. 16*38041db7SEric Cooper * 17*38041db7SEric Cooper * This program is distributed in the hope that it will be useful, 18*38041db7SEric Cooper * but WITHOUT ANY WARRANTY; without even the implied warranty of 19*38041db7SEric Cooper * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*38041db7SEric Cooper * GNU General Public License for more details. 21*38041db7SEric Cooper * 22*38041db7SEric Cooper * You should have received a copy of the GNU General Public License 23*38041db7SEric Cooper * along with this program; if not, write to the Free Software 24*38041db7SEric Cooper * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25*38041db7SEric Cooper * MA 02110-1301 USA 26*38041db7SEric Cooper */ 27*38041db7SEric Cooper 28*38041db7SEric Cooper #ifndef _CONFIG_DOCKSTAR_H 29*38041db7SEric Cooper #define _CONFIG_DOCKSTAR_H 30*38041db7SEric Cooper 31*38041db7SEric Cooper /* 32*38041db7SEric Cooper * Version number information 33*38041db7SEric Cooper */ 34*38041db7SEric Cooper #define CONFIG_IDENT_STRING "\nSeagate FreeAgent DockStar" 35*38041db7SEric Cooper 36*38041db7SEric Cooper /* 37*38041db7SEric Cooper * High Level Configuration Options (easy to change) 38*38041db7SEric Cooper */ 39*38041db7SEric Cooper #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 40*38041db7SEric Cooper #define CONFIG_KIRKWOOD 1 /* SOC Family Name */ 41*38041db7SEric Cooper #define CONFIG_KW88F6281 1 /* SOC Name */ 42*38041db7SEric Cooper #define CONFIG_MACH_DOCKSTAR /* Machine type */ 43*38041db7SEric Cooper #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ 44*38041db7SEric Cooper 45*38041db7SEric Cooper /* 46*38041db7SEric Cooper * Commands configuration 47*38041db7SEric Cooper */ 48*38041db7SEric Cooper #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ 49*38041db7SEric Cooper #include <config_cmd_default.h> 50*38041db7SEric Cooper #define CONFIG_CMD_DHCP 51*38041db7SEric Cooper #define CONFIG_CMD_ENV 52*38041db7SEric Cooper #define CONFIG_CMD_MII 53*38041db7SEric Cooper #define CONFIG_CMD_NAND 54*38041db7SEric Cooper #define CONFIG_CMD_PING 55*38041db7SEric Cooper #define CONFIG_CMD_USB 56*38041db7SEric Cooper /* 57*38041db7SEric Cooper * mv-common.h should be defined after CMD configs since it used them 58*38041db7SEric Cooper * to enable certain macros 59*38041db7SEric Cooper */ 60*38041db7SEric Cooper #include "mv-common.h" 61*38041db7SEric Cooper 62*38041db7SEric Cooper #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */ 63*38041db7SEric Cooper #define CONFIG_SYS_PROMPT "DockStar> " /* Command Prompt */ 64*38041db7SEric Cooper 65*38041db7SEric Cooper /* 66*38041db7SEric Cooper * Environment variables configurations 67*38041db7SEric Cooper */ 68*38041db7SEric Cooper #ifdef CONFIG_CMD_NAND 69*38041db7SEric Cooper #define CONFIG_ENV_IS_IN_NAND 1 70*38041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 71*38041db7SEric Cooper #else 72*38041db7SEric Cooper #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ 73*38041db7SEric Cooper #endif 74*38041db7SEric Cooper /* 75*38041db7SEric Cooper * max 4k env size is enough, but in case of nand 76*38041db7SEric Cooper * it has to be rounded to sector size 77*38041db7SEric Cooper */ 78*38041db7SEric Cooper #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 79*38041db7SEric Cooper #define CONFIG_ENV_ADDR 0x60000 80*38041db7SEric Cooper #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ 81*38041db7SEric Cooper 82*38041db7SEric Cooper /* 83*38041db7SEric Cooper * Default environment variables 84*38041db7SEric Cooper */ 85*38041db7SEric Cooper #define CONFIG_BOOTCOMMAND \ 86*38041db7SEric Cooper "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ 87*38041db7SEric Cooper "ubi part root; " \ 88*38041db7SEric Cooper "ubifsmount root; " \ 89*38041db7SEric Cooper "ubifsload 0x800000 ${kernel}; " \ 90*38041db7SEric Cooper "ubifsload 0x1100000 ${initrd}; " \ 91*38041db7SEric Cooper "bootm 0x800000 0x1100000" 92*38041db7SEric Cooper 93*38041db7SEric Cooper #define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0" 94*38041db7SEric Cooper 95*38041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \ 96*38041db7SEric Cooper "console=console=ttyS0,115200\0" \ 97*38041db7SEric Cooper "mtdids=nand0=orion_nand\0" \ 98*38041db7SEric Cooper "mtdparts="CONFIG_MTDPARTS \ 99*38041db7SEric Cooper "kernel=/boot/uImage\0" \ 100*38041db7SEric Cooper "initrd=/boot/uInitrd\0" \ 101*38041db7SEric Cooper "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0" 102*38041db7SEric Cooper 103*38041db7SEric Cooper /* 104*38041db7SEric Cooper * Ethernet Driver configuration 105*38041db7SEric Cooper */ 106*38041db7SEric Cooper #ifdef CONFIG_CMD_NET 107*38041db7SEric Cooper #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 108*38041db7SEric Cooper #define CONFIG_PHY_BASE_ADR 0 109*38041db7SEric Cooper #endif /* CONFIG_CMD_NET */ 110*38041db7SEric Cooper 111*38041db7SEric Cooper /* 112*38041db7SEric Cooper * File system 113*38041db7SEric Cooper */ 114*38041db7SEric Cooper #define CONFIG_CMD_EXT2 115*38041db7SEric Cooper #define CONFIG_CMD_FAT 116*38041db7SEric Cooper #define CONFIG_CMD_JFFS2 117*38041db7SEric Cooper #define CONFIG_CMD_UBI 118*38041db7SEric Cooper #define CONFIG_CMD_UBIFS 119*38041db7SEric Cooper #define CONFIG_RBTREE 120*38041db7SEric Cooper #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 121*38041db7SEric Cooper #define CONFIG_MTD_PARTITIONS 122*38041db7SEric Cooper #define CONFIG_CMD_MTDPARTS 123*38041db7SEric Cooper #define CONFIG_LZO 124*38041db7SEric Cooper 125*38041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */ 126