]> git.baikalelectronics.ru Git - uboot.git/commit
spl: spl_nand: Fix bad block handling in fitImage
authorMichael Trimarchi <michael@amarulasolutions.com>
Sun, 15 May 2022 09:35:33 +0000 (11:35 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:48 +0000 (12:36 +0200)
commit4030ec976fadd4387ac6c6118fdeae0621ba1c00
tree9af0b8c51d1dd9c9ef29b83c7350272986a34b57
parent467ec709984c098d220c1b361287558df3c895b0
spl: spl_nand: Fix bad block handling in fitImage

If the fitImage has some bad block in fit image area, the
offset must be recalulcated. This should be done always.
After implementing it in mxs now is possible to call the function
even for that platform.

Cc: Fabio Estevam <festevam@gmail.com>
Tested-By: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
common/spl/spl_nand.c