From: Stefan Roese Date: Fri, 4 Sep 2015 12:43:00 +0000 (+0200) Subject: sunxi_nand_spl: Add config parameter for 4KiB page sized NAND devices X-Git-Tag: v2015.10-rc4~174^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc19722f040fe326b1622dd1e2699179def7e45d;p=u-boot sunxi_nand_spl: Add config parameter for 4KiB page sized NAND devices This patch adds support for NAND chips with 4KiB page size and 24/1024 ECC strength. Like the Micron MT29F32G08CBACAWP which is used on the ICnova-A20 SoM. Signed-off-by: Stefan Roese Acked-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/mtd/nand/sunxi_nand_spl.c b/drivers/mtd/nand/sunxi_nand_spl.c index bf9b1b1450..5985534e5f 100644 --- a/drivers/mtd/nand/sunxi_nand_spl.c +++ b/drivers/mtd/nand/sunxi_nand_spl.c @@ -321,6 +321,7 @@ static int nand_read_buffer(uint32_t offs, unsigned int size, void *dest, { 8192, 40, 1024, 5 }, { 16384, 56, 1024, 5 }, { 8192, 24, 1024, 5 }, + { 4096, 24, 1024, 5 }, }; static int nand_config = -1; int i;