[PATCH v1 0/2] mtd: spinand: add support for ESMT F50x1G41LB

Igor Prusov ivprusov at salutedevices.com
Wed Oct 4 17:07:02 CEST 2023


This series ports ESMT NAND support from Linux. Since both ESMT and
Gigadevice use the same manufacturer ID, core part of SPI NAND framework
should be updated as well to allow for such chips detection. Currently
all detect() ops return an error code when chip's manufacturer ID
matches, but device ID does not. This forces spinand_manufacturer_detect
function to stop and report an error. Porting a rework from Linux allows
us to fix this issue and keep u-boot and kernel in sync.

Igor Prusov (2):
  mtd: spinand: rework detect procedure for different READ_ID operation
  mtd: spinand: add support for ESMT F50x1G41LB

 drivers/mtd/nand/spi/Makefile     |   2 +-
 drivers/mtd/nand/spi/core.c       |  86 ++++++++++++++-----
 drivers/mtd/nand/spi/esmt.c       | 137 ++++++++++++++++++++++++++++++
 drivers/mtd/nand/spi/gigadevice.c |  30 ++-----
 drivers/mtd/nand/spi/macronix.c   |  45 ++++------
 drivers/mtd/nand/spi/micron.c     |  50 +++++------
 drivers/mtd/nand/spi/toshiba.c    |  66 +++++++-------
 drivers/mtd/nand/spi/winbond.c    |  34 ++------
 include/linux/mtd/spinand.h       |  67 ++++++++++-----
 9 files changed, 325 insertions(+), 192 deletions(-)
 create mode 100644 drivers/mtd/nand/spi/esmt.c

-- 
2.34.1



More information about the U-Boot mailing list