From e6f99a5611e1ff59555f93de88e527070f8548af Mon Sep 17 00:00:00 2001 From: Lei Wen Date: Wed, 22 Jun 2011 17:03:31 +0000 Subject: 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 Signed-off-by: Andy Fleming Acked-by: Mike Frysinger --- include/part.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/part.h') diff --git a/include/part.h b/include/part.h index 3cdae02..5243511 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; -- cgit v1.1