mtd: spinand: add support for ESMT F50x1G41LB
authorChuanhong Guo <gch981213@gmail.com>
Wed, 29 Mar 2023 11:42:40 +0000 (14:42 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 3 Apr 2023 16:00:29 +0000 (18:00 +0200)
commitd74c36480a679b27ce8a70c2e88fed31b86323d9
tree6e9c602295e58a799f65a4070f65b2c031af0f49
parentbb685c1f35c357e9b935880b2946b402d6860ee0
mtd: spinand: add support for ESMT F50x1G41LB

This patch adds support for ESMT F50L1G41LB and F50D1G41LB.
It seems that ESMT likes to use random JEDEC ID from other vendors.
Their 1G chips uses 0xc8 from GigaDevice and 2G/4G chips uses 0x2c from
Micron. For this reason, the ESMT entry is named esmt_c8 with explicit
JEDEC ID in variable name.

Datasheets:
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50L1G41LB(2M).pdf
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50D1G41LB(2M).pdf

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru>
Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Tested-by: Martin Kurbanov <mmkurbanov@sberdevices.ru>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230329114240.378722-1-mmkurbanov@sberdevices.ru
drivers/mtd/nand/spi/Makefile
drivers/mtd/nand/spi/core.c
drivers/mtd/nand/spi/esmt.c [new file with mode: 0644]
include/linux/mtd/spinand.h