blob: d3238295f2b1475855faa0cb30cbaf6444918489 [file] [log] [blame]
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +05301/*
2 * (C) Copyright 2009
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 */
24
25#ifndef _CONFIG_MV88F6281GTW_GE_H
26#define _CONFIG_MV88F6281GTW_GE_H
27
28/*
29 * Version number information
30 */
31#define CONFIG_IDENT_STRING "\nMarvell-MV88F6281GTW_GE"
32
33/*
34 * High Level Configuration Options (easy to change)
35 */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053036#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
37#define CONFIG_KIRKWOOD 1 /* SOC Family Name */
38#define CONFIG_KW88F6281 1 /* SOC Name */
39#define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053040#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053041
42/*
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053043 * Commands configuration
44 */
45#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
46#include <config_cmd_default.h>
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053047#define CONFIG_CMD_DHCP
Prafulla Wadaskar32686292010-09-30 22:53:43 +053048#define CONFIG_CMD_PING
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053049#define CONFIG_CMD_ENV
50#define CONFIG_CMD_FAT
51#define CONFIG_CMD_PING
52#define CONFIG_CMD_SF
53#define CONFIG_CMD_USB
54
55/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053056 * mv-common.h should be defined after CMD configs since it used them
57 * to enable certain macros
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053058 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053059#include "mv-common.h"
60
61/* Unwanted stuffs from mv-common.h */
62#undef CONFIG_CMD_EXT2
63#undef CONFIG_CMD_JFFS2
64#undef CONFIG_CMD_FAT
65#undef CONFIG_CMD_UBI
66#undef CONFIG_CMD_UBIFS
67#undef CONFIG_RBTREE
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053068
69/*
70 * Environment variables configurations
71 */
72#ifdef CONFIG_SPI_FLASH
73#define CONFIG_ENV_IS_IN_SPI_FLASH 1
74#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */
75#else
76#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
77#endif
78#define CONFIG_ENV_SIZE 0x1000 /* 4k */
79#define CONFIG_ENV_ADDR 0x30000
80#define CONFIG_ENV_OFFSET 0x30000 /* env starts here */
81
82/*
83 * Default environment variables
84 */
85#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
86 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
87 "${x_bootcmd_usb}; bootm 0x6400000;"
88
89#define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \
90 "512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0"
91
92#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
93 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
94 "x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \
95 "x_bootcmd_usb=usb start\0" \
96 "x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0"
97
98/*
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053099 * Ethernet Driver configuration
100 */
101#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +0200102#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +0530103#define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */
Prafulla Wadaskar32686292010-09-30 22:53:43 +0530104#endif /* CONFIG_CMD_NET */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +0530105
106#endif /* _CONFIG_MV88F6281GTW_GE_H */