]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: sf: add partition support for nor backend
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 14 Oct 2019 07:28:00 +0000 (09:28 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 31 Oct 2019 11:12:31 +0000 (12:12 +0100)
commitcb986ba0fe4692a9d21a193c4ca9db460df77364
tree1aabc10a2f1e8ab8b583ac1c4ce6ea125bc7fc9a
parent321179eec565d4ddcd3daff18357a658cf823bef
dfu: sf: add partition support for nor backend

Copy the partition support from NAND backend to SF,
support part and partubi option.
In case of ubi partition, erase the rest of the
partition as it is mandatory for UBI.

The added code is under compilation flag CONFIG_DFU_SF_PART
activated by default.

for example:

U-Boot> env set dfu_alt_info "spl part 0 1;\
u-boot part 0 2;u-boot-env part 0 3;UBI partubi 0 4"
U-Boot> dfu 0 sf 0:0:10000000:0

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
doc/README.dfu
drivers/dfu/Kconfig
drivers/dfu/dfu_sf.c
include/dfu.h