diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-10-14 10:28:05 +0300 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2019-10-31 14:12:31 +0300 |
commit | d5640f700d0413059b39cdd621c9401ef90d08fa (patch) | |
tree | 20d08acceb7b209750e69596dc14ea12f7abc3f6 /include | |
parent | 6015af28ee6d44d6c7b21f3844c90df9239f66f4 (diff) | |
download | u-boot-d5640f700d0413059b39cdd621c9401ef90d08fa.tar.xz |
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')
-rw-r--r-- | include/dfu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h index 924952f805..a90732cc43 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 { |