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