aboutsummaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorPatrick Delaunay2019-10-14 09:28:05 +0200
committerMarek Vasut2019-10-31 12:12:31 +0100
commitd5640f700d0413059b39cdd621c9401ef90d08fa (patch)
tree20d08acceb7b209750e69596dc14ea12f7abc3f6 /include/dfu.h
parent6015af28ee6d44d6c7b21f3844c90df9239f66f4 (diff)
dfu: add partition support for MTD backend
Add the support of MTD partition for the MTD backend. The expected dfu_alt_info for one alternate on the mtd device : <name> part <part_id> <name> partubi <part_id> "partubi" also erase up to the end of the partition after write operation. For example: dfu_alt_info = "spl part 1;u-boot part 2; UBI partubi 3" U-Boot> dfu 0 mtd nand0 Acked-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 924952f805c..a90732cc433 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -62,6 +62,8 @@ struct mtd_internal_data {
/* RAW programming */
u64 start;
u64 size;
+ /* for ubi partition */
+ unsigned int ubi;
};
struct nand_internal_data {