blob: a0120b06fdbd18aed5ed1c0b82c76489c3feb694 [file] [log] [blame]
Prafulla Wadaskar4aab4ae2009-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 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +05307 */
8
9#ifndef _CONFIG_RD6281A_H
10#define _CONFIG_RD6281A_H
11
12/*
13 * Version number information
14 */
15#define CONFIG_IDENT_STRING "\nMarvell-RD6281A"
16
17/*
18 * High Level Configuration Options (easy to change)
19 */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053020#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053021#define CONFIG_KW88F6281 1 /* SOC Name */
22#define CONFIG_MACH_RD6281A /* Machine type */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053023#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053024
25/*
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053026 * Commands configuration
27 */
28#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053029#define CONFIG_CMD_DHCP
30#define CONFIG_CMD_ENV
31#define CONFIG_CMD_FAT
32#define CONFIG_CMD_NAND
33#define CONFIG_CMD_PING
34#define CONFIG_CMD_USB
Prafulla Wadaskar32686292010-09-30 22:53:43 +053035#define CONFIG_CMD_IDE
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053036
37/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053038 * mv-common.h should be defined after CMD configs since it used them
39 * to enable certain macros
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053040 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053041#include "mv-common.h"
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053042
43/*
44 * Environment variables configurations
45 */
46#ifdef CONFIG_CMD_NAND
47#define CONFIG_ENV_IS_IN_NAND 1
48#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
49#else
50#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
51#endif
52/*
53 * max 4k env size is enough, but in case of nand
54 * it has to be rounded to sector size
55 */
56#define CONFIG_ENV_SIZE 0x20000 /* 128k */
57#define CONFIG_ENV_ADDR 0x40000
58#define CONFIG_ENV_OFFSET 0x40000 /* env starts here */
59
60/*
61 * Default environment variables
62 */
63#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
64 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
65 "${x_bootcmd_usb}; bootm 0x6400000;"
66
67#define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \
68 "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
69
70#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
71 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
72 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
73 "x_bootcmd_usb=usb start\0" \
74 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
75
76/*
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053077 * Ethernet Driver configuration
78 */
79#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020080#define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053081#define CONFIG_MV88E61XX_MULTICHIP_ADRMODE
82#define CONFIG_DIS_AUTO_NEG_SPEED_GMII /*Disable Auto speed negociation */
83#define CONFIG_PHY_SPEED _1000BASET /*Force PHYspeed to 1GBPs */
84#define CONFIG_PHY_BASE_ADR 0x0A
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053085#define CONFIG_MV88E61XX_SWITCH /* Enable MV88E61XX switch driver */
86#endif /* CONFIG_CMD_NET */
87
88/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053089 * SATA Driver configuration
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053090 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053091#ifdef CONFIG_MVSATA_IDE
92#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
93#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
94#endif /*CONFIG_MVSATA_IDE*/
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +053095
96#endif /* _CONFIG_RD6281A_H */