Skip to contentSkip to conversation

sunxi_nand_spl: Add config parameter for 4KiB page sized NAND devices

PATCH New Stefan Roese 2 participants 2 messages Sep 4, 2015 – Sep 10, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Hans de Goede <[email protected]>
Cc Ian Campbell <[email protected]>
---
 drivers/mtd/nand/sunxi_nand_spl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/sunxi_nand_spl.c +1 -0
index bf9b1b1..5985534 100644
@@ -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;
Signature · 1 line
2.5.1
#1 lore raw

PATCH 1/1 sunxi_nand_spl: Add config parameter for 4KiB page sized NAND devices

Hi,

Quoted 7 lines · Stefan Roese

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.

Cc Hans de Goede <[email protected]>
Cc Ian Campbell <[email protected]>

Thanks I've queued this in my tree and it will be part of the next pull-req.

Regards,

Hans

Quoted 17 lines
---
  drivers/mtd/nand/sunxi_nand_spl.c | 1 +
  1 file changed, 1 insertion(+)
drivers/mtd/nand/sunxi_nand_spl.c +1 -0
index bf9b1b1..5985534 100644
@@ -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;