2 * Copyright (C) 2011 Albert ARIBAUD <albert.u.boot@aribaud.net>
4 * Based on the netspace_v2 code which is
5 * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
7 * See file CREDITS for list of people who contributed to this
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.
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.
21 #ifndef _CONFIG_WIRELESS_SPACE_H
22 #define _CONFIG_WIRELESS_SPACE_H
25 * Machine number definition
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"
32 * High Level Configuration Options (easy to change)
34 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
35 #define CONFIG_KIRKWOOD /* SoC Family Name */
37 #define CONFIG_KW88F6281
38 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
41 * Commands configuration
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
54 * Core clock definition
56 #define CONFIG_SYS_TCLK 166000000 /* 166MHz */
61 #define CONFIG_NR_DRAM_BANKS 1
64 * Different SDRAM configuration and size for some of the boards derived
65 * from the Network Space v2
69 * mv-common.h should be defined after CMD configs since it used them
70 * to enable certain macros
72 #include "mv-common.h"
74 /* Remove or override few declarations from mv-common.h */
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> "
84 * Ethernet Driver configuration
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 */
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 */
101 * SATA Driver configuration
103 #ifdef CONFIG_MVSATA_IDE
104 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
105 #endif /* CONFIG_MVSATA_IDE */
108 * Enable GPI0 support
110 #define CONFIG_KIRKWOOD_GPIO
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 */
126 #define CONFIG_DOS_PARTITION
127 #define CONFIG_EFI_PARTITION
130 * File systems support
132 #define CONFIG_CMD_EXT2
133 #define CONFIG_CMD_FAT
136 * Use the HUSH parser
138 #define CONFIG_SYS_HUSH_PARSER
141 * Console configuration
143 #define CONFIG_CONSOLE_MUX
144 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
147 * Enable device tree support
149 #define CONFIG_OF_LIBFDT
152 * Environment variables configurations
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 */
161 * Board-specific command to make using buttons etc easier
164 #define CONFIG_WIRELESS_SPACE_CMD
167 * Default environment variables
169 #define CONFIG_PREBOOT
171 #define CONFIG_BOOTARGS "console=ttyS0,115200"
173 #define CONFIG_BOOTCOMMAND \
174 "if run usbload || run diskload; then bootm; fi"
176 #define CONFIG_EXTRA_ENV_SETTINGS \
180 "bootfile=uImage\0" \
181 "loadaddr=0x800000\0" \
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" \
192 "dhcp && run netconsole\0"
194 #endif /* _CONFIG_WIRELESS_SPACE_H */