]>
Commit | Line | Data |
---|---|---|
7202e8ae AA |
1 | /* |
2 | * Copyright (C) 2011 Albert ARIBAUD <albert.u.boot@aribaud.net> | |
3 | * | |
4 | * Based on the netspace_v2 code which is | |
5 | * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com> | |
6 | * | |
7 | * See file CREDITS for list of people who contributed to this | |
8 | * project. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU General Public License as | |
12 | * published by the Free Software Foundation; either version 2 of | |
13 | * the License, or (at your option) any later version. | |
14 | * | |
15 | * This program is distributed in the hope that it will be useful, | |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | * GNU General Public License for more details. | |
19 | */ | |
20 | ||
21 | #ifndef _CONFIG_WIRELESS_SPACE_H | |
22 | #define _CONFIG_WIRELESS_SPACE_H | |
23 | ||
24 | /* | |
25 | * Machine number definition | |
26 | */ | |
27 | #define MACH_TYPE_WIRELESS_SPACE 2500 /* is missing in mach-types.h */ | |
28 | #define CONFIG_MACH_TYPE MACH_TYPE_WIRELESS_SPACE | |
29 | #define CONFIG_IDENT_STRING " Wireless Space" | |
30 | ||
31 | /* | |
32 | * High Level Configuration Options (easy to change) | |
33 | */ | |
34 | #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */ | |
35 | #define CONFIG_KIRKWOOD /* SoC Family Name */ | |
36 | /* SoC name */ | |
37 | #define CONFIG_KW88F6281 | |
38 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ | |
39 | ||
40 | /* | |
41 | * Commands configuration | |
42 | */ | |
43 | #define CONFIG_SYS_NO_FLASH /* no NOR or SPI flash */ | |
44 | #include <config_cmd_default.h> | |
45 | #define CONFIG_CMD_ENV | |
46 | #define CONFIG_CMD_DHCP | |
47 | #define CONFIG_CMD_PING | |
48 | #define CONFIG_CMD_NAND | |
49 | #define CONFIG_CMD_I2C | |
50 | #define CONFIG_CMD_IDE | |
51 | #define CONFIG_CMD_USB | |
52 | ||
53 | /* | |
54 | * Core clock definition | |
55 | */ | |
56 | #define CONFIG_SYS_TCLK 166000000 /* 166MHz */ | |
57 | ||
58 | /* | |
59 | * SDRAM configuration | |
60 | */ | |
61 | #define CONFIG_NR_DRAM_BANKS 1 | |
62 | ||
63 | /* | |
64 | * Different SDRAM configuration and size for some of the boards derived | |
65 | * from the Network Space v2 | |
66 | */ | |
67 | ||
68 | /* | |
69 | * mv-common.h should be defined after CMD configs since it used them | |
70 | * to enable certain macros | |
71 | */ | |
72 | #include "mv-common.h" | |
73 | ||
74 | /* Remove or override few declarations from mv-common.h */ | |
75 | #undef CONFIG_RBTREE | |
76 | #undef CONFIG_SYS_IDE_MAXBUS | |
77 | #undef CONFIG_SYS_IDE_MAXDEVICE | |
78 | #define CONFIG_SYS_IDE_MAXBUS 1 | |
79 | #define CONFIG_SYS_IDE_MAXDEVICE 1 | |
80 | #undef CONFIG_SYS_PROMPT | |
81 | #define CONFIG_SYS_PROMPT "ws> " | |
82 | ||
83 | /* | |
84 | * Ethernet Driver configuration | |
85 | */ | |
86 | #ifdef CONFIG_CMD_NET | |
87 | #define CONFIG_MISC_INIT_R /* misc_init_r() initializes MAC address */ | |
88 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable only egiga0... */ | |
89 | #define PORT_SERIAL_CONTROL_VALUE 0x00A4260E /* ... tied to the switch... */ | |
90 | #define CONFIG_PHY_BASE_ADR 0xa /* ... through a 'fake' PHY */ | |
91 | #define CONFIG_MII | |
92 | #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN | |
93 | #define CONFIG_NETCONSOLE | |
94 | #define CONFIG_MV88E61XX_SWITCH | |
95 | #define CONFIG_MV88E61XX_MULTICHIP_ADRMODE | |
96 | #define CONFIG_MV88E61XX_CMD | |
97 | #define CONFIG_CMD_TFTPPUT | |
98 | #endif /* CONFIG_CMD_NET */ | |
99 | ||
100 | /* | |
101 | * SATA Driver configuration | |
102 | */ | |
103 | #ifdef CONFIG_MVSATA_IDE | |
104 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET | |
105 | #endif /* CONFIG_MVSATA_IDE */ | |
106 | ||
107 | /* | |
108 | * Enable GPI0 support | |
109 | */ | |
110 | #define CONFIG_KIRKWOOD_GPIO | |
111 | ||
112 | /* | |
113 | * Enable I2C support | |
114 | */ | |
115 | #ifdef CONFIG_CMD_I2C | |
116 | /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */ | |
117 | #define CONFIG_CMD_EEPROM | |
118 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 | |
119 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 /* 16-byte page size */ | |
120 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* 8-bit device address */ | |
121 | #endif /* CONFIG_CMD_I2C */ | |
122 | ||
123 | /* | |
124 | * Partition support | |
125 | */ | |
126 | #define CONFIG_DOS_PARTITION | |
127 | #define CONFIG_EFI_PARTITION | |
128 | ||
129 | /* | |
130 | * File systems support | |
131 | */ | |
132 | #define CONFIG_CMD_EXT2 | |
133 | #define CONFIG_CMD_FAT | |
134 | ||
135 | /* | |
136 | * Use the HUSH parser | |
137 | */ | |
138 | #define CONFIG_SYS_HUSH_PARSER | |
139 | ||
140 | /* | |
141 | * Console configuration | |
142 | */ | |
143 | #define CONFIG_CONSOLE_MUX | |
144 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV | |
145 | ||
146 | /* | |
147 | * Enable device tree support | |
148 | */ | |
149 | #define CONFIG_OF_LIBFDT | |
150 | ||
151 | /* | |
152 | * Environment variables configurations | |
153 | */ | |
154 | ||
155 | #define CONFIG_ENV_IS_IN_NAND | |
156 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128KB */ | |
157 | #define CONFIG_ENV_SIZE 0x20000 /* 128KB */ | |
158 | #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ | |
159 | ||
160 | /* | |
161 | * Board-specific command to make using buttons etc easier | |
162 | */ | |
163 | ||
164 | #define CONFIG_WIRELESS_SPACE_CMD | |
165 | ||
166 | /* | |
167 | * Default environment variables | |
168 | */ | |
169 | #define CONFIG_PREBOOT | |
170 | ||
171 | #define CONFIG_BOOTARGS "console=ttyS0,115200" | |
172 | ||
173 | #define CONFIG_BOOTCOMMAND \ | |
174 | "if run usbload || run diskload; then bootm; fi" | |
175 | ||
176 | #define CONFIG_EXTRA_ENV_SETTINGS \ | |
177 | "stdin=serial\0" \ | |
178 | "stdout=serial\0" \ | |
179 | "stderr=serial\0" \ | |
180 | "bootfile=uImage\0" \ | |
181 | "loadaddr=0x800000\0" \ | |
182 | "autoload=no\0" \ | |
183 | "netconsole=" \ | |
184 | "set stdin $stdin,nc; " \ | |
185 | "set stdout $stdout,nc; " \ | |
186 | "set stderr $stderr,nc;\0" \ | |
187 | "diskload=ide reset && " \ | |
188 | "ext2load ide 0:1 $loadaddr /boot/$bootfile\0" \ | |
189 | "usbload=usb start && " \ | |
190 | "fatload usb 0:1 $loadaddr /boot/$bootfile\0" \ | |
191 | "preboot=" \ | |
192 | "dhcp && run netconsole\0" | |
193 | ||
194 | #endif /* _CONFIG_WIRELESS_SPACE_H */ |