summaryrefslogtreecommitdiff
path: root/include/configs/dalmore.h
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2013-03-18 14:52:26 -0700
committerTom Warren <twarren@nvidia.com>2013-03-25 09:56:08 -0700
commitf789be6086f3e6302fe4b163fa9b7bd6b358c4ce (patch)
treea26f5d82593c698075f9a6d733e43ada81a42508 /include/configs/dalmore.h
parent6d9ea159e4900dc6bc4b38a064fc87cba4582c09 (diff)
downloadu-boot-imx-f789be6086f3e6302fe4b163fa9b7bd6b358c4ce.zip
u-boot-imx-f789be6086f3e6302fe4b163fa9b7bd6b358c4ce.tar.gz
u-boot-imx-f789be6086f3e6302fe4b163fa9b7bd6b358c4ce.tar.bz2
Tegra114: MMC: Enable DT MMC driver support for Tegra114 Dalmore boards
Tested on my Dalmore E1611 board, eMMC and SD-Card work fine, can load a kernel off of an SD card OK, card detect works, and the env is now stored in eMMC (end of the 2nd 'boot' sector, same as Tegra20/30). Signed-off-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/configs/dalmore.h')
-rw-r--r--include/configs/dalmore.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
index c7deea5..7b68f7c 100644
--- a/include/configs/dalmore.h
+++ b/include/configs/dalmore.h
@@ -50,7 +50,17 @@
#define CONFIG_SYS_I2C_SPEED 100000
#define CONFIG_CMD_I2C
-#define CONFIG_ENV_IS_NOWHERE
+/* SD/MMC */
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_TEGRA_MMC
+#define CONFIG_CMD_MMC
+
+/* Environment in eMMC, at the end of 2nd "boot sector" */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_SYS_MMC_ENV_PART 2
+#define CONFIG_ENV_OFFSET ((4096 * 1024) - CONFIG_ENV_SIZE)
#define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */