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 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _CONFIG_WIRELESS_SPACE_H
11 #define _CONFIG_WIRELESS_SPACE_H
14 * Machine number definition
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"
21 * High Level Configuration Options (easy to change)
23 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
25 #define CONFIG_KW88F6281
26 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
29 * Commands configuration
31 #define CONFIG_SYS_NO_FLASH /* no NOR or SPI flash */
32 #define CONFIG_CMD_ENV
33 #define CONFIG_CMD_DHCP
34 #define CONFIG_CMD_PING
35 #define CONFIG_CMD_NAND
36 #define CONFIG_CMD_I2C
37 #define CONFIG_CMD_IDE
38 #define CONFIG_CMD_USB
41 * Core clock definition
43 #define CONFIG_SYS_TCLK 166000000 /* 166MHz */
48 #define CONFIG_NR_DRAM_BANKS 1
51 * Different SDRAM configuration and size for some of the boards derived
52 * from the Network Space v2
56 * mv-common.h should be defined after CMD configs since it used them
57 * to enable certain macros
59 #include "mv-common.h"
61 /* Remove or override few declarations from mv-common.h */
63 #undef CONFIG_SYS_IDE_MAXBUS
64 #undef CONFIG_SYS_IDE_MAXDEVICE
65 #define CONFIG_SYS_IDE_MAXBUS 1
66 #define CONFIG_SYS_IDE_MAXDEVICE 1
69 * Ethernet Driver configuration
72 #define CONFIG_MISC_INIT_R /* misc_init_r() initializes MAC address */
73 #define CONFIG_MVGBE_PORTS {1, 0} /* enable only egiga0... */
74 #define PORT_SERIAL_CONTROL_VALUE 0x00A4260E /* ... tied to the switch... */
75 #define CONFIG_PHY_BASE_ADR 0xa /* ... through a 'fake' PHY */
77 #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
78 #define CONFIG_NETCONSOLE
79 #define CONFIG_MV88E61XX_SWITCH
80 #define CONFIG_MV88E61XX_MULTICHIP_ADRMODE
81 #define CONFIG_MV88E61XX_CMD
82 #define CONFIG_CMD_TFTPPUT
83 #endif /* CONFIG_CMD_NET */
86 * SATA Driver configuration
88 #ifdef CONFIG_MVSATA_IDE
89 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
90 #endif /* CONFIG_MVSATA_IDE */
95 #define CONFIG_KIRKWOOD_GPIO
100 #ifdef CONFIG_CMD_I2C
101 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
102 #define CONFIG_CMD_EEPROM
103 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
104 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 /* 16-byte page size */
105 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* 8-bit device address */
106 #endif /* CONFIG_CMD_I2C */
111 #define CONFIG_DOS_PARTITION
112 #define CONFIG_EFI_PARTITION
115 * File systems support
117 #define CONFIG_CMD_EXT2
118 #define CONFIG_CMD_FAT
121 * Use the HUSH parser
123 #define CONFIG_SYS_HUSH_PARSER
126 * Console configuration
128 #define CONFIG_CONSOLE_MUX
129 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
132 * Enable device tree support
134 #define CONFIG_OF_LIBFDT
137 * Environment variables configurations
140 #define CONFIG_ENV_IS_IN_NAND
141 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128KB */
142 #define CONFIG_ENV_SIZE 0x20000 /* 128KB */
143 #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
146 * Board-specific command to make using buttons etc easier
149 #define CONFIG_WIRELESS_SPACE_CMD
152 * Default environment variables
154 #define CONFIG_PREBOOT
156 #define CONFIG_BOOTARGS "console=ttyS0,115200"
158 #define CONFIG_BOOTCOMMAND \
159 "if run usbload || run diskload; then bootm; fi"
161 #define CONFIG_EXTRA_ENV_SETTINGS \
165 "bootfile=uImage\0" \
166 "loadaddr=0x800000\0" \
169 "set stdin $stdin,nc; " \
170 "set stdout $stdout,nc; " \
171 "set stderr $stderr,nc;\0" \
172 "diskload=ide reset && " \
173 "ext2load ide 0:1 $loadaddr /boot/$bootfile\0" \
174 "usbload=usb start && " \
175 "fatload usb 0:1 $loadaddr /boot/$bootfile\0" \
177 "dhcp && run netconsole\0"
179 #endif /* _CONFIG_WIRELESS_SPACE_H */