]> git.sur5r.net Git - u-boot/commitdiff
stv0991: enable saving enrironment in spi flash
authorVikas Manocha <vikas.manocha@st.com>
Fri, 3 Jul 2015 01:29:37 +0000 (18:29 -0700)
committerJagan Teki <jteki@openedev.com>
Fri, 3 Jul 2015 08:20:52 +0000 (13:50 +0530)
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
configs/stv0991_defconfig
include/configs/stv0991.h

index 8e8ce9fb2d8811c79116c24355342305c0c96270..731ede1125159eb5d25e7e39b5b702e91a9ef91a 100644 (file)
@@ -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
index 6379fd3ab7d67fdf6ca9970922b2590f8c94c1bd..d498c1276ac71f8ab3b61ce4809a4b201e15fa41 100644 (file)
@@ -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