1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25#ifndef _CONFIG_GURUPLUG_H
26#define _CONFIG_GURUPLUG_H
27
28
29
30
31#define CONFIG_IDENT_STRING "\nMarvell-GuruPlug"
32
33
34
35
36#define CONFIG_SHEEVA_88SV131 1
37#define CONFIG_KIRKWOOD 1
38#define CONFIG_KW88F6281 1
39#define CONFIG_MACH_GURUPLUG
40#define CONFIG_SKIP_LOWLEVEL_INIT
41
42
43
44
45#define CONFIG_SYS_NO_FLASH
46#include <config_cmd_default.h>
47#define CONFIG_CMD_DHCP
48#define CONFIG_CMD_ENV
49#define CONFIG_CMD_FAT
50#define CONFIG_CMD_NAND
51#define CONFIG_CMD_PING
52#define CONFIG_CMD_USB
53#define CONFIG_CMD_IDE
54
55
56
57
58
59#include "mv-common.h"
60
61
62
63
64#ifdef CONFIG_CMD_NAND
65#define CONFIG_ENV_IS_IN_NAND 1
66#define CONFIG_ENV_SECT_SIZE 0x20000
67#else
68#define CONFIG_ENV_IS_NOWHERE 1
69#endif
70
71
72
73
74#define CONFIG_ENV_SIZE 0x20000
75#define CONFIG_ENV_ADDR 0x60000
76#define CONFIG_ENV_OFFSET 0x60000
77
78
79
80
81#define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \
82 "${x_bootcmd_ethernet}; setenv ethact egiga1; " \
83 "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
84 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
85 "bootm 0x6400000;"
86
87#define CONFIG_EXTRA_ENV_SETTINGS \
88 "x_bootcmd_ethernet=ping 192.168.2.1\0" \
89 "x_bootcmd_usb=usb start\0" \
90 "x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \
91 "x_bootargs=console=ttyS0,115200\0" \
92 "x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
93
94
95
96
97#ifdef CONFIG_CMD_NET
98#define CONFIG_MVGBE_PORTS {1, 1}
99#define CONFIG_PHY_BASE_ADR 0
100#endif
101
102
103
104
105#ifdef CONFIG_MVSATA_IDE
106#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
107#endif
108
109#define CONFIG_SYS_ALT_MEMTEST
110
111#endif
112