| 1 | /* |
| 2 | * (C) Copyright 2009-2012 |
| 3 | * Wojciech Dubowik <wojciech.dubowik@neratec.com> |
| 4 | * Luka Perkov <uboot@lukaperkov.net> |
| 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_ICONNECT_H |
| 24 | #define _CONFIG_ICONNECT_H |
| 25 | |
| 26 | /* |
| 27 | * Version number information |
| 28 | */ |
| 29 | #define CONFIG_IDENT_STRING " Iomega iConnect Wireless" |
| 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 | #define CONFIG_KIRKWOOD_EGIGA_INIT /* Enable GbePort0/1 for kernel */ |
| 39 | |
| 40 | /* |
| 41 | * Machine type |
| 42 | */ |
| 43 | #define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT |
| 44 | |
| 45 | |
| 46 | /* |
| 47 | * Commands configuration |
| 48 | */ |
| 49 | #define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */ |
| 50 | #define CONFIG_SYS_MVFS |
| 51 | #include <config_cmd_default.h> |
| 52 | #define CONFIG_CMD_ENV |
| 53 | #define CONFIG_CMD_MII |
| 54 | #define CONFIG_CMD_NAND |
| 55 | #define CONFIG_CMD_PING |
| 56 | #define CONFIG_CMD_USB |
| 57 | |
| 58 | /* |
| 59 | * mv-common.h should be defined after CMD configs since it used them |
| 60 | * to enable certain macros |
| 61 | */ |
| 62 | #include "mv-common.h" |
| 63 | |
| 64 | #undef CONFIG_SYS_PROMPT |
| 65 | #define CONFIG_SYS_PROMPT "iconnect => " |
| 66 | |
| 67 | /* |
| 68 | * Environment variables configuration |
| 69 | */ |
| 70 | #ifdef CONFIG_CMD_NAND |
| 71 | #define CONFIG_ENV_IS_IN_NAND |
| 72 | #define CONFIG_ENV_SECT_SIZE 0x20000 |
| 73 | #else |
| 74 | #define CONFIG_ENV_IS_NOWHERE |
| 75 | #endif |
| 76 | #define CONFIG_ENV_SIZE 0x20000 |
| 77 | #define CONFIG_ENV_OFFSET 0xc0000 |
| 78 | |
| 79 | /* |
| 80 | * Default environment variables |
| 81 | */ |
| 82 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 83 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 84 | "${x_bootcmd_usb}; bootm 0x6400000;" |
| 85 | |
| 86 | #define CONFIG_MTDPARTS "orion_nand:1M(u-boot)," \ |
| 87 | "3M@1M(kernel),32M@4M(rootfs),475M@36M(data)\0" |
| 88 | |
| 89 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
| 90 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \ |
| 91 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \ |
| 92 | "x_bootcmd_usb=usb start\0" \ |
| 93 | "x_bootargs_root=root=/dev/mtdblock2 rw rootfstype=jffs2\0" |
| 94 | |
| 95 | /* |
| 96 | * Ethernet driver configuration |
| 97 | */ |
| 98 | #ifdef CONFIG_CMD_NET |
| 99 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 100 | #define CONFIG_PHY_BASE_ADR 11 |
| 101 | #endif /* CONFIG_CMD_NET */ |
| 102 | |
| 103 | /* |
| 104 | * SATA driver configuration |
| 105 | */ |
| 106 | #ifdef CONFIG_CMD_IDE |
| 107 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 108 | #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET |
| 109 | #endif /* CONFIG_CMD_IDE */ |
| 110 | |
| 111 | /* |
| 112 | * File system |
| 113 | */ |
| 114 | #define CONFIG_CMD_EXT2 |
| 115 | #define CONFIG_CMD_FAT |
| 116 | #define CONFIG_CMD_JFFS2 |
| 117 | #define CONFIG_CMD_UBI |
| 118 | #define CONFIG_CMD_UBIFS |
| 119 | #define CONFIG_RBTREE |
| 120 | #define CONFIG_MTD_DEVICE |
| 121 | #define CONFIG_MTD_PARTITIONS |
| 122 | #define CONFIG_CMD_MTDPARTS |
| 123 | |
| 124 | #endif /* _CONFIG_ICONNECT_H */ |
| 125 | |