[PATCH 1/3] boards: phytec-som-am335x: Get ready for EMMC boot

Teresa Remmet t.remmet at phytec.de
Fri Jun 26 01:14:35 PDT 2015


Select correct instance when booting from a mmc interface.

Signed-off-by: Teresa Remmet <t.remmet at phytec.de>
---
 arch/arm/boards/phytec-som-am335x/board.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c
index 74e39d7..7a87841 100644
--- a/arch/arm/boards/phytec-som-am335x/board.c
+++ b/arch/arm/boards/phytec-som-am335x/board.c
@@ -68,7 +68,10 @@ static int physom_devices_init(void)
 		of_device_enable_path("/chosen/environment-spi");
 		break;
 	case BOOTSOURCE_MMC:
-		omap_set_bootmmc_devname("mmc0");
+		if (bootsource_get_instance() == 0)
+			omap_set_bootmmc_devname("mmc0");
+		else
+			omap_set_bootmmc_devname("mmc1");
 		break;
 	default:
 		of_device_enable_path("/chosen/environment-nand");
-- 
1.9.1




More information about the barebox mailing list