diff options
| author | Maxime Ripard <[email protected]> | 2017-02-27 18:22:12 +0100 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2017-04-07 11:23:46 +0530 |
| commit | ff93c2826565e5140b8c9d6826da0b79531645f2 (patch) | |
| tree | 38afd749740bfc0f028f039d8654759046b4b918 | |
| parent | c8564b24ab4862ca07d4b054cd2cdecfc22c43a9 (diff) | |
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 <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Acked-by: Scott Wood <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
| -rw-r--r-- | drivers/mtd/nand/Kconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index dbb39649ab6..a7b76f4218c 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 |
