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 | */ |
Simon Glass | 167ad90 | 2016-09-12 23:18:30 -0600 | [diff] [blame] | 15 | #if defined(CONFIG_USBTTY) |
Vipin KUMAR | 0c93dec | 2012-05-07 13:06:46 +0530 | [diff] [blame] | 16 | #define CONFIG_SPEAR_USBTTY |
| 17 | #endif |
| 18 | |
Simon Glass | 167ad90 | 2016-09-12 23:18:30 -0600 | [diff] [blame] | 19 | #if defined(CONFIG_NAND) |
Vipin KUMAR | 0c93dec | 2012-05-07 13:06:46 +0530 | [diff] [blame] | 20 | #define CONFIG_ENV_IS_IN_NAND |
| 21 | #else |
| 22 | #define CONFIG_ENV_IS_IN_FLASH |
| 23 | #endif |
| 24 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 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 | |
Vipin KUMAR | f1bd24e | 2012-05-22 00:15:55 +0000 | [diff] [blame] | 33 | /* NAND flash configuration */ |
| 34 | #define CONFIG_SYS_FSMC_NAND_SP |
| 35 | #define CONFIG_SYS_FSMC_NAND_8BIT |
Amit Virdi | 9ee8d63 | 2012-05-07 13:07:01 +0530 | [diff] [blame] | 36 | #define CONFIG_SYS_NAND_BASE 0xD2000000 |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 37 | |
Alexey Brodkin | 9a0b130 | 2014-01-22 20:54:06 +0400 | [diff] [blame] | 38 | /* Ethernet PHY configuration */ |
| 39 | #define CONFIG_PHY_NATSEMI |
| 40 | |
Vipin KUMAR | c54105b | 2012-05-07 13:06:48 +0530 | [diff] [blame] | 41 | /* Environment Settings */ |
| 42 | #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY |
| 43 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 44 | #endif /* __CONFIG_H */ |