From f2c822c6e2fd3c19872f3a7bc2bfd45d75cc303a Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Sun, 24 Jan 2016 19:29:05 +0530 Subject: [PATCH] spi_flash: Add support of qeb set to ISSI devices Added support to set quad enable bit for ISSI devices Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/mtd/spi/spi_flash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index ed259b2c026..975ec6e9fa5 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -954,7 +954,7 @@ int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len) #endif -#ifdef CONFIG_SPI_FLASH_MACRONIX +#if defined(CONFIG_SPI_FLASH_MACRONIX) || defined(CONFIG_SPI_FLASH_ISSI) static int spi_flash_set_qeb_mxic(struct spi_flash *flash) { u8 qeb_status; @@ -1039,8 +1039,9 @@ static int spi_flash_set_qeb_winspan(struct spi_flash *flash) static int spi_flash_set_qeb(struct spi_flash *flash, u8 idcode0) { switch (idcode0) { -#ifdef CONFIG_SPI_FLASH_MACRONIX +#if defined(CONFIG_SPI_FLASH_MACRONIX) || defined(CONFIG_SPI_FLASH_ISSI) case SPI_FLASH_CFI_MFR_MACRONIX: + case SPI_FLASH_CFI_MFR_ISSI: return spi_flash_set_qeb_mxic(flash); #endif #if defined(CONFIG_SPI_FLASH_SPANSION) || defined(CONFIG_SPI_FLASH_WINBOND) -- 2.47.3