blob: 60f957996ce33bcec7a89482ce9ce9c20bf6d1b3 [file] [log] [blame]
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +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_RD6281A_H
26#define _CONFIG_RD6281A_H
27
28/*
29 * Version number information
30 */
31#define CONFIG_IDENT_STRING "\nMarvell-RD6281A"
32
33/*
34 * High Level Configuration Options (easy to change)
35 */
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +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_RD6281A /* Machine type */
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053040#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053041
42/*
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053043 * Commands configuration
44 */
45#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
46#include <config_cmd_default.h>
47#define CONFIG_CMD_AUTOSCRIPT
48#define CONFIG_CMD_DHCP
49#define CONFIG_CMD_ENV
50#define CONFIG_CMD_FAT
51#define CONFIG_CMD_NAND
52#define CONFIG_CMD_PING
53#define CONFIG_CMD_USB
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053054#define CONFIG_CMD_IDE
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053055
56/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053057 * mv-common.h should be defined after CMD configs since it used them
58 * to enable certain macros
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053059 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053060#include "mv-common.h"
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053061
62/*
63 * Environment variables configurations
64 */
65#ifdef CONFIG_CMD_NAND
66#define CONFIG_ENV_IS_IN_NAND 1
67#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
68#else
69#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
70#endif
71/*
72 * max 4k env size is enough, but in case of nand
73 * it has to be rounded to sector size
74 */
75#define CONFIG_ENV_SIZE 0x20000 /* 128k */
76#define CONFIG_ENV_ADDR 0x40000
77#define CONFIG_ENV_OFFSET 0x40000 /* env starts here */
78
79/*
80 * Default environment variables
81 */
82#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
83 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
84 "${x_bootcmd_usb}; bootm 0x6400000;"
85
86#define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \
87 "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
88
89#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
90 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
91 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
92 "x_bootcmd_usb=usb start\0" \
93 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
94
95/*
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +053096 * Ethernet Driver configuration
97 */
98#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020099#define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +0530100#define CONFIG_MV88E61XX_MULTICHIP_ADRMODE
101#define CONFIG_DIS_AUTO_NEG_SPEED_GMII /*Disable Auto speed negociation */
102#define CONFIG_PHY_SPEED _1000BASET /*Force PHYspeed to 1GBPs */
103#define CONFIG_PHY_BASE_ADR 0x0A
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +0530104#define CONFIG_MV88E61XX_SWITCH /* Enable MV88E61XX switch driver */
105#endif /* CONFIG_CMD_NET */
106
107/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +0530108 * SATA Driver configuration
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +0530109 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +0530110#ifdef CONFIG_MVSATA_IDE
111#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
112#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
113#endif /*CONFIG_MVSATA_IDE*/
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +0530114
115#endif /* _CONFIG_RD6281A_H */