Skip to content

Commit 46c8ebc

Browse files
Hannes Petermaierpantoniou
Hannes Petermaier
authored andcommitted
Add board_mmc_init(...) function for init mmc1 only
Since B&R boards uses only MMC-Controller KFire-Android#1, it only wastes time if we initialize #0 first to see that there is nothing. Cc: <trini@ti.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
1 parent 7168977 commit 46c8ebc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

board/BuR/common/common.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <asm/arch/clock.h>
2020
#include <asm/arch/gpio.h>
2121
#include <asm/arch/sys_proto.h>
22+
#include <asm/arch/mmc_host_def.h>
2223
#include <asm/io.h>
2324
#include <asm/gpio.h>
2425
#include <i2c.h>
@@ -214,3 +215,9 @@ int board_eth_init(bd_t *bis)
214215
return rv;
215216
}
216217
#endif /* CONFIG_DRIVER_TI_CPSW */
218+
#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
219+
int board_mmc_init(bd_t *bis)
220+
{
221+
return omap_mmc_init(1, 0, 0, -1, -1);
222+
}
223+
#endif

include/configs/kwb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
#undef CONFIG_ENV_IS_NOWHERE
111111
#define CONFIG_ENV_IS_IN_MMC
112-
#define CONFIG_SYS_MMC_ENV_DEV 1
112+
#define CONFIG_SYS_MMC_ENV_DEV 0
113113
#define CONFIG_SYS_MMC_ENV_PART 2
114114
#define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
115115
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)

include/configs/tseries.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
#elif defined(CONFIG_EMMC_BOOT)
238238
#undef CONFIG_ENV_IS_NOWHERE
239239
#define CONFIG_ENV_IS_IN_MMC
240-
#define CONFIG_SYS_MMC_ENV_DEV 1
240+
#define CONFIG_SYS_MMC_ENV_DEV 0
241241
#define CONFIG_SYS_MMC_ENV_PART 2
242242
#define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
243243
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)

0 commit comments

Comments
 (0)