Skip to contentSkip to conversation

armv7: omap-common: Rework SPL board_mmc_init()

PATCH New Tom Rini 1 participant 2 messages Dec 14, 2015 – Dec 15, 2015 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 armv7: omap-common: Rework SPL board_mmc_init()

Since the changes in a1e56cf the way that we had board_mmc_init() structured for OMAP parts (so that we always report device 0) are no longer functional. For now, make the case of booting from the second device initialize both devices (we have no devices that only have the second device as MMC). A further rework and consolidation of the functions should be done at a later date.

Tested on Beaglebone Black (SD and eMMC boot).

---
 arch/arm/cpu/armv7/omap-common/boot-common.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/cpu/armv7/omap-common/boot-common.c +1 -0
index 8e5d5c9..0456263 100644
@@ -208,6 +208,7 @@ int board_mmc_init(bd_t *bis)
 		break;
 	case BOOT_DEVICE_MMC2:
 	case BOOT_DEVICE_MMC2_2:
+		omap_mmc_init(0, 0, 0, -1, -1);
 		omap_mmc_init(1, 0, 0, -1, -1);
 		break;
 	}
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 armv7: omap-common: Rework SPL board_mmc_init()

Quoted 11 lines · Tom Rini

Since the changes in a1e56cf the way that we had board_mmc_init() structured for OMAP parts (so that we always report device 0) are no longer functional. For now, make the case of booting from the second device initialize both devices (we have no devices that only have the second device as MMC). A further rework and consolidation of the functions should be done at a later date.

Tested on Beaglebone Black (SD and eMMC boot).

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151215/566eba7a/attachment.sig>