mmc: Add support for boot from MMC/eMMC/SDIO
- Support boot from SDIO with variables located
on MMC/eMMC/SD raw (unpartitioned) space
- SD:
on SD, assumed to have a regular MBR on LBA-0, since
recent SD cards don't reach volumes requiring usage of GPT.
Therefore the u-boot image should be placed on SD card starting LBA-1.
- MMC/eMMC:
om MMC, detection for image is started at LBA-0
(on either Boot0/Boot1/Data partitions).
- The space reserved for u-boot image is 1MB followed
by the environment region. The MMC/eMMC card can use either
Boot-0, Boot-1 or Data partitions, while it will be a
gap of one sector between u-boot image and the environment.
- Add delay for SD command 12 (stop transmission)
on Marvell platforms, since the transaction completion
status obtained from SDIO interrupt status register
is delayed for this particular command in DMA mode.
- Use write zeros to u-boot configuration area on
"reset environment" request instead of erase operation
since the last does not always succeeds from the interrupt
status point of view.
Change-Id: I596889aa5883c8aeb6c361513c21dd82fe6093e1
Signed-off-by: kostap <kostap@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/15693
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Star_Automation <star@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/16308
9 files changed