summaryrefslogtreecommitdiff
path: root/include/configs/whistler.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-24 11:38:36 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:20 +0200
commit616887016d4e82f15fa5acc5d111c16bf2d29843 (patch)
tree1e2bb3010ad0af596848a35b049f44a75adccd7f /include/configs/whistler.h
parent294cd67c8d4a7049dc8d972a52527f605dbdaff7 (diff)
downloadu-boot-616887016d4e82f15fa5acc5d111c16bf2d29843.tar.gz
tegra: whistler: store environment in eMMC
Store the environment in eMMC, at the end of the second boot sector. This should not conflict with any other eMMC usage: U-Boot is stored well below this location, and the kernel only uses the general area of the eMMC once booted, not the boot sectors. Note: This assumes the user plugged the standard 8MB MoviNAND card into J29/HSMMC/POP. If they didn't, the boot sector layout may be different. However, use of that particular card is standard practice as far as I know. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/whistler.h')
-rw-r--r--include/configs/whistler.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/configs/whistler.h b/include/configs/whistler.h
index 51f806a108..ec96cff49b 100644
--- a/include/configs/whistler.h
+++ b/include/configs/whistler.h
@@ -66,8 +66,15 @@
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_FAT
-/* Environment not stored */
-#define CONFIG_ENV_IS_NOWHERE
+/*
+ * Environment in eMMC, at the end of 2nd "boot sector". Note: This assumes
+ * the user plugged the standard 8MB MoviNAND card into J29/HSMMC/POP. If
+ * they didn't, the boot sector layout may be different. However, use of that
+ * particular card is standard practice as far as I know.
+ */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_ENV_OFFSET ((2 * 512 * 1024) - CONFIG_ENV_SIZE)
+#define CONFIG_SYS_MMC_ENV_DEV 0
/* USB Host support */
#define CONFIG_USB_EHCI