Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011-2012 |
| 3 | * Gerald Kerma <dreagle@doukki.net> |
Luka Perkov | e91505d | 2012-12-03 03:24:15 +0000 | [diff] [blame] | 4 | * Luka Perkov <luka@openwrt.org> |
Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 5 | * |
| 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_IB62x0_H |
| 24 | #define _CONFIG_IB62x0_H |
| 25 | |
| 26 | /* |
| 27 | * Version number information |
| 28 | */ |
| 29 | #define CONFIG_IDENT_STRING " RaidSonic ICY BOX IB-NAS62x0" |
| 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_NAS6210 |
| 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_IDE |
| 59 | #define CONFIG_CMD_MII |
| 60 | #define CONFIG_CMD_NAND |
| 61 | #define CONFIG_CMD_PING |
| 62 | #define CONFIG_CMD_USB |
| 63 | |
| 64 | /* |
| 65 | * mv-common.h should be defined after CMD configs since it used them |
| 66 | * to enable certain macros |
| 67 | */ |
| 68 | #include "mv-common.h" |
| 69 | |
| 70 | #undef CONFIG_SYS_PROMPT |
| 71 | #define CONFIG_SYS_PROMPT "ib62x0 => " |
| 72 | |
| 73 | /* |
| 74 | * Environment variables configuration |
| 75 | */ |
| 76 | #ifdef CONFIG_CMD_NAND |
| 77 | #define CONFIG_ENV_IS_IN_NAND |
| 78 | #define CONFIG_ENV_SECT_SIZE 0x20000 |
| 79 | #else |
| 80 | #define CONFIG_ENV_IS_NOWHERE |
| 81 | #endif |
| 82 | #define CONFIG_ENV_SIZE 0x20000 |
| 83 | #define CONFIG_ENV_OFFSET 0x80000 |
| 84 | |
| 85 | /* |
| 86 | * Default environment variables |
| 87 | */ |
| 88 | #define CONFIG_BOOTCOMMAND \ |
| 89 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 90 | "ubi part root; " \ |
| 91 | "ubifsmount root; " \ |
| 92 | "ubifsload 0x800000 ${kernel}; " \ |
| 93 | "ubifsload 0x1100000 ${initrd}; " \ |
| 94 | "bootm 0x800000 0x1100000" |
| 95 | |
| 96 | #define CONFIG_MTDPARTS \ |
| 97 | "mtdparts=orion_nand:" \ |
| 98 | "0x80000@0x0(uboot)," \ |
| 99 | "0x20000@0x80000(uboot_env)," \ |
| 100 | "-@0xa0000(root)\0" |
| 101 | |
| 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" |
| 109 | |
| 110 | /* |
| 111 | * Ethernet driver configuration |
| 112 | */ |
| 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 */ |
| 118 | |
| 119 | /* |
| 120 | * SATA driver configuration |
| 121 | */ |
| 122 | #ifdef CONFIG_CMD_IDE |
| 123 | #define __io |
| 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 */ |
| 131 | |
| 132 | /* |
| 133 | * RTC driver configuration |
| 134 | */ |
| 135 | #ifdef CONFIG_CMD_DATE |
| 136 | #define CONFIG_RTC_MV |
| 137 | #endif /* CONFIG_CMD_DATE */ |
| 138 | |
| 139 | /* |
| 140 | * File system |
| 141 | */ |
| 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 |
| 151 | |
| 152 | #endif /* _CONFIG_IB62x0_H */ |