2 * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 #ifndef _CONFIG_NETSPACE_V2_H
19 #define _CONFIG_NETSPACE_V2_H
22 * Machine number definition
24 #if defined(CONFIG_INETSPACE_V2)
25 #define CONFIG_MACH_TYPE MACH_TYPE_INETSPACE_V2
26 #define CONFIG_IDENT_STRING " IS v2"
27 #elif defined(CONFIG_NETSPACE_V2)
28 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_V2
29 #define CONFIG_IDENT_STRING " NS v2"
30 #elif defined(CONFIG_NETSPACE_MAX_V2)
31 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2
32 #define CONFIG_IDENT_STRING " NS Max v2"
34 #error "Unknown board"
38 * High Level Configuration Options (easy to change)
40 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
41 #define CONFIG_KIRKWOOD /* SOC Family Name */
42 #define CONFIG_KW88F6281 /* SOC Name */
43 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
46 * Commands configuration
48 #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
49 #include <config_cmd_default.h>
50 #define CONFIG_CMD_ENV
51 #define CONFIG_CMD_DHCP
52 #define CONFIG_CMD_PING
54 #define CONFIG_CMD_I2C
55 #define CONFIG_CMD_IDE
56 #define CONFIG_CMD_USB
59 * Core clock definition.
61 #define CONFIG_SYS_TCLK 166000000 /* 166MHz */
64 * mv-common.h should be defined after CMD configs since it used them
65 * to enable certain macros
67 #define CONFIG_NR_DRAM_BANKS 2
68 #include "mv-common.h"
70 /* Remove or override few declarations from mv-common.h */
72 #undef CONFIG_ENV_SPI_MAX_HZ
73 #undef CONFIG_SYS_IDE_MAXBUS
74 #undef CONFIG_SYS_IDE_MAXDEVICE
75 #undef CONFIG_SYS_PROMPT
76 #define CONFIG_ENV_SPI_MAX_HZ 20000000 /* 20Mhz */
77 #define CONFIG_SYS_IDE_MAXBUS 1
78 #define CONFIG_SYS_IDE_MAXDEVICE 1
79 #define CONFIG_SYS_PROMPT "ns2> "
82 * Ethernet Driver configuration
85 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
86 #define CONFIG_NETCONSOLE
90 * SATA Driver configuration
92 #ifdef CONFIG_MVSATA_IDE
93 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
94 /* Network Space Max v2 use 2 SATA ports */
95 #ifdef CONFIG_NETSPACE_MAX_V2
96 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
101 * Enable GPI0 support
103 #define CONFIG_KIRKWOOD_GPIO
106 * File systems support
108 #define CONFIG_CMD_EXT2
109 #define CONFIG_CMD_FAT
112 * Use the HUSH parser
114 #define CONFIG_SYS_HUSH_PARSER
115 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
118 * Console configuration
120 #define CONFIG_CONSOLE_MUX
121 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
124 * Enable device tree support
126 #define CONFIG_OF_LIBFDT
129 * Environment variables configurations
131 #define CONFIG_ENV_IS_IN_SPI_FLASH
132 #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64KB */
133 #define CONFIG_ENV_SIZE 0x1000 /* 4KB */
134 #define CONFIG_ENV_ADDR 0x70000
135 #define CONFIG_ENV_OFFSET 0x70000 /* env starts here */
138 * Default environment variables
140 #define CONFIG_BOOTARGS "console=ttyS0,115200"
142 #define CONFIG_BOOTCOMMAND \
143 "dhcp && run netconsole; " \
144 "if run usbload || run diskload; then bootm; fi"
146 #define CONFIG_EXTRA_ENV_SETTINGS \
150 "bootfile=uImage\0" \
151 "loadaddr=0x800000\0" \
154 "set stdin $stdin,nc; " \
155 "set stdout $stdout,nc; " \
156 "set stderr $stderr,nc;\0" \
157 "diskload=ide reset && " \
158 "ext2load ide 0:1 $loadaddr /boot/$bootfile\0" \
159 "usbload=usb start && " \
160 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
162 #endif /* _CONFIG_NETSPACE_V2_H */