Skip to content

Commit

Permalink
Add board_mmc_init(...) function for init mmc1 only
Browse files Browse the repository at this point in the history
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: <[email protected]>
Acked-by: Pantelis Antoniou <[email protected]>
Signed-off-by: Hannes Petermaier <[email protected]>
  • Loading branch information
Hannes Petermaier authored and pantoniou committed May 23, 2014
1 parent 7168977 commit 46c8ebc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions board/BuR/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mmc_host_def.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <i2c.h>
Expand Down Expand Up @@ -214,3 +215,9 @@ int board_eth_init(bd_t *bis)
return rv;
}
#endif /* CONFIG_DRIVER_TI_CPSW */
#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
int board_mmc_init(bd_t *bis)
{
return omap_mmc_init(1, 0, 0, -1, -1);
}
#endif
2 changes: 1 addition & 1 deletion include/configs/kwb.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

#undef CONFIG_ENV_IS_NOWHERE
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_SYS_MMC_ENV_DEV 1
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_SYS_MMC_ENV_PART 2
#define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
Expand Down
2 changes: 1 addition & 1 deletion include/configs/tseries.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
#elif defined(CONFIG_EMMC_BOOT)
#undef CONFIG_ENV_IS_NOWHERE
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_SYS_MMC_ENV_DEV 1
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_SYS_MMC_ENV_PART 2
#define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
Expand Down

0 comments on commit 46c8ebc

Please sign in to comment.