From 91171091c6733cd290e18bf25a8aedbe682d2430 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Tue, 11 Jun 2013 15:14:03 -0600 Subject: ARM: tegra: make use of negative ENV_OFFSET on NVIDIA boards Use a negative value of CONFIG_ENV_OFFSET for all NVIDIA reference boards that store the U-Boot environment in the 2nd eMMC boot partition. This makes U-Boot agnostic to the size of the eMMC boot partition, which can vary depending on which eMMC device was actually stuffed into the board. Signed-off-by: Stephen Warren Acked-by: Tom Warren Signed-off-by: Andy Fleming --- include/configs/ventana.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/configs/ventana.h') diff --git a/include/configs/ventana.h b/include/configs/ventana.h index 5755f11714..41a717622d 100644 --- a/include/configs/ventana.h +++ b/include/configs/ventana.h @@ -52,7 +52,7 @@ /* Environment in eMMC, at the end of 2nd "boot sector" */ #define CONFIG_ENV_IS_IN_MMC -#define CONFIG_ENV_OFFSET ((1024 * 1024) - CONFIG_ENV_SIZE) +#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE) #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_SYS_MMC_ENV_PART 2 -- cgit