2 * (C) Copyright 2009-2012
3 * Wojciech Dubowik <wojciech.dubowik@neratec.com>
4 * Luka Perkov <uboot@lukaperkov.net>
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _CONFIG_ICONNECT_H
24 #define _CONFIG_ICONNECT_H
27 * Version number information
29 #define CONFIG_IDENT_STRING " Iomega iConnect"
32 * High level configuration options
34 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
35 #define CONFIG_KIRKWOOD /* SOC Family Name */
36 #define CONFIG_KW88F6281 /* SOC Name */
37 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
42 #define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT
45 * Compression configuration
52 * Commands configuration
54 #define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
55 #define CONFIG_SYS_MVFS
56 #include <config_cmd_default.h>
57 #define CONFIG_CMD_ENV
58 #define CONFIG_CMD_MII
59 #define CONFIG_CMD_NAND
60 #define CONFIG_CMD_PING
61 #define CONFIG_CMD_USB
64 * mv-common.h should be defined after CMD configs since it used them
65 * to enable certain macros
67 #include "mv-common.h"
69 #undef CONFIG_SYS_PROMPT
70 #define CONFIG_SYS_PROMPT "iconnect => "
73 * Environment variables configuration
75 #ifdef CONFIG_CMD_NAND
76 #define CONFIG_ENV_IS_IN_NAND
77 #define CONFIG_ENV_SECT_SIZE 0x20000
79 #define CONFIG_ENV_IS_NOWHERE
81 #define CONFIG_ENV_SIZE 0x20000
82 #define CONFIG_ENV_OFFSET 0x80000
85 * Default environment variables
87 #define CONFIG_BOOTCOMMAND \
88 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
90 "ubifsmount rootfs; " \
91 "ubifsload 0x800000 ${kernel}; " \
94 #define CONFIG_MTDPARTS \
95 "mtdparts=orion_nand:" \
96 "0x80000@0x0(uboot)," \
97 "0x20000@0x80000(uboot_env)," \
100 #define CONFIG_EXTRA_ENV_SETTINGS \
101 "console=console=ttyS0,115200\0" \
102 "mtdids=nand0=orion_nand\0" \
103 "mtdparts="CONFIG_MTDPARTS \
104 "kernel=/boot/uImage\0" \
105 "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
108 * Ethernet driver configuration
110 #ifdef CONFIG_CMD_NET
111 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
112 #define CONFIG_PHY_BASE_ADR 11
113 #undef CONFIG_RESET_PHY_R
114 #endif /* CONFIG_CMD_NET */
119 #define CONFIG_CMD_EXT2
120 #define CONFIG_CMD_FAT
121 #define CONFIG_CMD_JFFS2
122 #define CONFIG_CMD_UBI
123 #define CONFIG_CMD_UBIFS
124 #define CONFIG_RBTREE
125 #define CONFIG_MTD_DEVICE
126 #define CONFIG_MTD_PARTITIONS
127 #define CONFIG_CMD_MTDPARTS
129 #endif /* _CONFIG_ICONNECT_H */