]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: enable partition switch function for emmc
authorLei Wen <leiwen@marvell.com>
Mon, 2 May 2011 16:26:26 +0000 (16:26 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 18 May 2011 19:37:03 +0000 (14:37 -0500)
commitbc897b1d4d86597311430dbe7b3e6c807c8c53e5
treedc5136100f1b0a873dd8bc90708286215335f559
parentea6ebe21772568ee97fb5c23c01e993140f0e0e6
mmc: enable partition switch function for emmc

For emmc, it may have up to 7 partitions: two boot partitions, one
user partition, one RPMB partition and four general purpose partitions.
(Refer to JESD84-A44.pdf/page 154)

As bootloader may need to read out or reflashing images on those

different partitions, it is better to enable the partition switch with
console command support.

Also for partition would be restore to user partition(part 0) when CMD0
is used, so change mmc_init routine to perform normal initialization
only once for each slot, unless use the rescan command to force init
again.

Signed-off-by: Lei Wen <leiwen@marvell.com>
Acked-by: Andy Fleming <afleming@freescale.com>
common/cmd_mmc.c
drivers/mmc/mmc.c
include/mmc.h