summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/keymile/kmcent2/kmcent2.env6
-rw-r--r--include/configs/kmcent2.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/board/keymile/kmcent2/kmcent2.env b/board/keymile/kmcent2/kmcent2.env
index 7c8f8306c54..6b676a4ceb8 100644
--- a/board/keymile/kmcent2/kmcent2.env
+++ b/board/keymile/kmcent2/kmcent2.env
@@ -10,9 +10,9 @@ hostname=kmcent2
hwconfig=fsl_ddr:ctlr_intlv=cacheline
netdev=eth2
-newenv=protect off ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE &&
- erase ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE &&
- protect on ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE
+newenv=protect off ENV_DEL_ADDR +CFG_ENV_TOTAL_SIZE &&
+ erase ENV_DEL_ADDR +CFG_ENV_TOTAL_SIZE &&
+ protect on ENV_DEL_ADDR +CFG_ENV_TOTAL_SIZE
set_fdthigh=true
uimage=uImage
diff --git a/include/configs/kmcent2.h b/include/configs/kmcent2.h
index 80bff4b8937..a4b6a6e555d 100644
--- a/include/configs/kmcent2.h
+++ b/include/configs/kmcent2.h
@@ -127,7 +127,7 @@
#define CFG_SYS_NUM_CPC CONFIG_SYS_NUM_DDR_CTLRS
/* Environment in parallel NOR-Flash */
-#define CONFIG_ENV_TOTAL_SIZE 0x040000
+#define CFG_ENV_TOTAL_SIZE 0x040000
#define ENV_DEL_ADDR 0xebf00000 /*direct for newenv*/
/*