summaryrefslogtreecommitdiffstats
path: root/include/part.h
diff options
context:
space:
mode:
authorLei Wen <leiwen@marvell.com>2011-06-22 17:03:31 +0000
committerAndy Fleming <afleming@freescale.com>2011-07-15 20:29:17 -0500
commite6f99a5611e1ff59555f93de88e527070f8548af (patch)
tree77577e3a0f6db5f84f2d9d879e9abfc221685c69 /include/part.h
parent6be95ccf9ff52d629526d1c20c5343c2a91d9e72 (diff)
downloadblackbird-obmc-uboot-e6f99a5611e1ff59555f93de88e527070f8548af.tar.gz
blackbird-obmc-uboot-e6f99a5611e1ff59555f93de88e527070f8548af.zip
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>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index 3cdae0214e..5243511829 100644
--- a/include/part.h
+++ b/include/part.h
@@ -49,6 +49,9 @@ typedef struct block_dev_desc {
unsigned long start,
lbaint_t blkcnt,
const void *buffer);
+ unsigned long (*block_erase)(int dev,
+ unsigned long start,
+ lbaint_t blkcnt);
void *priv; /* driver private struct pointer */
}block_dev_desc_t;
OpenPOWER on IntegriCloud