xref: /rk3399_rockchip-uboot/include/configs/spear6xx_evb.h (revision bc0bdf4c2296d02802ddfa76f349cbba3a869138)
1f273e5b2SVipin KUMAR /*
2f273e5b2SVipin KUMAR  * (C) Copyright 2009
3f273e5b2SVipin KUMAR  * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
4f273e5b2SVipin KUMAR  *
5f273e5b2SVipin KUMAR  * See file CREDITS for list of people who contributed to this
6f273e5b2SVipin KUMAR  * project.
7f273e5b2SVipin KUMAR  *
8f273e5b2SVipin KUMAR  * This program is free software; you can redistribute it and/or
9f273e5b2SVipin KUMAR  * modify it under the terms of the GNU General Public License as
10f273e5b2SVipin KUMAR  * published by the Free Software Foundation; either version 2 of
11f273e5b2SVipin KUMAR  * the License, or (at your option) any later version.
12f273e5b2SVipin KUMAR  *
13f273e5b2SVipin KUMAR  * This program is distributed in the hope that it will be useful,
14f273e5b2SVipin KUMAR  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15f273e5b2SVipin KUMAR  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16f273e5b2SVipin KUMAR  * GNU General Public License for more details.
17f273e5b2SVipin KUMAR  *
18f273e5b2SVipin KUMAR  * You should have received a copy of the GNU General Public License
19f273e5b2SVipin KUMAR  * along with this program; if not, write to the Free Software
20f273e5b2SVipin KUMAR  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21f273e5b2SVipin KUMAR  * MA 02111-1307 USA
22f273e5b2SVipin KUMAR  */
23f273e5b2SVipin KUMAR 
24f273e5b2SVipin KUMAR #ifndef __CONFIG_H
25f273e5b2SVipin KUMAR #define __CONFIG_H
26f273e5b2SVipin KUMAR 
27f273e5b2SVipin KUMAR /*
28f273e5b2SVipin KUMAR  * High Level Configuration Options
29f273e5b2SVipin KUMAR  * (easy to change)
30f273e5b2SVipin KUMAR  */
31f273e5b2SVipin KUMAR #define CONFIG_SPEAR600				1
32f273e5b2SVipin KUMAR 
33f273e5b2SVipin KUMAR #if defined(CONFIG_usbtty)
34f273e5b2SVipin KUMAR #define CONFIG_SPEAR_USBTTY
35f273e5b2SVipin KUMAR #endif
36f273e5b2SVipin KUMAR 
37f273e5b2SVipin KUMAR #if defined(CONFIG_nand)
38f273e5b2SVipin KUMAR #define CONFIG_ENV_IS_IN_NAND
39f273e5b2SVipin KUMAR #else
40f273e5b2SVipin KUMAR #define CONFIG_ENV_IS_IN_FLASH
41f273e5b2SVipin KUMAR #endif
42f273e5b2SVipin KUMAR 
43f273e5b2SVipin KUMAR #include <configs/spear-common.h>
44f273e5b2SVipin KUMAR 
45f273e5b2SVipin KUMAR /* Serial Configuration (PL011) */
46f273e5b2SVipin KUMAR #define CONFIG_SYS_SERIAL0			0xD0000000
47f273e5b2SVipin KUMAR #define CONFIG_SYS_SERIAL1			0xD0080000
48f273e5b2SVipin KUMAR #define CONFIG_PL01x_PORTS			{ (void *)CONFIG_SYS_SERIAL0, \
49f273e5b2SVipin KUMAR 						(void *)CONFIG_SYS_SERIAL1 }
50f273e5b2SVipin KUMAR 
51f273e5b2SVipin KUMAR /* NAND flash configuration */
52f273e5b2SVipin KUMAR #define CONFIG_SYS_FSMC_NAND_SP
53f273e5b2SVipin KUMAR #define CONFIG_SYS_FSMC_NAND_8BIT
54*bc0bdf4cSAmit Virdi #define CONFIG_SYS_NAND_BASE			0xD2000000
55f273e5b2SVipin KUMAR 
561b7935cdSVipin KUMAR /* Environment Settings */
571b7935cdSVipin KUMAR #define CONFIG_EXTRA_ENV_SETTINGS              CONFIG_EXTRA_ENV_USBTTY
581b7935cdSVipin KUMAR 
59f273e5b2SVipin KUMAR #endif  /* __CONFIG_H */
60