From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Date: Tue, 8 Nov 2016 17:31:48 +0100 Subject: [U-Boot] [PATCH 5/7] nand: sunxi: Add options for the SPL NAND configuration In-Reply-To: <352020a574eb12267bdaee0efa48e5b2075c9ae0.1478621974.git-series.maxime.ripard@free-electrons.com> References: <352020a574eb12267bdaee0efa48e5b2075c9ae0.1478621974.git-series.maxime.ripard@free-electrons.com> Message-ID: <20161108173148.4f76e86c@bbrezillon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 8 Nov 2016 17:21:15 +0100 Maxime Ripard wrote: > 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 > --- > drivers/mtd/nand/Kconfig | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+), 0 deletions(-) > > diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig > index df154bfd32b9..a60abb625ee5 100644 > --- a/drivers/mtd/nand/Kconfig > +++ b/drivers/mtd/nand/Kconfig > @@ -73,6 +73,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