]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spinand: add support for ESMT F50x1G41LB
authorIgor Prusov <ivprusov@salutedevices.com>
Tue, 17 Oct 2023 19:29:26 +0000 (22:29 +0300)
committerJagan Teki <jagan@edgeble.ai>
Thu, 14 Dec 2023 18:20:00 +0000 (23:50 +0530)
commit0f2c632b8cc3fa6986d66f1ec4daefb693e000eb
tree65e337491695e6037afc40d06b91a817f735821a
parent961c3e9f124c97350c470f65239e0d85aacf413b
mtd: spinand: add support for ESMT F50x1G41LB

Adaptation of Linux commit d74c36480a67

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: Igor Prusov <ivprusov@salutedevices.com>
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>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
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