summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2015-07-02 18:29:37 -0700
committerJagan Teki <jteki@openedev.com>2015-07-03 13:50:52 +0530
commit137d5b9137e0eb4f543311cd1cf4a84ad913b409 (patch)
tree38d8d3fea4fee3f7c6b67cd8f81209cd2870eee2
parent891b487098ee2169a16b1bbb354aaef28aa90630 (diff)
downloadu-boot-imx-137d5b9137e0eb4f543311cd1cf4a84ad913b409.zip
u-boot-imx-137d5b9137e0eb4f543311cd1cf4a84ad913b409.tar.gz
u-boot-imx-137d5b9137e0eb4f543311cd1cf4a84ad913b409.tar.bz2
stv0991: enable saving enrironment in spi flash
Signed-off-by: Vikas Manocha <vikas.manocha@st.com> Reviewed-by: Jagannadh Teki <jteki@openedev.com>
-rw-r--r--configs/stv0991_defconfig1
-rw-r--r--include/configs/stv0991.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/configs/stv0991_defconfig b/configs/stv0991_defconfig
index 8e8ce9f..731ede1 100644
--- a/configs/stv0991_defconfig
+++ b/configs/stv0991_defconfig
@@ -7,7 +7,6 @@ CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
CONFIG_AUTOBOOT_STOP_STR=" "
# CONFIG_CMD_IMLS is not set
-# CONFIG_CMD_SAVEENV is not set
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_SETEXPR is not set
CONFIG_NETDEVICES=y
diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index 6379fd3..d498c12 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -23,7 +23,9 @@
#define PHYS_SDRAM_1_SIZE 0x00198000
#define CONFIG_ENV_SIZE 0x10000
-#define CONFIG_ENV_IS_IN_FLASH
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
+#define CONFIG_ENV_OFFSET 0x30000
#define CONFIG_ENV_ADDR \
(PHYS_SDRAM_1_SIZE - CONFIG_ENV_SIZE)
#define CONFIG_SYS_MAXARGS 16