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