rockchip: mkimage: rkspi: include the header sector in the SPI size calculation
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 17 Apr 2017 15:48:00 +0000 (17:48 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
commit798c93faf3b86f0eee542fbe8698618e05b48a09
tree2eac9422694876c67e6c2a5e50461dc35e649a39
parent3e75c07ddbf8c6bfa86ec7f29a30f274db435a13
rockchip: mkimage: rkspi: include the header sector in the SPI size calculation

Our earlier change broke the generation of SPI images, by excluding the
2K used for header0 from the size-calculation.

This commit makes sure that these are included before calculating the
required total size (including the padding from the 2K-from-every-4K
conversion).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/rkspi.c