]>
Commit | Line | Data |
---|---|---|
26749582 AB |
1 | /* |
2 | * (C) Copyright 2011 | |
3 | * eInfochips Ltd. <www.einfochips.com> | |
4 | * Written-by: Ajay Bhargav <[email protected]> | |
5 | * | |
6 | * Based on Aspenite: | |
7 | * (C) Copyright 2010 | |
8 | * Marvell Semiconductor <www.marvell.com> | |
9 | * Written-by: Prafulla Wadaskar <[email protected]> | |
10 | * Contributor: Mahavir Jain <[email protected]> | |
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 | /* | |
35 | * Version number information | |
36 | */ | |
37 | #define CONFIG_IDENT_STRING "\nMarvell-gplugD" | |
38 | ||
39 | /* | |
40 | * High Level Configuration Options | |
41 | */ | |
42 | #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */ | |
43 | #define CONFIG_ARMADA100 1 /* SOC Family Name */ | |
44 | #define CONFIG_ARMADA168 1 /* SOC Used on this Board */ | |
45 | #define CONFIG_MACH_SHEEVAD /* Machine type */ | |
46 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ | |
47 | ||
48 | #define CONFIG_SYS_TEXT_BASE 0x00f00000 | |
49 | ||
50 | /* | |
51 | * There is no internal RAM in ARMADA100, using DRAM | |
52 | * TBD: dcache to be used for this | |
53 | */ | |
54 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000) | |
55 | #define CONFIG_NR_DRAM_BANKS_MAX 2 | |
56 | ||
57 | /* | |
58 | * Commands configuration | |
59 | */ | |
60 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ | |
61 | #include <config_cmd_default.h> | |
62 | #define CONFIG_CMD_I2C | |
63 | #define CONFIG_CMD_AUTOSCRIPT | |
64 | #undef CONFIG_CMD_FPGA | |
aa0ecfeb AB |
65 | |
66 | /* Disable DCACHE */ | |
67 | #define CONFIG_SYS_DCACHE_OFF | |
68 | ||
69 | /* Network configuration */ | |
70 | #ifdef CONFIG_CMD_NET | |
71 | #define CONFIG_CMD_PING | |
aa0ecfeb AB |
72 | #define CONFIG_ARMADA100_FEC |
73 | ||
74 | /* DHCP Support */ | |
75 | #define CONFIG_CMD_DHCP | |
76 | #define CONFIG_BOOTP_DHCP_REQUEST_DELAY 50000 | |
77 | #endif /* CONFIG_CMD_NET */ | |
26749582 | 78 | |
47e75d72 AB |
79 | /* GPIO Support */ |
80 | #define CONFIG_MARVELL_GPIO | |
81 | ||
82 | /* PHY configuration */ | |
83 | #define CONFIG_MII | |
84 | #define CONFIG_CMD_MII | |
85 | #define CONFIG_RESET_PHY_R | |
86 | /* 88E3015 register definition */ | |
87 | #define PHY_LED_PAR_SEL_REG 22 | |
88 | #define PHY_LED_MAN_REG 25 | |
89 | #define PHY_LED_VAL 0x5b /* LINK LED1, ACT LED2 */ | |
90 | /* GPIO Configuration for PHY */ | |
91 | #define CONFIG_SYS_GPIO_PHY_RST 104 /* GPIO104 */ | |
92 | ||
daa4b2f7 AB |
93 | /* SPI Support */ |
94 | #define CONFIG_ARMADA100_SPI | |
95 | #define CONFIG_ENV_SPI_CS 110 | |
96 | #define CONFIG_SYS_SSP_PORT 2 | |
97 | ||
2f83cd57 AB |
98 | /* Flash Support */ |
99 | #define CONFIG_CMD_SF | |
100 | #define CONFIG_SPI_FLASH_ATMEL | |
101 | ||
26749582 AB |
102 | /* |
103 | * mv-common.h should be defined after CMD configs since it used them | |
104 | * to enable certain macros | |
105 | */ | |
106 | #include "mv-common.h" | |
107 | #undef CONFIG_ARCH_MISC_INIT | |
108 | ||
109 | #ifdef CONFIG_SYS_NS16550_COM1 | |
110 | #undef CONFIG_SYS_NS16550_COM1 | |
111 | #endif /* CONFIG_SYS_NS16550_COM1 */ | |
112 | ||
113 | #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE | |
114 | ||
115 | /* | |
116 | * Environment variables configurations | |
117 | */ | |
b5de038f AB |
118 | #define CONFIG_ENV_IS_IN_SPI_FLASH |
119 | #define CONFIG_ENV_SECT_SIZE 0x4000 | |
120 | #define CONFIG_ENV_SIZE 0x4000 | |
121 | #define CONFIG_ENV_OFFSET 0x07C000 | |
122 | ||
123 | #define CONFIG_CMD_ASKENV | |
124 | #define CONFIG_CMD_EDITENV | |
125 | #define CONFIG_CMD_SAVEENV | |
26749582 AB |
126 | |
127 | #endif /* __CONFIG_GPLUGD_H */ |