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_SHEEVAPLUG_H
26#define _CONFIG_SHEEVAPLUG_H
27
28
29
30
31#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
32
33
34
35
36#define CONFIG_MARVELL 1
37#define CONFIG_ARM926EJS 1
38#define CONFIG_FEROCEON_88FR131 1
39#define CONFIG_KIRKWOOD 1
40#define CONFIG_KW88F6281 1
41#define CONFIG_MACH_SHEEVAPLUG
42
43#define CONFIG_MD5
44#define CONFIG_SKIP_LOWLEVEL_INIT
45#define CONFIG_KIRKWOOD_EGIGA_INIT
46#define CONFIG_KIRKWOOD_RGMII_PAD_1V8
47
48
49
50
51#define CONFIG_SYS_HZ 1000
52
53
54
55
56#define CONFIG_SYS_NS16550
57#define CONFIG_SYS_NS16550_SERIAL
58#define CONFIG_SYS_NS16550_REG_SIZE (-4)
59#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
60#define CONFIG_SYS_NS16550_COM1 KW_UART0_BASE
61
62
63
64
65
66
67
68#define CONFIG_CONS_INDEX 1
69#define CONFIG_BAUDRATE 115200
70#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
71 115200,230400, 460800, 921600 }
72
73#define CONFIG_BOOTDELAY 3
74
75
76
77
78
79
80#define CONFIG_CMDLINE_TAG 1
81#define CONFIG_INITRD_TAG 1
82#define CONFIG_SETUP_MEMORY_TAGS 1
83
84#define CONFIG_SYS_PROMPT "Marvell>> "
85#define CONFIG_SYS_CBSIZE 1024
86#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
87 +sizeof(CONFIG_SYS_PROMPT) + 16)
88
89
90
91#define CONFIG_SYS_NO_FLASH
92#include <config_cmd_default.h>
93#define CONFIG_CMD_AUTOSCRIPT
94#define CONFIG_CMD_DHCP
95#define CONFIG_CMD_ENV
96#define CONFIG_CMD_FAT
97#define CONFIG_CMD_NAND
98#define CONFIG_CMD_PING
99#define CONFIG_CMD_USB
100
101
102
103
104#ifdef CONFIG_CMD_NAND
105#define CONFIG_NAND_KIRKWOOD
106#define CONFIG_SYS_MAX_NAND_DEVICE 1
107#define NAND_MAX_CHIPS 1
108#define CONFIG_SYS_NAND_BASE 0xD8000000
109#define NAND_ALLOW_ERASE_ALL 1
110#define CONFIG_SYS_64BIT_VSPRINTF
111#endif
112
113
114
115
116#ifdef CONFIG_CMD_NAND
117#define CONFIG_ENV_IS_IN_NAND 1
118#define CONFIG_ENV_SECT_SIZE 0x20000
119#else
120#define CONFIG_ENV_IS_NOWHERE 1
121#endif
122
123
124
125
126#define CONFIG_ENV_SIZE 0x20000
127#define CONFIG_ENV_ADDR 0x40000
128#define CONFIG_ENV_OFFSET 0x40000
129
130
131
132
133#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
134 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
135 "${x_bootcmd_usb}; bootm 0x6400000;"
136
137#define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \
138 "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
139
140#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
141 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
142 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
143 "x_bootcmd_usb=usb start\0" \
144 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
145
146
147
148
149#define CONFIG_SYS_MALLOC_LEN (1024 * 128)
150
151#define CONFIG_SYS_GBL_DATA_SIZE 128
152
153
154
155
156#define CONFIG_CONSOLE_INFO_QUIET
157#define CONFIG_ARCH_CPU_INIT
158#define CONFIG_ARCH_MISC_INIT
159#define CONFIG_DISPLAY_CPUINFO
160#define CONFIG_NR_DRAM_BANKS 4
161#define CONFIG_STACKSIZE 0x00100000
162#define CONFIG_SYS_LOAD_ADDR 0x00800000
163#define CONFIG_SYS_MEMTEST_START 0x00400000
164#define CONFIG_SYS_MEMTEST_END 0x007fffff
165#define CONFIG_SYS_RESET_ADDRESS 0xffff0000
166#define CONFIG_SYS_MAXARGS 16
167
168
169
170
171#ifdef CONFIG_CMD_NET
172#define CONFIG_NETCONSOLE
173#define CONFIG_NET_MULTI
174#define CONFIG_MII
175#define CONFIG_KIRKWOOD_EGIGA
176#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
177#define CONFIG_KIRKWOOD_EGIGA_PORTS {1,0}
178#define CONFIG_PHY_BASE_ADR 0
179#define CONFIG_ENV_OVERWRITE
180#define CONFIG_RESET_PHY_R
181#endif
182
183
184
185
186#ifdef CONFIG_CMD_USB
187#define CONFIG_USB_EHCI
188#define CONFIG_USB_EHCI_KIRKWOOD
189#define CONFIG_EHCI_IS_TDI
190#define CONFIG_USB_STORAGE
191#define CONFIG_DOS_PARTITION
192#define CONFIG_ISO_PARTITION
193#define CONFIG_SUPPORT_VFAT
194#endif
195
196#endif
197