summaryrefslogtreecommitdiff
path: root/include/configs/apalis-imx8.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/apalis-imx8.h')
-rw-r--r--include/configs/apalis-imx8.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h
index ace5f172bd..80fe1bee5f 100644
--- a/include/configs/apalis-imx8.h
+++ b/include/configs/apalis-imx8.h
@@ -189,16 +189,16 @@
#define CONFIG_SYS_MEMTEST_START 0x88000000
#define CONFIG_SYS_MEMTEST_END 0x89000000
-/* Default environment is in SD */
+/* Environment in eMMC, before config block at the end of 1st "boot sector" */
#define CONFIG_ENV_SIZE 0x2000
-
-#define CONFIG_ENV_OFFSET (64 * SZ_64K)
-#define CONFIG_SYS_MMC_ENV_PART 0 /* user area */
+#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \
+ CONFIG_TDX_CFG_BLOCK_OFFSET)
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_SYS_MMC_ENV_PART 1
#define CONFIG_SYS_MMC_IMG_LOAD_PART 1
/* On Apalis iMX8 USDHC1 is eMMC, USDHC2 is 8-bit SD and USDHC3 is 4-bit SD */
-#define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 eMMC */
#define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 eMMC */
#define CONFIG_SYS_FSL_USDHC_NUM 3