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