diff options
author | Simon Glass <sjg@chromium.org> | 2019-01-11 18:37:13 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-02-09 12:50:22 -0700 |
commit | e898799ce475735bed3ac80cbffac3f55c9f091e (patch) | |
tree | aeed7f39a95c4709116986604432c743eea6d19e /board/samsung | |
parent | cdc033136e8d9a6ecf33402b5311087965fb7385 (diff) |
samsung: mmc: Drop old MMC init code
Now that these boards use driver model we can drop the old code. At
present s5p_mmc_init() is still used by goni and smdkv310 so cannot be
removed unless we remove those boards.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/common/board.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 3391228522..96228a86a1 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -249,44 +249,6 @@ int board_eth_init(bd_t *bis) return 0; } -#ifdef CONFIG_MMC -static int init_mmc(void) -{ -#ifdef CONFIG_MMC_SDHCI - return exynos_mmc_init(gd->fdt_blob); -#else - return 0; -#endif -} - -static int init_dwmmc(void) -{ -#ifdef CONFIG_MMC_DW - return exynos_dwmmc_init(gd->fdt_blob); -#else - return 0; -#endif -} - -int board_mmc_init(bd_t *bis) -{ - int ret; - - if (get_boot_mode() == BOOT_MODE_SD) { - ret = init_mmc(); - ret |= init_dwmmc(); - } else { - ret = init_dwmmc(); - ret |= init_mmc(); - } - - if (ret) - debug("mmc init failed\n"); - - return ret; -} -#endif - #ifdef CONFIG_DISPLAY_BOARDINFO int checkboard(void) { |