public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mxs_nand: Fix ECC strength for NAND flash with OOB size of 256
@ 2015-04-12  8:17 Heiko Schocher
  2015-04-13  8:39 ` Jörg Krause
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Schocher @ 2015-04-12  8:17 UTC (permalink / raw)
  To: u-boot

On the i.mx6 based aristainetos2 board a Toshiba TH58NYG3S0HBAI4
is used, which has 4096 pagesize and 256b oob. The ECC strength
was not correct detected by U-Boot

Signed-off-by: Heiko Schocher <hs@denx.de>
---

 drivers/mtd/nand/mxs_nand.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index 2d2b938..00bf036 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -163,6 +163,9 @@ static inline uint32_t mxs_nand_get_ecc_strength(uint32_t page_data_size,
 
 		if (page_oob_size == 224)
 			return 16;
+
+		if (page_oob_size == 256)
+			return 18;
 	}
 
 	return 0;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-13 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12  8:17 [U-Boot] [PATCH] mxs_nand: Fix ECC strength for NAND flash with OOB size of 256 Heiko Schocher
2015-04-13  8:39 ` Jörg Krause
2015-04-13  8:42   ` Marek Vasut
2015-04-13  9:01     ` Heiko Schocher
2015-04-13  9:12       ` Marek Vasut
2015-04-13 11:38       ` Jörg Krause
2015-04-13 13:25         ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox