imx-bbu-nand-fcb: Workaround ROM checking fingerprint before correcting bitflips
The FCB block is protected with a ECC code which can correct 1bit errors
and detect 2bit errors. This works fine for all fields except the
fingerprint marker (Containing "FCB") and the version field. Here the ROM
chooses to check the correct value of the fields *before* running the ECC
correction. Thus a FCB is not used by the ROM anymore when it has a bitflip
in the fingerprint or version. For us this means we have to rewrite the FCB
in this case, so reject the faulty FCB in read_fcb_hamming_13_8() which
triggers a rewrite during the check operation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1994145 commit ce2484df6a520b1e5bcb7a00c5022d490ef083a8
@Sascha Hauer Sascha Hauer authored on 24 Sep 2018
Showing 1 changed file
View
common/imx-bbu-nand-fcb.c