Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011 |
| 3 | * eInfochips Ltd. <www.einfochips.com> |
| 4 | * Written-by: Ajay Bhargav <ajay.bhargav@einfochips.com> |
| 5 | * |
| 6 | * Based on Aspenite: |
| 7 | * (C) Copyright 2010 |
| 8 | * Marvell Semiconductor <www.marvell.com> |
| 9 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 10 | * Contributor: Mahavir Jain <mjain@marvell.com> |
| 11 | * |
| 12 | * See file CREDITS for list of people who contributed to this |
| 13 | * project. |
| 14 | * |
| 15 | * This program is free software; you can redistribute it and/or |
| 16 | * modify it under the terms of the GNU General Public License as |
| 17 | * published by the Free Software Foundation; either version 2 of |
| 18 | * the License, or (at your option) any later version. |
| 19 | * |
| 20 | * This program is distributed in the hope that it will be useful, |
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | * GNU General Public License for more details. |
| 24 | * |
| 25 | * You should have received a copy of the GNU General Public License |
| 26 | * along with this program; if not, write to the Free Software |
| 27 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 28 | * MA 02110-1301 USA |
| 29 | */ |
| 30 | |
| 31 | #ifndef __CONFIG_GPLUGD_H |
| 32 | #define __CONFIG_GPLUGD_H |
| 33 | |
| 34 | /* |
Ajay Bhargav | d88b2e9 | 2011-10-31 17:27:46 +0530 | [diff] [blame] | 35 | * FIXME: fix for error caused due to recent update to mach-types.h |
| 36 | */ |
| 37 | #include <asm/mach-types.h> |
| 38 | #ifdef MACH_TYPE_SHEEVAD |
| 39 | #error "MACH_TYPE_SHEEVAD has been defined properly, please remove this." |
| 40 | #else |
| 41 | #define MACH_TYPE_SHEEVAD 2625 |
| 42 | #endif |
| 43 | |
| 44 | /* |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 45 | * Version number information |
| 46 | */ |
| 47 | #define CONFIG_IDENT_STRING "\nMarvell-gplugD" |
| 48 | |
| 49 | /* |
| 50 | * High Level Configuration Options |
| 51 | */ |
| 52 | #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */ |
| 53 | #define CONFIG_ARMADA100 1 /* SOC Family Name */ |
| 54 | #define CONFIG_ARMADA168 1 /* SOC Used on this Board */ |
Ajay Bhargav | d88b2e9 | 2011-10-31 17:27:46 +0530 | [diff] [blame] | 55 | #define CONFIG_MACH_TYPE MACH_TYPE_SHEEVAD /* Machine type */ |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 56 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
| 57 | |
| 58 | #define CONFIG_SYS_TEXT_BASE 0x00f00000 |
| 59 | |
| 60 | /* |
| 61 | * There is no internal RAM in ARMADA100, using DRAM |
| 62 | * TBD: dcache to be used for this |
| 63 | */ |
| 64 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000) |
| 65 | #define CONFIG_NR_DRAM_BANKS_MAX 2 |
| 66 | |
| 67 | /* |
| 68 | * Commands configuration |
| 69 | */ |
| 70 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 71 | #include <config_cmd_default.h> |
| 72 | #define CONFIG_CMD_I2C |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 73 | #undef CONFIG_CMD_FPGA |
Ajay Bhargav | fc49f27 | 2012-02-13 03:27:44 +0000 | [diff] [blame] | 74 | #define CONFIG_CMD_USB |
Ajay Bhargav | 320f54b | 2012-02-13 03:30:38 +0000 | [diff] [blame] | 75 | #define CONFIG_CMD_EXT2 |
| 76 | #define CONFIG_CMD_FAT |
Ajay Bhargav | 8ed2bcb | 2011-09-13 22:22:04 +0530 | [diff] [blame] | 77 | |
| 78 | /* Disable DCACHE */ |
| 79 | #define CONFIG_SYS_DCACHE_OFF |
| 80 | |
| 81 | /* Network configuration */ |
| 82 | #ifdef CONFIG_CMD_NET |
| 83 | #define CONFIG_CMD_PING |
Ajay Bhargav | 8ed2bcb | 2011-09-13 22:22:04 +0530 | [diff] [blame] | 84 | #define CONFIG_ARMADA100_FEC |
| 85 | |
| 86 | /* DHCP Support */ |
| 87 | #define CONFIG_CMD_DHCP |
| 88 | #define CONFIG_BOOTP_DHCP_REQUEST_DELAY 50000 |
| 89 | #endif /* CONFIG_CMD_NET */ |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 90 | |
Ajay Bhargav | 8246ae0 | 2011-09-13 22:22:13 +0530 | [diff] [blame] | 91 | /* GPIO Support */ |
| 92 | #define CONFIG_MARVELL_GPIO |
| 93 | |
| 94 | /* PHY configuration */ |
| 95 | #define CONFIG_MII |
| 96 | #define CONFIG_CMD_MII |
| 97 | #define CONFIG_RESET_PHY_R |
| 98 | /* 88E3015 register definition */ |
| 99 | #define PHY_LED_PAR_SEL_REG 22 |
| 100 | #define PHY_LED_MAN_REG 25 |
| 101 | #define PHY_LED_VAL 0x5b /* LINK LED1, ACT LED2 */ |
| 102 | /* GPIO Configuration for PHY */ |
| 103 | #define CONFIG_SYS_GPIO_PHY_RST 104 /* GPIO104 */ |
| 104 | |
Ajay Bhargav | fc960ab | 2011-10-03 14:00:57 +0530 | [diff] [blame] | 105 | /* SPI Support */ |
| 106 | #define CONFIG_ARMADA100_SPI |
| 107 | #define CONFIG_ENV_SPI_CS 110 |
| 108 | #define CONFIG_SYS_SSP_PORT 2 |
| 109 | |
Ajay Bhargav | 8bddd84 | 2011-10-03 14:00:58 +0530 | [diff] [blame] | 110 | /* Flash Support */ |
| 111 | #define CONFIG_CMD_SF |
| 112 | #define CONFIG_SPI_FLASH_ATMEL |
| 113 | |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 114 | /* |
| 115 | * mv-common.h should be defined after CMD configs since it used them |
| 116 | * to enable certain macros |
| 117 | */ |
| 118 | #include "mv-common.h" |
| 119 | #undef CONFIG_ARCH_MISC_INIT |
| 120 | |
| 121 | #ifdef CONFIG_SYS_NS16550_COM1 |
| 122 | #undef CONFIG_SYS_NS16550_COM1 |
| 123 | #endif /* CONFIG_SYS_NS16550_COM1 */ |
| 124 | |
| 125 | #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE |
| 126 | |
| 127 | /* |
| 128 | * Environment variables configurations |
| 129 | */ |
Ajay Bhargav | cc6880a | 2011-10-03 14:00:58 +0530 | [diff] [blame] | 130 | #define CONFIG_ENV_IS_IN_SPI_FLASH |
| 131 | #define CONFIG_ENV_SECT_SIZE 0x4000 |
| 132 | #define CONFIG_ENV_SIZE 0x4000 |
| 133 | #define CONFIG_ENV_OFFSET 0x07C000 |
| 134 | |
| 135 | #define CONFIG_CMD_ASKENV |
| 136 | #define CONFIG_CMD_EDITENV |
| 137 | #define CONFIG_CMD_SAVEENV |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 138 | |
Ajay Bhargav | fc49f27 | 2012-02-13 03:27:44 +0000 | [diff] [blame] | 139 | #ifdef CONFIG_CMD_USB |
| 140 | #define CONFIG_USB_EHCI |
| 141 | #define CONFIG_USB_EHCI_ARMADA100 |
| 142 | #define CONFIG_EHCI_IS_TDI |
| 143 | #define CONFIG_USB_STORAGE |
| 144 | #endif /* CONFIG_CMD_USB */ |
| 145 | |
| 146 | #define CONFIG_DOS_PARTITION |
| 147 | #define CONFIG_ISO_PARTITION |
| 148 | #define CONFIG_SUPPORT_VFAT |
| 149 | |
Ajay Bhargav | 3405e32 | 2011-08-04 21:26:02 +0530 | [diff] [blame] | 150 | #endif /* __CONFIG_GPLUGD_H */ |