mtd: spi: Add ISSI QSPI to lightweight SPI flash stack for spl
PATCH 1/1 mtd: spi: Add ISSI QSPI to lightweight SPI flash stack for spl
Add support for reading data/images from this ISSI QSPI flash.
Signed-off-by Boon Khai Ng <[email protected]>
--- drivers/mtd/spi/spi-nor-tiny.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/mtd/spi/spi-nor-tiny.c +3 -2
@@ -437,7 +437,7 @@ static int spi_nor_write_tiny(struct mtd_info *mtd, loff_t to, size_t len,return -ENOTSUPP ; } -#ifdef CONFIG_SPI_FLASH_MACRONIX +#if defined(CONFIG_SPI_FLASH_MACRONIX ) || defined(CONFIG_SPI_FLASH_ISSI )/** * macronix_quad_enable() - set QE bit in Status Register. * @nor: pointer to a 'struct spi_nor'
@@ -666,8 +666,9 @@ static int spi_nor_setup(struct spi_nor *nor, const struct flash_info *info,/* Enable Quad I/O if needed. */ if (spi_nor_get_protocol_width (nor->read_proto) ==4 ) {switch (JEDEC_MFR (info)) { -#ifdef CONFIG_SPI_FLASH_MACRONIX +#if defined(CONFIG_SPI_FLASH_MACRONIX ) || defined(CONFIG_SPI_FLASH_ISSI )case SNOR_MFR_MACRONIX : +case SNOR_MFR_ISSI : err =macronix_quad_enable (nor);break ;#endif
Signature · 1 line
2.43.7
Quoted 6 lines · Boon Khai Ng
Add support for reading data/images from this ISSI QSPI flash.
Signed-off-by Boon Khai Ng <[email protected]>--- drivers/mtd/spi/spi-nor-tiny.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
This introduces a failure to build on sifive_unleashed
Signature · 1 line
Tom