board:samsung: check the boot device and init the right mmc driver.
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 23 Jun 2014 11:13:40 +0000 (13:13 +0200)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 6 Aug 2014 12:10:24 +0000 (14:10 +0200)
commit6417a0ed343f1a30effb586d50e96c4021129ea5
tree44b84c548933951b99970be3552a223dd2281979
parent7224f934aca4eb30c42f24376a9aa0ecbcc5cd8e
board:samsung: check the boot device and init the right mmc driver.

It is possible to boot device using a micro SD or eMMC slots.
In this situation, boot device should be registered as a block
device 0 in the MMC framework, because CONFIG_SYS_MMC_ENV_DEV
is usually set to "0" in the most config cases.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Change-Id: I39c654005138824c8acdfe4458f5f45294c902fe
---
Changes V3:
- separate two changes into two commits

Changes V4:
- board.c: add functions: init_mmc() and init_dwmmc()
- board_mmc_init(): call get_boot_mode()

Changes V5:
- none

Changes V6:
- update boot mode name
board/samsung/common/board.c