]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
sunxi_nand_spl: Remove NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END
authorHans de Goede <hdegoede@redhat.com>
Fri, 21 Aug 2015 13:23:57 +0000 (15:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 06:43:42 +0000 (08:43 +0200)
commit6a08d65acc0f5e62e3144e16fc4460e068e3c6ec
tree56dc82be9145d3932285f1a00982ad2fead8b847
parente5268616878690037474ff36cb6efb350b5e1061
sunxi_nand_spl: Remove NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END

We only ever use syndrome mode for the partitions which contain the SPL,
as that is required for the BROM to be able to read the SPL.

Instead of using some arbritray limit for deciding whether or not to
use syndrome, be smart and check if u-boot-dtb.bin is directly behind
the SPL, if it is not then it is on its own partition and we should not
use syndrome.

Note the reason why we only use syndrome mode for the SPL is because it
comeswith weaker randomization, introducing a risk for more bit errors,
so we want to avoid it when possible.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/Kconfig
drivers/mtd/nand/sunxi_nand_spl.c