blob: a56a4cb98271c558bcd4a3654b686c448ebdd06c [file] [log] [blame]
Siddarth Gore16b76702010-03-18 20:25:40 +05301/*
2 * (C) Copyright 2009
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Siddarth Gore <gores@marvell.com>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Siddarth Gore16b76702010-03-18 20:25:40 +05307 */
8
9#ifndef _CONFIG_GURUPLUG_H
10#define _CONFIG_GURUPLUG_H
11
12/*
13 * Version number information
14 */
15#define CONFIG_IDENT_STRING "\nMarvell-GuruPlug"
16
17/*
18 * High Level Configuration Options (easy to change)
19 */
Siddarth Gore16b76702010-03-18 20:25:40 +053020#define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */
Siddarth Gore16b76702010-03-18 20:25:40 +053021#define CONFIG_KW88F6281 1 /* SOC Name */
22#define CONFIG_MACH_GURUPLUG /* Machine type */
Siddarth Gore16b76702010-03-18 20:25:40 +053023#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Siddarth Gore16b76702010-03-18 20:25:40 +053024
25/*
Siddarth Gore16b76702010-03-18 20:25:40 +053026 * Commands configuration
27 */
28#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
29#include <config_cmd_default.h>
30#define CONFIG_CMD_DHCP
31#define CONFIG_CMD_ENV
32#define CONFIG_CMD_FAT
33#define CONFIG_CMD_NAND
34#define CONFIG_CMD_PING
35#define CONFIG_CMD_USB
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053036#define CONFIG_CMD_IDE
Siddarth Gore16b76702010-03-18 20:25:40 +053037
38/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053039 * mv-common.h should be defined after CMD configs since it used them
40 * to enable certain macros
Siddarth Gore16b76702010-03-18 20:25:40 +053041 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053042#include "mv-common.h"
Siddarth Gore16b76702010-03-18 20:25:40 +053043
44/*
45 * Environment variables configurations
46 */
47#ifdef CONFIG_CMD_NAND
48#define CONFIG_ENV_IS_IN_NAND 1
49#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
50#else
51#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
52#endif
53/*
54 * max 4k env size is enough, but in case of nand
55 * it has to be rounded to sector size
56 */
57#define CONFIG_ENV_SIZE 0x20000 /* 128k */
Gray Remlin58423832010-10-28 19:02:12 +053058#define CONFIG_ENV_ADDR 0x60000
59#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
Siddarth Gore16b76702010-03-18 20:25:40 +053060
61/*
62 * Default environment variables
63 */
64#define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \
65 "${x_bootcmd_ethernet}; setenv ethact egiga1; " \
66 "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
67 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
68 "bootm 0x6400000;"
69
70#define CONFIG_EXTRA_ENV_SETTINGS \
71 "x_bootcmd_ethernet=ping 192.168.2.1\0" \
72 "x_bootcmd_usb=usb start\0" \
73 "x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \
74 "x_bootargs=console=ttyS0,115200\0" \
75 "x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
76
77/*
Siddarth Gore16b76702010-03-18 20:25:40 +053078 * Ethernet Driver configuration
79 */
80#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020081#define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */
Siddarth Gore16b76702010-03-18 20:25:40 +053082#define CONFIG_PHY_BASE_ADR 0
Siddarth Gore16b76702010-03-18 20:25:40 +053083#endif /* CONFIG_CMD_NET */
84
85/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053086 * SATA Driver configuration
Siddarth Gore16b76702010-03-18 20:25:40 +053087 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053088#ifdef CONFIG_MVSATA_IDE
89#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
90#endif /*CONFIG_MVSATA_IDE*/
Siddarth Gore16b76702010-03-18 20:25:40 +053091
92#define CONFIG_SYS_ALT_MEMTEST
93
94#endif /* _CONFIG_GURUPLUG_H */