[PATCH v7 0/4] Add octal DTR support for Macronix flash

JaimeLiao jaimeliao.tw at gmail.com
Thu Mar 3 07:28:23 CET 2022


This series add support for Macronix octal DTR flash, add flag for
Softreset with "INVERT" command extension type on boot and follow
linux kernel to enable 4byte opcode when possible.

v7:
  Correct title and description of patchworks.
  Correct description for spi_nor_macronix_octal_dtr_enable.
  Add SFDP informations for flashes in commit log.

v6:
  Parcing SCCR 22nd dword for checking Octal DTR mode support

v5:
  Replace SPI_FLASH_MACRONIX_OCTAL with SPI_FLASH_MACRONIX.
  Remove patch of set_4byte opcode.

v4:
  Add flag SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT to seperate command extension
  types.
  Replace ifdef with CONFIG_IS_ENABLED and modify uncorrect descriptions.

v3:
  Add flag  SPI_NOR_CMD_EXT_INVERT to seperate command extension types.
  replace CONFIG_SPI_FLASH_MACRONIX with SPI_FLASH_MACRONIX_OCTAL for
  spi_nor_macronix_octal_dtr_enable function.
v2:
  add ret checking for write enable in spi_nor_macronix_octal_dtr_enable
  function.

JaimeLiao (4):
  mtd: spi-nor: add support for Macronix Octal flash
  mtd: spi-nor-core: Adding different type of command extension in Soft
    Reset
  mtd: spi-nor: Parse SFDP SCCR Map
  mtd: spi-nor-core: Add support for Macronix Octal flash

 drivers/mtd/spi/Kconfig        |   7 ++
 drivers/mtd/spi/spi-nor-core.c | 141 ++++++++++++++++++++++++++++++++-
 drivers/mtd/spi/spi-nor-ids.c  |  19 ++++-
 include/linux/mtd/spi-nor.h    |  13 ++-
 4 files changed, 176 insertions(+), 4 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list