[U-Boot] [PATCH v3 follow-up 3/3] sunxi: Remove redundant check from `board_mmc_init` for signature

Daniel Kochmański dkochmanski at turtle-solutions.eu
Fri May 29 17:21:00 CEST 2015


Removes checking for signature on mmc devices, because it is done on
`spl_boot_device`. This is follow-up patch to V3.

Signed-off-by: Daniel Kochmański <dkochmanski at turtle-solutions.eu>
CC: Roy Spliet <r.spliet at ultimaker.com>
Cc: Ian Campbell <ijc at hellion.org.uk>
Cc: Hans De Goede <hdegoede at redhat.com>
---
 board/sunxi/board.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index dc95431..a14096e 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -297,19 +297,6 @@ int board_mmc_init(bd_t *bis)
 		return -1;
 #endif
 
-#if CONFIG_MMC_SUNXI_SLOT == 0 && CONFIG_MMC_SUNXI_SLOT_EXTRA == 2
-	/*
-	 * Both mmc0 and mmc2 are bootable, figure out where we're booting
-	 * from. Try mmc0 first, just like the brom does.
-	 */
-	if (sunxi_mmc_has_egon_boot_signature(mmc0))
-		return 0;
-
-	/* no bootable card in mmc0, so we must be booting from mmc2, swap */
-	mmc0->block_dev.dev = 1;
-	mmc1->block_dev.dev = 0;
-#endif
-
 	return 0;
 }
 #endif
-- 
2.4.1



More information about the U-Boot mailing list