xref: /openbmc/u-boot/include/configs/gplugd.h (revision d7869b2183d2b786e5410b97a5a6b2e630e7825e)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
226749582SAjay Bhargav /*
326749582SAjay Bhargav  * (C) Copyright 2011
426749582SAjay Bhargav  * eInfochips Ltd. <www.einfochips.com>
5c7c47ca2SAjay Bhargav  * Written-by: Ajay Bhargav <contact@8051projects.net>
626749582SAjay Bhargav  *
726749582SAjay Bhargav  * Based on Aspenite:
826749582SAjay Bhargav  * (C) Copyright 2010
926749582SAjay Bhargav  * Marvell Semiconductor <www.marvell.com>
1026749582SAjay Bhargav  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
1126749582SAjay Bhargav  * Contributor: Mahavir Jain <mjain@marvell.com>
1226749582SAjay Bhargav  */
1326749582SAjay Bhargav 
1426749582SAjay Bhargav #ifndef __CONFIG_GPLUGD_H
1526749582SAjay Bhargav #define __CONFIG_GPLUGD_H
1626749582SAjay Bhargav 
1726749582SAjay Bhargav /*
1826749582SAjay Bhargav  * High Level Configuration Options
1926749582SAjay Bhargav  */
2026749582SAjay Bhargav #define CONFIG_SHEEVA_88SV331xV5	1	/* CPU Core subversion */
2126749582SAjay Bhargav #define CONFIG_ARMADA100		1	/* SOC Family Name */
2226749582SAjay Bhargav #define CONFIG_ARMADA168		1	/* SOC Used on this Board */
2392a1babfSTom Rini #define CONFIG_MACH_TYPE		MACH_TYPE_GPLUGD /* Machine type */
2426749582SAjay Bhargav #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
2526749582SAjay Bhargav 
2626749582SAjay Bhargav /*
2726749582SAjay Bhargav  * There is no internal RAM in ARMADA100, using DRAM
2826749582SAjay Bhargav  * TBD: dcache to be used for this
2926749582SAjay Bhargav  */
3026749582SAjay Bhargav #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE - 0x00200000)
3126749582SAjay Bhargav 
3226749582SAjay Bhargav /*
3326749582SAjay Bhargav  * Commands configuration
3426749582SAjay Bhargav  */
35aa0ecfebSAjay Bhargav 
36aa0ecfebSAjay Bhargav /* Disable DCACHE */
37aa0ecfebSAjay Bhargav #define CONFIG_SYS_DCACHE_OFF
38aa0ecfebSAjay Bhargav 
39aa0ecfebSAjay Bhargav /* Network configuration */
40aa0ecfebSAjay Bhargav #ifdef CONFIG_CMD_NET
41aa0ecfebSAjay Bhargav #define CONFIG_ARMADA100_FEC
42aa0ecfebSAjay Bhargav 
43aa0ecfebSAjay Bhargav /* DHCP Support */
44aa0ecfebSAjay Bhargav #define CONFIG_BOOTP_DHCP_REQUEST_DELAY		50000
45aa0ecfebSAjay Bhargav #endif /* CONFIG_CMD_NET */
4626749582SAjay Bhargav 
4747e75d72SAjay Bhargav /* GPIO Support */
4847e75d72SAjay Bhargav #define CONFIG_MARVELL_GPIO
4947e75d72SAjay Bhargav 
5047e75d72SAjay Bhargav /* PHY configuration */
5147e75d72SAjay Bhargav #define CONFIG_RESET_PHY_R
5247e75d72SAjay Bhargav /* 88E3015 register definition */
5347e75d72SAjay Bhargav #define PHY_LED_PAR_SEL_REG		22
5447e75d72SAjay Bhargav #define PHY_LED_MAN_REG			25
5547e75d72SAjay Bhargav #define PHY_LED_VAL			0x5b	/* LINK LED1, ACT LED2 */
5647e75d72SAjay Bhargav /* GPIO Configuration for PHY */
5747e75d72SAjay Bhargav #define CONFIG_SYS_GPIO_PHY_RST		104	/* GPIO104 */
5847e75d72SAjay Bhargav 
592f83cd57SAjay Bhargav /* Flash Support */
602f83cd57SAjay Bhargav 
6126749582SAjay Bhargav /*
6226749582SAjay Bhargav  * mv-common.h should be defined after CMD configs since it used them
6326749582SAjay Bhargav  * to enable certain macros
6426749582SAjay Bhargav  */
6526749582SAjay Bhargav #include "mv-common.h"
6626749582SAjay Bhargav 
6726749582SAjay Bhargav #ifdef CONFIG_SYS_NS16550_COM1
6826749582SAjay Bhargav #undef CONFIG_SYS_NS16550_COM1
6926749582SAjay Bhargav #endif /* CONFIG_SYS_NS16550_COM1 */
7026749582SAjay Bhargav 
7126749582SAjay Bhargav #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE
7226749582SAjay Bhargav 
7326749582SAjay Bhargav /*
7426749582SAjay Bhargav  * Environment variables configurations
7526749582SAjay Bhargav  */
76b5de038fSAjay Bhargav #define CONFIG_ENV_SIZE			0x4000
77b5de038fSAjay Bhargav 
78099cb1eeSAjay Bhargav #ifdef CONFIG_CMD_USB
79099cb1eeSAjay Bhargav #define CONFIG_USB_EHCI_ARMADA100
80099cb1eeSAjay Bhargav #define CONFIG_EHCI_IS_TDI
81099cb1eeSAjay Bhargav #endif /* CONFIG_CMD_USB */
82099cb1eeSAjay Bhargav 
8326749582SAjay Bhargav #endif	/* __CONFIG_GPLUGD_H */
84