env: Added support to save env to spi through Kconfig

This patch added support to enable CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET
and CONFIG_ENV_SECT_SIZE through Kconfig for Zynq and Zynqmp.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Vipul Kumar
2018-07-17 19:00:34 +05:30
committed by Michal Simek
parent 1c310aec67
commit 2a30809cae
5 changed files with 29 additions and 19 deletions

View File

@@ -9,9 +9,6 @@
#define CONFIG_SYS_SDRAM_BASE 0x00000000
#define CONFIG_SYS_SDRAM_SIZE 0x40000000
#define CONFIG_ENV_SIZE 0x20000
#define CONFIG_ENV_OFFSET 0x300000
#define CONFIG_BOOTP_SERVERIP
#define CONFIG_EXTRA_ENV_SETTINGS \

View File

@@ -99,9 +99,6 @@
# define PARTS_DEFAULT
#endif
/* Do not preserve environment */
#define CONFIG_ENV_SIZE 0x8000
/* Monitor Command Prompt */
/* Console I/O Buffer Size */
#define CONFIG_SYS_CBSIZE 2048

View File

@@ -121,22 +121,9 @@
# define CONFIG_SYS_EEPROM_SIZE 1024 /* Bytes */
#endif
/* Total Size of Environment Sector */
#ifndef CONFIG_ENV_SIZE
# define CONFIG_ENV_SIZE (128 << 10)
#endif
/* Allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
/* Environment */
#ifndef CONFIG_ENV_IS_NOWHERE
# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
# ifndef CONFIG_ENV_OFFSET
# define CONFIG_ENV_OFFSET 0xE0000
# endif
#endif
/* enable preboot to be loaded before CONFIG_BOOTDELAY */
#define CONFIG_PREBOOT