]> git.sur5r.net Git - u-boot/commit
fastboot: sparse: implement reserve()
authorSteve Rae <srae@broadcom.com>
Tue, 7 Jun 2016 18:19:38 +0000 (11:19 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 27 Jun 2016 20:37:39 +0000 (16:37 -0400)
commit2c72404687f1061d042769cc65ef90e6c3da3f96
tree7ccf1a26328276f817dd8c0336ac8b74d911d28b
parent9bc34799c8e6d8907b18e02c405576aa6bf9ce15
fastboot: sparse: implement reserve()

In order to process the CHUNK_TYPE_DONT_CARE properly, there is
a requirement to be able to 'reserve' a specified number of blocks
in the storage media. Because of the special handling of "bad blocks"
in NAND devices, this is implemented in a storage abstraction function.

Signed-off-by: Steve Rae <srae@broadcom.com>
Reviewed-by: Maxime Ripard <maxime.ripard@free-electrons.com>
common/fb_mmc.c
common/fb_nand.c
common/image-sparse.c
include/image-sparse.h