[U-Boot] [v3 01/10] stv0991: enable saving enrironment in spi flash

Vikas Manocha vikas.manocha at st.com
Mon Jun 29 22:49:08 CEST 2015


Signed-off-by: Vikas Manocha <vikas.manocha at st.com>
---

Changes in v3: Rebased to spi-next-dev
Changes in v2: None

 configs/stv0991_defconfig |    1 -
 include/configs/stv0991.h |    4 +++-
 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
-- 
1.7.9.5



More information about the U-Boot mailing list