1 /*
2  * (C) Copyright 2009
3  * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10 
11 /*
12  * High Level Configuration Options
13  * (easy to change)
14  */
15 #if defined(CONFIG_USBTTY)
16 #define CONFIG_SPEAR_USBTTY
17 #endif
18 
19 #if defined(CONFIG_NAND)
20 #define CONFIG_ENV_IS_IN_NAND
21 #else
22 #define CONFIG_ENV_IS_IN_FLASH
23 #endif
24 
25 #include <configs/spear-common.h>
26 
27 /* Serial Configuration (PL011) */
28 #define CONFIG_SYS_SERIAL0			0xD0000000
29 #define CONFIG_SYS_SERIAL1			0xD0080000
30 #define CONFIG_PL01x_PORTS			{ (void *)CONFIG_SYS_SERIAL0, \
31 						(void *)CONFIG_SYS_SERIAL1 }
32 
33 /* NAND flash configuration */
34 #define CONFIG_SYS_FSMC_NAND_SP
35 #define CONFIG_SYS_FSMC_NAND_8BIT
36 #define CONFIG_SYS_NAND_BASE			0xD2000000
37 
38 /* Ethernet PHY configuration */
39 #define CONFIG_PHY_NATSEMI
40 
41 /* Environment Settings */
42 #define CONFIG_EXTRA_ENV_SETTINGS              CONFIG_EXTRA_ENV_USBTTY
43 
44 #endif  /* __CONFIG_H */
45