MMC: add erase function to both mmc and sd
authorLei Wen <leiwen@marvell.com>
Wed, 22 Jun 2011 17:03:31 +0000 (17:03 +0000)
committerAndy Fleming <afleming@freescale.com>
Sat, 16 Jul 2011 01:29:17 +0000 (20:29 -0500)
commite6f99a5611e1ff59555f93de88e527070f8548af
tree77577e3a0f6db5f84f2d9d879e9abfc221685c69
parent6be95ccf9ff52d629526d1c20c5343c2a91d9e72
MMC: add erase function to both mmc and sd

Erase is a very basic function since the begin of sd specification is
announced. Although we could write a bulk of full 0xff memory to the
range to take place of erase, it is more convenient and safe to
implement the erase function itself.

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