From: Vikas Manocha Date: Fri, 3 Jul 2015 01:29:37 +0000 (-0700) Subject: stv0991: enable saving enrironment in spi flash X-Git-Tag: v2015.10-rc1~191^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=137d5b9137e0eb4f543311cd1cf4a84ad913b409;p=u-boot stv0991: enable saving enrironment in spi flash Signed-off-by: Vikas Manocha Reviewed-by: Jagannadh Teki --- diff --git a/configs/stv0991_defconfig b/configs/stv0991_defconfig index 8e8ce9fb2d..731ede1125 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 6379fd3ab7..d498c1276a 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