mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 19 Sep 2018 11:40:49 +0000 (13:40 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commita68642adbb1a80d1a70a472d01a8a32aaa1a96c4
tree325210737a00faefab24074c9999470fde035a75
parent727d37826bd19905424d6f5cf8351fcb4be71206
mtd: rawnand: ESMT: retrieve ECC requirements from 5th id byte

This patch enables support to read the ECC level from the NAND flash
using ESMT SLC NAND ID byte 5 information as documented e.g. in the
following data sheet:

https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F59L1G81LA(2Y).pdf

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/Makefile
drivers/mtd/nand/raw/internals.h
drivers/mtd/nand/raw/nand_esmt.c [new file with mode: 0644]
drivers/mtd/nand/raw/nand_ids.c