]> git.baikalelectronics.ru Git - uboot.git/commit
spl: fit: nand: skip bad block handling if NAND chip not fully defined
authorTim Harvey <tharvey@gateworks.com>
Mon, 1 Mar 2021 22:33:27 +0000 (14:33 -0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 18:29:53 +0000 (20:29 +0200)
commit89189b5141ea4e3532f5374d9f85c12cff2c49a7
tree00e7819aa28cab81b01de5c4aa84d0e5d4523ab0
parent7b56e19855d1660aadaf79e5ffe80a91fab3a40d
spl: fit: nand: skip bad block handling if NAND chip not fully defined

commit 350f034bd0b1 ("spl: fit: nand: fix fit loading in case of bad blocks")
added support for adjusting the image offset to account for bad blocks.
However this requires nand_spl_adjust_offset() which requires fully defined
specifics of the NAND chip being used may not be avialable.

Allow skipping this support for drivers or configs which don't specify
the NAND chip details statically with defines.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_nand.c