summaryrefslogtreecommitdiffstats
path: root/include/configs/beaver.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-06-11 15:14:03 -0600
committerAndy Fleming <afleming@freescale.com>2013-06-13 16:52:20 -0500
commit91171091c6733cd290e18bf25a8aedbe682d2430 (patch)
tree12fa5c17c3b174dfc4eb68c92a47029ca6a2d93e /include/configs/beaver.h
parent5c088ee841f9c660a3e62887e7b8623fc15dcd68 (diff)
downloadtalos-obmc-uboot-91171091c6733cd290e18bf25a8aedbe682d2430.tar.gz
talos-obmc-uboot-91171091c6733cd290e18bf25a8aedbe682d2430.zip
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 <swarren@nvidia.com> Acked-by: Tom Warren <twarren@nvidia.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/configs/beaver.h')
-rw-r--r--include/configs/beaver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/beaver.h b/include/configs/beaver.h
index 058da4fa13..d51f5f885f 100644
--- a/include/configs/beaver.h
+++ b/include/configs/beaver.h
@@ -56,7 +56,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
OpenPOWER on IntegriCloud