David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2012 |
| 3 | * David Purdy <david.c.purdy@gmail.com> |
| 4 | * |
| 5 | * Based on Kirkwood support: |
| 6 | * (C) Copyright 2009 |
| 7 | * Marvell Semiconductor <www.marvell.com> |
| 8 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 9 | * |
| 10 | * See file CREDITS for list of people who contributed to this |
| 11 | * project. |
| 12 | * |
| 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License as |
| 15 | * published by the Free Software Foundation; either version 2 of |
| 16 | * the License, or (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program; If not, see <http://www.gnu.org/licenses/>. |
| 25 | */ |
| 26 | |
| 27 | #ifndef _CONFIG_POGO_E02_H |
| 28 | #define _CONFIG_POGO_E02_H |
| 29 | |
| 30 | /* |
| 31 | * Machine type definition and ID |
| 32 | */ |
| 33 | #define MACH_TYPE_POGO_E02 3542 |
| 34 | #define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02 |
| 35 | #define CONFIG_IDENT_STRING "\nPogo E02" |
| 36 | |
| 37 | /* |
| 38 | * High Level Configuration Options (easy to change) |
| 39 | */ |
| 40 | #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */ |
| 41 | #define CONFIG_KIRKWOOD /* SOC Family Name */ |
| 42 | #define CONFIG_KW88F6281 /* SOC Name */ |
| 43 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
| 44 | |
| 45 | /* |
| 46 | * Commands configuration |
| 47 | */ |
| 48 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 49 | #define CONFIG_SYS_MVFS |
| 50 | #include <config_cmd_default.h> |
| 51 | #define CONFIG_CMD_DHCP |
| 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 | /* Remove or override few declarations from mv-common.h */ |
| 65 | #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */ |
| 66 | #define CONFIG_SYS_PROMPT "PogoE02> " |
| 67 | |
| 68 | /* |
| 69 | * Environment variables configurations |
| 70 | */ |
| 71 | #ifdef CONFIG_CMD_NAND |
| 72 | #define CONFIG_ENV_IS_IN_NAND |
| 73 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 74 | #else |
| 75 | #define CONFIG_ENV_IS_NOWHERE |
| 76 | #endif |
| 77 | |
| 78 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
| 79 | #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ |
| 80 | |
| 81 | /* |
| 82 | * Default environment variables |
| 83 | */ |
| 84 | #define CONFIG_BOOTCOMMAND \ |
| 85 | "setenv bootargs $(bootargs_console); " \ |
| 86 | "run bootcmd_usb; " \ |
| 87 | "bootm 0x00800000 0x01100000" |
| 88 | |
| 89 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 90 | "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \ |
| 91 | "32M(rootfs),-(data)\0"\ |
| 92 | "mtdids=nand0=orion_nand\0"\ |
| 93 | "bootargs_console=console=ttyS0,115200\0" \ |
| 94 | "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \ |
| 95 | "ext2load usb 0:1 0x01100000 /uInitrd\0" |
| 96 | |
| 97 | /* |
| 98 | * Ethernet Driver configuration |
| 99 | */ |
| 100 | #ifdef CONFIG_CMD_NET |
| 101 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 102 | #define CONFIG_PHY_BASE_ADR 0 |
| 103 | #endif /* CONFIG_CMD_NET */ |
| 104 | |
| 105 | /* |
| 106 | * File system |
| 107 | */ |
| 108 | #define CONFIG_CMD_EXT2 |
| 109 | #define CONFIG_CMD_FAT |
| 110 | #define CONFIG_CMD_JFFS2 |
| 111 | #define CONFIG_CMD_UBI |
| 112 | #define CONFIG_CMD_UBIFS |
| 113 | #define CONFIG_RBTREE |
| 114 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 115 | #define CONFIG_MTD_PARTITIONS |
| 116 | #define CONFIG_CMD_MTDPARTS |
| 117 | #define CONFIG_LZO |
| 118 | |
| 119 | #endif /* _CONFIG_POGO_E02_H */ |