Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Marvell Semiconductor <www.marvell.com> |
| 4 | * Written-by: Siddarth Gore <gores@marvell.com> |
| 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, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
| 23 | */ |
| 24 | |
| 25 | #ifndef _CONFIG_GURUPLUG_H |
| 26 | #define _CONFIG_GURUPLUG_H |
| 27 | |
| 28 | /* |
| 29 | * Version number information |
| 30 | */ |
| 31 | #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug" |
| 32 | |
| 33 | /* |
| 34 | * High Level Configuration Options (easy to change) |
| 35 | */ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 36 | #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ |
| 37 | #define CONFIG_KIRKWOOD 1 /* SOC Family Name */ |
| 38 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 39 | #define CONFIG_MACH_GURUPLUG /* Machine type */ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 40 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 41 | |
| 42 | /* |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 43 | * Commands configuration |
| 44 | */ |
| 45 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 46 | #include <config_cmd_default.h> |
| 47 | #define CONFIG_CMD_DHCP |
| 48 | #define CONFIG_CMD_ENV |
| 49 | #define CONFIG_CMD_FAT |
| 50 | #define CONFIG_CMD_NAND |
| 51 | #define CONFIG_CMD_PING |
| 52 | #define CONFIG_CMD_USB |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 53 | #define CONFIG_CMD_IDE |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 54 | |
| 55 | /* |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 56 | * mv-common.h should be defined after CMD configs since it used them |
| 57 | * to enable certain macros |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 58 | */ |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 59 | #include "mv-common.h" |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 60 | |
| 61 | /* |
| 62 | * Environment variables configurations |
| 63 | */ |
| 64 | #ifdef CONFIG_CMD_NAND |
| 65 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 66 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 67 | #else |
| 68 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 69 | #endif |
| 70 | /* |
| 71 | * max 4k env size is enough, but in case of nand |
| 72 | * it has to be rounded to sector size |
| 73 | */ |
| 74 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
Gray Remlin | e678a02 | 2010-10-28 19:02:12 +0530 | [diff] [blame] | 75 | #define CONFIG_ENV_ADDR 0x60000 |
| 76 | #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 77 | |
| 78 | /* |
| 79 | * Default environment variables |
| 80 | */ |
| 81 | #define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \ |
| 82 | "${x_bootcmd_ethernet}; setenv ethact egiga1; " \ |
| 83 | "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\ |
| 84 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 85 | "bootm 0x6400000;" |
| 86 | |
| 87 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 88 | "x_bootcmd_ethernet=ping 192.168.2.1\0" \ |
| 89 | "x_bootcmd_usb=usb start\0" \ |
| 90 | "x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \ |
| 91 | "x_bootargs=console=ttyS0,115200\0" \ |
| 92 | "x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0" |
| 93 | |
| 94 | /* |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 95 | * Ethernet Driver configuration |
| 96 | */ |
| 97 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | e91d7d3 | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 98 | #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 99 | #define CONFIG_PHY_BASE_ADR 0 |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 100 | #endif /* CONFIG_CMD_NET */ |
| 101 | |
| 102 | /* |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 103 | * SATA Driver configuration |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 104 | */ |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 105 | #ifdef CONFIG_MVSATA_IDE |
| 106 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 107 | #endif /*CONFIG_MVSATA_IDE*/ |
Siddarth Gore | 11b10b0 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 108 | |
| 109 | #define CONFIG_SYS_ALT_MEMTEST |
| 110 | |
| 111 | #endif /* _CONFIG_GURUPLUG_H */ |