summaryrefslogtreecommitdiff
path: root/board/xsengine/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/xsengine/flash.c')
-rw-r--r--board/xsengine/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/xsengine/flash.c b/board/xsengine/flash.c
index a188e24408..f29def268d 100644
--- a/board/xsengine/flash.c
+++ b/board/xsengine/flash.c
@@ -62,7 +62,7 @@ unsigned long flash_init (void)
/* Protect monitor and environment sectors */
flash_protect ( FLAG_PROTECT_SET,CFG_FLASH_BASE,CFG_FLASH_BASE + monitor_flash_len - 1,&flash_info[0] );
- flash_protect ( FLAG_PROTECT_SET,CFG_ENV_ADDR,CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0] );
+ flash_protect ( FLAG_PROTECT_SET,CONFIG_ENV_ADDR,CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0] );
return size;
}