Commit f789be6086f3e6302fe4b163fa9b7bd6b358c4ce

Authored by Tom Warren
1 parent 6d9ea159e4

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>

Showing 1 changed file with 11 additions and 1 deletions Side-by-side Diff

include/configs/dalmore.h
... ... @@ -50,7 +50,17 @@
50 50 #define CONFIG_SYS_I2C_SPEED 100000
51 51 #define CONFIG_CMD_I2C
52 52  
53   -#define CONFIG_ENV_IS_NOWHERE
  53 +/* SD/MMC */
  54 +#define CONFIG_MMC
  55 +#define CONFIG_GENERIC_MMC
  56 +#define CONFIG_TEGRA_MMC
  57 +#define CONFIG_CMD_MMC
  58 +
  59 +/* Environment in eMMC, at the end of 2nd "boot sector" */
  60 +#define CONFIG_ENV_IS_IN_MMC
  61 +#define CONFIG_SYS_MMC_ENV_DEV 0
  62 +#define CONFIG_SYS_MMC_ENV_PART 2
  63 +#define CONFIG_ENV_OFFSET ((4096 * 1024) - CONFIG_ENV_SIZE)
54 64  
55 65 #define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */
56 66