mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-21 01:18:52 +09:00
ARM: exynos: board: change the mmc/sd init sequence
Exynos4 can be used the dwmmc controller for eMMC. Then it needs to check dwmmc_init() at first. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
cd0ae61cc2
commit
58209dface
@ -243,13 +243,6 @@ int board_eth_init(bd_t *bis)
|
|||||||
int board_mmc_init(bd_t *bis)
|
int board_mmc_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef CONFIG_SDHCI
|
|
||||||
/* mmc initializattion for available channels */
|
|
||||||
ret = exynos_mmc_init(gd->fdt_blob);
|
|
||||||
if (ret)
|
|
||||||
debug("mmc init failed\n");
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_DWMMC
|
#ifdef CONFIG_DWMMC
|
||||||
/* dwmmc initializattion for available channels */
|
/* dwmmc initializattion for available channels */
|
||||||
ret = exynos_dwmmc_init(gd->fdt_blob);
|
ret = exynos_dwmmc_init(gd->fdt_blob);
|
||||||
@ -257,6 +250,12 @@ int board_mmc_init(bd_t *bis)
|
|||||||
debug("dwmmc init failed\n");
|
debug("dwmmc init failed\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_SDHCI
|
||||||
|
/* mmc initializattion for available channels */
|
||||||
|
ret = exynos_mmc_init(gd->fdt_blob);
|
||||||
|
if (ret)
|
||||||
|
debug("mmc init failed\n");
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user