xref: /openbmc/u-boot/include/configs/gplugd.h (revision 901d0ea1)
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  * SPDX-License-Identifier:	GPL-2.0+
13  */
14 
15 #ifndef __CONFIG_GPLUGD_H
16 #define __CONFIG_GPLUGD_H
17 
18 /*
19  * FIXME: fix for error caused due to recent update to mach-types.h
20  */
21 #include <asm/mach-types.h>
22 #ifdef MACH_TYPE_SHEEVAD
23 #error "MACH_TYPE_SHEEVAD has been defined properly, please remove this."
24 #else
25 #define MACH_TYPE_SHEEVAD	2625
26 #endif
27 
28 /*
29  * Version number information
30  */
31 #define CONFIG_IDENT_STRING	"\nMarvell-gplugD"
32 
33 /*
34  * High Level Configuration Options
35  */
36 #define CONFIG_SHEEVA_88SV331xV5	1	/* CPU Core subversion */
37 #define CONFIG_ARMADA100		1	/* SOC Family Name */
38 #define CONFIG_ARMADA168		1	/* SOC Used on this Board */
39 #define CONFIG_MACH_TYPE		MACH_TYPE_SHEEVAD /* Machine type */
40 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
41 
42 #define	CONFIG_SYS_TEXT_BASE	0x00f00000
43 
44 /*
45  * There is no internal RAM in ARMADA100, using DRAM
46  * TBD: dcache to be used for this
47  */
48 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE - 0x00200000)
49 #define CONFIG_NR_DRAM_BANKS_MAX	2
50 
51 /*
52  * Commands configuration
53  */
54 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
55 #include <config_cmd_default.h>
56 #define CONFIG_CMD_I2C
57 #undef CONFIG_CMD_FPGA
58 #define CONFIG_CMD_USB
59 #define CONFIG_CMD_EXT2
60 #define CONFIG_CMD_FAT
61 
62 /* Disable DCACHE */
63 #define CONFIG_SYS_DCACHE_OFF
64 
65 /* Network configuration */
66 #ifdef CONFIG_CMD_NET
67 #define CONFIG_CMD_PING
68 #define CONFIG_ARMADA100_FEC
69 
70 /* DHCP Support */
71 #define CONFIG_CMD_DHCP
72 #define CONFIG_BOOTP_DHCP_REQUEST_DELAY		50000
73 #endif /* CONFIG_CMD_NET */
74 
75 /* GPIO Support */
76 #define CONFIG_MARVELL_GPIO
77 
78 /* PHY configuration */
79 #define CONFIG_MII
80 #define CONFIG_CMD_MII
81 #define CONFIG_RESET_PHY_R
82 /* 88E3015 register definition */
83 #define PHY_LED_PAR_SEL_REG		22
84 #define PHY_LED_MAN_REG			25
85 #define PHY_LED_VAL			0x5b	/* LINK LED1, ACT LED2 */
86 /* GPIO Configuration for PHY */
87 #define CONFIG_SYS_GPIO_PHY_RST		104	/* GPIO104 */
88 
89 /* SPI Support */
90 #define CONFIG_ARMADA100_SPI
91 #define CONFIG_ENV_SPI_CS		110
92 #define CONFIG_SYS_SSP_PORT		2
93 
94 /* Flash Support */
95 #define CONFIG_CMD_SF
96 #define CONFIG_SPI_FLASH_ATMEL
97 
98 /*
99  * mv-common.h should be defined after CMD configs since it used them
100  * to enable certain macros
101  */
102 #include "mv-common.h"
103 #undef CONFIG_ARCH_MISC_INIT
104 
105 #ifdef CONFIG_SYS_NS16550_COM1
106 #undef CONFIG_SYS_NS16550_COM1
107 #endif /* CONFIG_SYS_NS16550_COM1 */
108 
109 #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE
110 
111 /*
112  * Environment variables configurations
113  */
114 #define CONFIG_ENV_IS_IN_SPI_FLASH
115 #define CONFIG_ENV_SECT_SIZE		0x4000
116 #define CONFIG_ENV_SIZE			0x4000
117 #define CONFIG_ENV_OFFSET		0x07C000
118 
119 #define CONFIG_CMD_ASKENV
120 #define CONFIG_CMD_EDITENV
121 #define CONFIG_CMD_SAVEENV
122 
123 #ifdef CONFIG_CMD_USB
124 #define CONFIG_USB_EHCI
125 #define CONFIG_USB_EHCI_ARMADA100
126 #define CONFIG_EHCI_IS_TDI
127 #define CONFIG_USB_STORAGE
128 #endif /* CONFIG_CMD_USB */
129 
130 #define CONFIG_DOS_PARTITION
131 #define CONFIG_ISO_PARTITION
132 #define CONFIG_SUPPORT_VFAT
133 
134 #endif	/* __CONFIG_GPLUGD_H */
135