Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | /* |
| 12 | * High Level Configuration Options |
| 13 | * (easy to change) |
| 14 | */ |
Amit Virdi | 870d11e | 2012-05-07 13:07:02 +0530 | [diff] [blame] | 15 | #define CONFIG_SPEAR600 |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 16 | |
Vipin KUMAR | 0c93dec | 2012-05-07 13:06:46 +0530 | [diff] [blame] | 17 | #if defined(CONFIG_usbtty) |
| 18 | #define CONFIG_SPEAR_USBTTY |
| 19 | #endif |
| 20 | |
| 21 | #if defined(CONFIG_nand) |
| 22 | #define CONFIG_ENV_IS_IN_NAND |
| 23 | #else |
| 24 | #define CONFIG_ENV_IS_IN_FLASH |
| 25 | #endif |
| 26 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 27 | #include <configs/spear-common.h> |
| 28 | |
| 29 | /* Serial Configuration (PL011) */ |
| 30 | #define CONFIG_SYS_SERIAL0 0xD0000000 |
| 31 | #define CONFIG_SYS_SERIAL1 0xD0080000 |
| 32 | #define CONFIG_PL01x_PORTS { (void *)CONFIG_SYS_SERIAL0, \ |
| 33 | (void *)CONFIG_SYS_SERIAL1 } |
| 34 | |
Vipin KUMAR | f1bd24e | 2012-05-22 00:15:55 +0000 | [diff] [blame] | 35 | /* NAND flash configuration */ |
| 36 | #define CONFIG_SYS_FSMC_NAND_SP |
| 37 | #define CONFIG_SYS_FSMC_NAND_8BIT |
Amit Virdi | 9ee8d63 | 2012-05-07 13:07:01 +0530 | [diff] [blame] | 38 | #define CONFIG_SYS_NAND_BASE 0xD2000000 |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 39 | |
Vipin KUMAR | c54105b | 2012-05-07 13:06:48 +0530 | [diff] [blame] | 40 | /* Environment Settings */ |
| 41 | #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY |
| 42 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 43 | #endif /* __CONFIG_H */ |