summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-05-27 21:43:40 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:00:37 +0800
commit5001b99606655a6f91984afb54625e4af1ed1058 (patch)
tree7c92cb4c20fd7b0e453a7e87aac32ab7f3cf2ffd /include/configs
parent30e188a23150345a74f5a83aab344ac8510d38d9 (diff)
downloadu-boot-imx-5001b99606655a6f91984afb54625e4af1ed1058.zip
u-boot-imx-5001b99606655a6f91984afb54625e4af1ed1058.tar.gz
u-boot-imx-5001b99606655a6f91984afb54625e4af1ed1058.tar.bz2
ENGR00112845 spi nor boot and pmic support for BBG2.
spi nor boot support for BBG2. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/imx51.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/include/configs/imx51.h b/include/configs/imx51.h
index 4ab1acb..1808b67 100644
--- a/include/configs/imx51.h
+++ b/include/configs/imx51.h
@@ -68,8 +68,25 @@
#define CONFIG_MX51_UART 1
#define CONFIG_MX51_UART1 1
+/*
+ * SPI Configs
+ * */
+/*
+#define CONFIG_FSL_SF 1
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_SPI_FLASH_IMX
+#define CONFIG_SPI_FLASH_CS 1
+#define CONFIG_IMX_SPI
+#define CONFIG_IMX_SPI_PMIC
+#define CONFIG_IMX_SPI_PMIC_CS 0
+
+#define MAX_SPI_BYTES (64 * 4)
+*/
-/* #define CONFIG_CMD_SPI */
+/*
+ * MMC Configs
+ * */
/*
#define CONFIG_FSL_MMC 1
@@ -190,7 +207,9 @@
#define CONFIG_SYS_NAND_BASE 0x40000000
/* Monitor at beginning of flash */
-#if defined(CONFIG_FSL_MMC)
+#if defined(CONFIG_FSL_SF)
+ #define CONFIG_FSL_ENV_IN_SF
+#elif defined(CONFIG_FSL_MMC)
#define CONFIG_MMC 1
#define CONFIG_CMD_MMC
/*
@@ -209,6 +228,10 @@
#elif defined(CONFIG_FSL_ENV_IN_MMC)
#define CONFIG_ENV_IS_IN_MMC 1
#define CONFIG_ENV_OFFSET (1024 * 1024)
+#elif defined(CONFIG_FSL_ENV_IN_SF)
+ #define CONFIG_ENV_IS_IN_SPI_FLASH 1
+ #define CONFIG_ENV_SPI_CS 1
+ #define CONFIG_ENV_OFFSET (1024 * 1024)
#else
#define CONFIG_ENV_IS_NOWHERE 1
#endif