From d695d6627803dbb78a226e04b0436a01633a9936 Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Sat, 3 Feb 2018 08:29:52 +0100 Subject: spl: eMMC/SD: Provide one __weak spl_boot_mode() function The goal of this patch is to clean up the code related to choosing SPL MMC boot mode. The spl_boot_mode() now is called only in spl_mmc_load_image() function, which is only compiled in if CONFIG_SPL_MMC_SUPPORT is enabled. To achieve the goal, all per mach/arch implementations eligible for unification has been replaced with one __weak implementation. Signed-off-by: Lukasz Majewski Reviewed-by: Marek Vasut Reviewed-by: Stefano Babic Acked-by: Michal Simek (For ZynqMP) Reviewed-by: Fabio Estevam --- arch/arm/mach-sunxi/board.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'arch/arm/mach-sunxi') diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 0c60ee04da..1753faec1d 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -260,12 +260,6 @@ u32 spl_boot_device(void) return sunxi_get_boot_device(); } -/* No confirmation data available in SPL yet. Hardcode bootmode */ -u32 spl_boot_mode(const u32 boot_device) -{ - return MMCSD_MODE_RAW; -} - void board_init_f(ulong dummy) { spl_init(); -- cgit