blob: 7745247052e19c24164ed4d4bcb10a46fba22376 [file] [log] [blame]
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05301/*
2 * (C) Copyright 2009
3 * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05306 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
11/*
12 * High Level Configuration Options
13 * (easy to change)
14 */
Simon Glass167ad902016-09-12 23:18:30 -060015#if defined(CONFIG_USBTTY)
Vipin KUMAR0c93dec2012-05-07 13:06:46 +053016#define CONFIG_SPEAR_USBTTY
17#endif
18
Simon Glass167ad902016-09-12 23:18:30 -060019#if defined(CONFIG_NAND)
Vipin KUMAR0c93dec2012-05-07 13:06:46 +053020#define CONFIG_ENV_IS_IN_NAND
21#else
22#define CONFIG_ENV_IS_IN_FLASH
23#endif
24
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053025#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 KUMARf1bd24e2012-05-22 00:15:55 +000033/* NAND flash configuration */
34#define CONFIG_SYS_FSMC_NAND_SP
35#define CONFIG_SYS_FSMC_NAND_8BIT
Amit Virdi9ee8d632012-05-07 13:07:01 +053036#define CONFIG_SYS_NAND_BASE 0xD2000000
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053037
Alexey Brodkin9a0b1302014-01-22 20:54:06 +040038/* Ethernet PHY configuration */
39#define CONFIG_PHY_NATSEMI
40
Vipin KUMARc54105b2012-05-07 13:06:48 +053041/* Environment Settings */
42#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY
43
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053044#endif /* __CONFIG_H */