summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason <r64343@freescale.com>2009-06-08 20:13:39 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:02:18 +0800
commit05a4055d2f48a9941c1b47528dcc015d10e979e5 (patch)
tree095d9817956d54d8f52265e8786c4296997bd095 /include
parent5001b99606655a6f91984afb54625e4af1ed1058 (diff)
downloadu-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.zip
u-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.tar.gz
u-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.tar.bz2
ENGR00113148 Add build option to uboot for different media type
1. Add build option to uboot for different media type 2. fix the spi-nor link error Signed-off-by:Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/imx51.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/configs/imx51.h b/include/configs/imx51.h
index 1808b67..238457e 100644
--- a/include/configs/imx51.h
+++ b/include/configs/imx51.h
@@ -68,10 +68,10 @@
#define CONFIG_MX51_UART 1
#define CONFIG_MX51_UART1 1
+#if defined(BOOT_MEDIA_SPI_NOR)
/*
* SPI Configs
- * */
-/*
+ */
#define CONFIG_FSL_SF 1
#define CONFIG_CMD_SPI
#define CONFIG_CMD_SF
@@ -80,19 +80,17 @@
#define CONFIG_IMX_SPI
#define CONFIG_IMX_SPI_PMIC
#define CONFIG_IMX_SPI_PMIC_CS 0
-
#define MAX_SPI_BYTES (64 * 4)
-*/
+#elif defined(BOOT_MEDIA_MMC)
/*
* MMC Configs
- * */
-
-/*
+ */
#define CONFIG_FSL_MMC 1
#define CONFIG_DOS_PARTITION 1
#define CONFIG_CMD_FAT 1
-*/
+
+#endif
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE