env_nand: Updated erase size to partition size

erase complete partiton size, board_env_size.

Change-Id: Ib0f7e65f49fbd29cd265f5ff12cd03424db61227
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-03-08 18:46:30 +05:30
parent f46ee781bf
commit ee2ddf9dc2

View file

@ -189,7 +189,7 @@ int nand_saveenv(void)
{
.name = "NAND",
.erase_opts = {
.length = CONFIG_ENV_RANGE,
.length = board_env_size,
.offset = CONFIG_ENV_OFFSET,
},
},