aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf.c
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki2014-01-11 15:25:04 +0530
committerJagannadha Sutradharudu Teki2014-01-12 21:40:22 +0530
commitb902e07cea51e33fbe36453f7b1412dd7bbe760f (patch)
treeeeddfd3f94263f3557bdb3f6b6f1dabfc3757779 /drivers/mtd/spi/sf.c
parent056fbc73d54df64adcb93c513cba708acb2683bd (diff)
sf: Add CONFIG_SF_DUAL_FLASH
This config will use for defining greater than single flash support. currently - DUAL_STACKED and DUAL_PARALLEL. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd/spi/sf.c')
-rw-r--r--drivers/mtd/spi/sf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf.c b/drivers/mtd/spi/sf.c
index c780a81c599..664e86082b1 100644
--- a/drivers/mtd/spi/sf.c
+++ b/drivers/mtd/spi/sf.c
@@ -18,9 +18,10 @@ static int spi_flash_read_write(struct spi_slave *spi,
unsigned long flags = SPI_XFER_BEGIN;
int ret;
+#ifdef CONFIG_SF_DUAL_FLASH
if (spi->flags & SPI_XFER_U_PAGE)
flags |= SPI_XFER_U_PAGE;
-
+#endif
if (data_len == 0)
flags |= SPI_XFER_END;