summaryrefslogtreecommitdiff
path: root/include/fb_mmc.h
diff options
context:
space:
mode:
authorDileep Katta <dileep.katta@linaro.org>2015-02-17 18:48:23 +0530
committerMarek Vasut <marex@denx.de>2015-02-25 17:47:02 +0100
commit897923819cda6f26fe8a5921c595871526ab6a9c (patch)
tree1a74519d30ebd7151aab0efb3caf3a6ffdc82ad3 /include/fb_mmc.h
parent2474b7f1499e81b68cf1b4610dd7ee2cd0c9ba88 (diff)
downloadu-boot-imx-897923819cda6f26fe8a5921c595871526ab6a9c.zip
u-boot-imx-897923819cda6f26fe8a5921c595871526ab6a9c.tar.gz
u-boot-imx-897923819cda6f26fe8a5921c595871526ab6a9c.tar.bz2
usb: gadget: fastboot: Add fastboot erase
Adds the fastboot erase functionality, to erase a partition specified by name. The erase is performed based on erase group size, to avoid erasing other partitions. The start address and the size is aligned to the erase group size for this. Currently only supports erasing from eMMC. Signed-off-by: Dileep Katta <dileep.katta@linaro.org> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/fb_mmc.h')
-rw-r--r--include/fb_mmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fb_mmc.h b/include/fb_mmc.h
index 1ad1d13..402ba9b 100644
--- a/include/fb_mmc.h
+++ b/include/fb_mmc.h
@@ -6,3 +6,4 @@
void fb_mmc_flash_write(const char *cmd, void *download_buffer,
unsigned int download_bytes, char *response);
+void fb_mmc_erase(const char *cmd, char *response);