blob: 249f93bf130f3baa8206a20093096cb5a68c4df6 [file] [log] [blame]
Eric Cooper38041db2010-11-24 17:11:32 +05301/*
2 * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
3 *
4 * Based on sheevaplug.h originally written by
5 * Prafulla Wadaskar <prafulla@marvell.com>
6 * (C) Copyright 2009
7 * Marvell Semiconductor <www.marvell.com>
8 *
9 * See file CREDITS for list of people who contributed to this
10 * project.
11 *
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.
16 *
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.
21 *
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,
25 * MA 02110-1301 USA
26 */
27
28#ifndef _CONFIG_DOCKSTAR_H
29#define _CONFIG_DOCKSTAR_H
30
31/*
32 * Version number information
33 */
34#define CONFIG_IDENT_STRING "\nSeagate FreeAgent DockStar"
35
36/*
37 * High Level Configuration Options (easy to change)
38 */
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 */
44
45/*
46 * Commands configuration
47 */
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
56/*
57 * mv-common.h should be defined after CMD configs since it used them
58 * to enable certain macros
59 */
60#include "mv-common.h"
61
62#undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
63#define CONFIG_SYS_PROMPT "DockStar> " /* Command Prompt */
64
65/*
66 * Environment variables configurations
67 */
68#ifdef CONFIG_CMD_NAND
69#define CONFIG_ENV_IS_IN_NAND 1
70#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
71#else
72#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
73#endif
74/*
75 * max 4k env size is enough, but in case of nand
76 * it has to be rounded to sector size
77 */
78#define CONFIG_ENV_SIZE 0x20000 /* 128k */
79#define CONFIG_ENV_ADDR 0x60000
80#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
81
82/*
83 * Default environment variables
84 */
85#define CONFIG_BOOTCOMMAND \
86 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
87 "ubi part root; " \
88 "ubifsmount root; " \
89 "ubifsload 0x800000 ${kernel}; " \
90 "ubifsload 0x1100000 ${initrd}; " \
91 "bootm 0x800000 0x1100000"
92
93#define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0"
94
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"
102
103/*
104 * Ethernet Driver configuration
105 */
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 */
110
111/*
112 * File system
113 */
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
123#define CONFIG_LZO
124
125#endif /* _CONFIG_DOCKSTAR_H */