Commit e1b342f434f326271799363383581c0ff22a0bfe

Authored by Eric Lee
1 parent 76e077cbbc
Exists in v2016.05-smarct4x

Bug Fix for eMMC Boot up

Showing 2 changed files with 6 additions and 7 deletions Side-by-side Diff

arch/arm/cpu/armv7/am33xx/board.c
... ... @@ -108,14 +108,12 @@
108 108 #if defined(CONFIG_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD)
109 109 int cpu_mmc_init(bd_t *bis)
110 110 {
111   - int ret;
112   -
113   - ret = omap_mmc_init(0, 0, 0, -1, -1);
114   - if (ret)
115   - return ret;
116   -
117   - return omap_mmc_init(2, 0, 0, -1, -1);
  111 + omap_mmc_init(0, 0, 0, -1, -1);
  112 + omap_mmc_init(1, 0, 0, -1, -1);
  113 + omap_mmc_init(2, 0, 0, -1, -1);
  114 + return 0;
118 115 }
  116 +
119 117 #endif
120 118  
121 119 /*
include/configs/smarct437x_evm.h
... ... @@ -225,6 +225,7 @@
225 225 #define CONFIG_SPL_ENV_SUPPORT
226 226 #define CONFIG_SYS_MMC_ENV_DEV 1
227 227 #define CONFIG_SYS_MMC_ENV_PART 2
  228 +
228 229 #define CONFIG_ENV_OFFSET 0x0
229 230 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
230 231 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT