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