summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2013-08-23 17:27:04 +0530
committerTom Rini <trini@ti.com>2013-09-20 16:57:40 -0400
commitd3d33daf1112d3b1c6c330422740a4e210259f88 (patch)
treeaa215508b5e4595d04fbf049b9211d01d9f90781
parent52f7d8442e0837ef00f848865286e301a5f0f78f (diff)
downloadu-boot-imx-d3d33daf1112d3b1c6c330422740a4e210259f88.zip
u-boot-imx-d3d33daf1112d3b1c6c330422740a4e210259f88.tar.gz
u-boot-imx-d3d33daf1112d3b1c6c330422740a4e210259f88.tar.bz2
ARM: DRA7: Enable saveenv command
dra7xx_evm has eMMC and the default environment can be stored in it. So enabling saveenv command and the configs to store environment in eMMC. Tested on DRA752 ES1.0 Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
-rw-r--r--include/configs/dra7xx_evm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index 4fbe768..7b120de 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -14,7 +14,13 @@
#define CONFIG_DRA7XX
-#define CONFIG_ENV_IS_NOWHERE /* For now. */
+/* MMC ENV related defines */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */
+#define CONFIG_ENV_OFFSET 0xE0000
+#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#define CONFIG_CMD_SAVEENV
#define CONSOLEDEV "ttyO0"
#define CONFIG_CONS_INDEX 1