2 * Copyright (C) 2011-2012
3 * Gerald Kerma <dreagle@doukki.net>
4 * Luka Perkov <luka@openwrt.org>
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_IB62x0_H
24 #define _CONFIG_IB62x0_H
27 * Version number information
29 #define CONFIG_IDENT_STRING " RaidSonic ICY BOX IB-NAS62x0"
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_NAS6210
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_IDE
59 #define CONFIG_CMD_MII
60 #define CONFIG_CMD_NAND
61 #define CONFIG_CMD_PING
62 #define CONFIG_CMD_USB
65 * mv-common.h should be defined after CMD configs since it used them
66 * to enable certain macros
68 #include "mv-common.h"
70 #undef CONFIG_SYS_PROMPT
71 #define CONFIG_SYS_PROMPT "ib62x0 => "
74 * Environment variables configuration
76 #ifdef CONFIG_CMD_NAND
77 #define CONFIG_ENV_IS_IN_NAND
78 #define CONFIG_ENV_SECT_SIZE 0x20000
80 #define CONFIG_ENV_IS_NOWHERE
82 #define CONFIG_ENV_SIZE 0x20000
83 #define CONFIG_ENV_OFFSET 0x80000
86 * Default environment variables
88 #define CONFIG_BOOTCOMMAND \
89 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
92 "ubifsload 0x800000 ${kernel}; " \
93 "ubifsload 0x1100000 ${initrd}; " \
94 "bootm 0x800000 0x1100000"
96 #define CONFIG_MTDPARTS \
97 "mtdparts=orion_nand:" \
98 "0x80000@0x0(uboot)," \
99 "0x20000@0x80000(uboot_env)," \
102 #define CONFIG_EXTRA_ENV_SETTINGS \
103 "console=console=ttyS0,115200\0" \
104 "mtdids=nand0=orion_nand\0" \
105 "mtdparts="CONFIG_MTDPARTS \
106 "kernel=/boot/uImage\0" \
107 "initrd=/boot/uInitrd\0" \
108 "bootargs_root=ubi.mtd=2 root=ubi0:root rootfstype=ubifs\0"
111 * Ethernet driver configuration
113 #ifdef CONFIG_CMD_NET
114 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
115 #define CONFIG_PHY_BASE_ADR 0
116 #undef CONFIG_RESET_PHY_R
117 #endif /* CONFIG_CMD_NET */
120 * SATA driver configuration
122 #ifdef CONFIG_CMD_IDE
124 #define CONFIG_IDE_PREINIT
125 #define CONFIG_DOS_PARTITION
126 #define CONFIG_MVSATA_IDE_USE_PORT0
127 #define CONFIG_MVSATA_IDE_USE_PORT1
128 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
129 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
130 #endif /* CONFIG_CMD_IDE */
133 * RTC driver configuration
135 #ifdef CONFIG_CMD_DATE
136 #define CONFIG_RTC_MV
137 #endif /* CONFIG_CMD_DATE */
142 #define CONFIG_CMD_EXT2
143 #define CONFIG_CMD_FAT
144 #define CONFIG_CMD_JFFS2
145 #define CONFIG_CMD_UBI
146 #define CONFIG_CMD_UBIFS
147 #define CONFIG_RBTREE
148 #define CONFIG_MTD_DEVICE
149 #define CONFIG_MTD_PARTITIONS
150 #define CONFIG_CMD_MTDPARTS
152 #endif /* _CONFIG_IB62x0_H */