From: Maxime Ripard Date: Mon, 27 Feb 2017 17:22:12 +0000 (+0100) Subject: nand: sunxi: Add options for the SPL NAND configuration X-Git-Tag: v2017.05-rc2~60^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff93c2826565e5140b8c9d6826da0b79531645f2;p=oweals%2Fu-boot.git nand: sunxi: Add options for the SPL NAND configuration The SPL image needs to be built with a different ECC configuration than the U-Boot binary. Add Kconfig options with defaults to provide a value that should work for anyone, but is still configurable if needs be. Signed-off-by: Maxime Ripard Acked-by: Boris Brezillon Reviewed-by: Hans de Goede Acked-by: Scott Wood Reviewed-by: Jagan Teki --- diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index dbb39649ab..a7b76f4218 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -74,6 +74,22 @@ config NAND_SUNXI The SPL driver only supports reading from the NAND using DMA transfers. +if NAND_SUNXI + +config NAND_SUNXI_SPL_ECC_STRENGTH + int "Allwinner NAND SPL ECC Strength" + default 64 + +config NAND_SUNXI_SPL_ECC_SIZE + int "Allwinner NAND SPL ECC Step Size" + default 1024 + +config NAND_SUNXI_SPL_USABLE_PAGE_SIZE + int "Allwinner NAND SPL Usable Page Size" + default 1024 + +endif + config NAND_ARASAN bool "Configure Arasan Nand" help