summaryrefslogtreecommitdiff
path: root/include/configs/cardhu.h
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2013-02-26 12:36:22 -0700
committerTom Warren <twarren@nvidia.com>2013-03-14 11:06:44 -0700
commitca557b386d957a853e085259b4c501b7a0ee1ee2 (patch)
treec651cf8b265fb2cee661a6dd1f7852412d55c498 /include/configs/cardhu.h
parentf4e4e0b0e3405785a5a4b46913a9476175adc12d (diff)
downloadu-boot-imx-ca557b386d957a853e085259b4c501b7a0ee1ee2.zip
u-boot-imx-ca557b386d957a853e085259b4c501b7a0ee1ee2.tar.gz
u-boot-imx-ca557b386d957a853e085259b4c501b7a0ee1ee2.tar.bz2
Tegra30: MMC: Enable DT MMC driver support for Tegra30 Cardhu boards
Tested on my Cardhu-A04 tablet, 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). Signed-off-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/configs/cardhu.h')
-rw-r--r--include/configs/cardhu.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/configs/cardhu.h b/include/configs/cardhu.h
index 1616b39..18c7eb8 100644
--- a/include/configs/cardhu.h
+++ b/include/configs/cardhu.h
@@ -47,7 +47,25 @@
#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
+
+#define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
+#define CONFIG_FS_EXT4
+#define CONFIG_FS_FAT
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_FAT
+#define CONFIG_CMD_FS_GENERIC
+
+/* Environment in eMMC, at the end of 2nd "boot sector" */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE)
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_SYS_MMC_ENV_PART 2
/* SPI */
#define CONFIG_TEGRA_SLINK