blob: ba57849a602f32223b42df8601da632e3eac5745 [file] [log] [blame]
Luka Perkov9b914722012-09-05 08:01:25 +00001/*
2 * (C) Copyright 2009-2012
3 * Wojciech Dubowik <wojciech.dubowik@neratec.com>
Luka Perkov3fdf7592012-12-03 03:24:15 +00004 * Luka Perkov <luka@openwrt.org>
Luka Perkov9b914722012-09-05 08:01:25 +00005 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
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.
13 *
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.
18 *
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/>.
21 */
22
23#ifndef _CONFIG_ICONNECT_H
24#define _CONFIG_ICONNECT_H
25
26/*
27 * Version number information
28 */
29#define CONFIG_IDENT_STRING " Iomega iConnect"
30
31/*
32 * High level configuration options
33 */
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 */
38
39/*
40 * Machine type
41 */
42#define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT
43
44/*
45 * Compression configuration
46 */
47#define CONFIG_BZIP2
48#define CONFIG_LZMA
49#define CONFIG_LZO
50
51/*
52 * Commands configuration
53 */
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
62
63/*
64 * mv-common.h should be defined after CMD configs since it used them
65 * to enable certain macros
66 */
67#include "mv-common.h"
68
69#undef CONFIG_SYS_PROMPT
70#define CONFIG_SYS_PROMPT "iconnect => "
71
72/*
73 * Environment variables configuration
74 */
75#ifdef CONFIG_CMD_NAND
76#define CONFIG_ENV_IS_IN_NAND
77#define CONFIG_ENV_SECT_SIZE 0x20000
78#else
79#define CONFIG_ENV_IS_NOWHERE
80#endif
81#define CONFIG_ENV_SIZE 0x20000
82#define CONFIG_ENV_OFFSET 0x80000
83
84/*
85 * Default environment variables
86 */
87#define CONFIG_BOOTCOMMAND \
88 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
89 "ubi part rootfs; " \
90 "ubifsmount rootfs; " \
91 "ubifsload 0x800000 ${kernel}; " \
92 "bootm 0x800000"
93
94#define CONFIG_MTDPARTS \
95 "mtdparts=orion_nand:" \
96 "0x80000@0x0(uboot)," \
97 "0x20000@0x80000(uboot_env)," \
98 "-@0xa0000(rootfs)\0"
99
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"
106
107/*
108 * Ethernet driver configuration
109 */
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 */
115
116/*
117 * File system
118 */
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
128
129#endif /* _CONFIG_ICONNECT_H */