summaryrefslogtreecommitdiff
path: root/include/configs/am65x_evm.h
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2019-06-10 22:13:42 +0300
committerTom Rini <trini@konsulko.com>2019-07-17 18:12:54 +0300
commitc36331ad2d43e481c8eadd37a930f8c037941cd1 (patch)
tree4fc474e5d75cc66f80262a96eb32ef3ca5c6e307 /include/configs/am65x_evm.h
parentf605807f3d4686637a2f8b0f24bebabdcdef6898 (diff)
downloadu-boot-c36331ad2d43e481c8eadd37a930f8c037941cd1.tar.xz
configs: am65x: Add configs to support environment in eMMC
Add configs such that U-boot environment is in eMMC by default. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Diffstat (limited to 'include/configs/am65x_evm.h')
-rw-r--r--include/configs/am65x_evm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h
index b043bf886b..e9e9d4a9dc 100644
--- a/include/configs/am65x_evm.h
+++ b/include/configs/am65x_evm.h
@@ -68,6 +68,16 @@
EXTRA_ENV_AM65X_BOARD_SETTINGS \
EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC
+/* MMC ENV related defines */
+#ifdef CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_SYS_MMC_ENV_PART 1
+#define CONFIG_ENV_SIZE (128 << 10)
+#define CONFIG_ENV_OFFSET 0x680000
+#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#endif
+
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>