summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Huang <Chang-Ming.Huang@freescale.com>2010-01-22 16:42:20 +0800
committerScott Sweeny <scott.sweeny@timesys.com>2010-09-29 17:32:29 -0400
commitba504cfb0af37adbbaf86e3db7d19b66e0eb1def (patch)
treeb325ffbee0f12ad94c7c693ccc6e044723539d40
parentad58fa5e76b465acf259928975a78329a3b8fef1 (diff)
p1022ds: save env to eSDHC/eSPI
save the environment variable to eSDHC/eSPI Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
-rw-r--r--include/configs/P1022DS.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
index 52be563ea7..734a8f246d 100644
--- a/include/configs/P1022DS.h
+++ b/include/configs/P1022DS.h
@@ -643,9 +643,23 @@ extern unsigned long calculate_board_ddr_clk(unsigned long dummy);
* Environment
*/
#if defined(CONFIG_SYS_RAMBOOT)
+#ifdef CONFIG_RAMBOOT_SPIFLASH
+#define CONFIG_ENV_IS_IN_SPI_FLASH 1
+#define CONFIG_ENV_SPI_BUS 0
+#define CONFIG_ENV_SPI_CS 0
+#define CONFIG_ENV_SPI_MAX_HZ 10000000
+#define CONFIG_ENV_SPI_MODE 0
+#define CONFIG_ENV_SIZE 0x2000 /* 8KB */
+#define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
+#define CONFIG_ENV_SECT_SIZE 0x10000
+#elif defined(CONFIG_RAMBOOT_SDCARD)
+#define CONFIG_ENV_IS_IN_SDCARD 1
+#define CONFIG_ENV_SIZE 0x2000
+#else
#define CONFIG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000)
#define CONFIG_ENV_SIZE 0x2000
+#endif
#else
#define CONFIG_ENV_IS_IN_FLASH 1
#if CONFIG_SYS_MONITOR_BASE > 0xfff80000