diff options
author | Jagannadha Sutradharudu Teki | 2014-01-12 21:40:11 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki | 2014-01-12 21:40:11 +0530 |
commit | f77f469117ab3184ac45683a50dc446265be28cc (patch) | |
tree | 3f5f0783521f5401251cc4a94503573dc2e91baf /drivers/mtd/spi/sf.c | |
parent | ab92224f4550f9677be32dd903e99acf1475dbf7 (diff) |
sf: Add dual memories support - DUAL_STACKED
This patch added support for accessing dual memories in
stacked connection with single chipselect line from controller.
For more info - see doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd/spi/sf.c')
-rw-r--r-- | drivers/mtd/spi/sf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf.c b/drivers/mtd/spi/sf.c index d5e175ca000..c780a81c599 100644 --- a/drivers/mtd/spi/sf.c +++ b/drivers/mtd/spi/sf.c @@ -18,6 +18,9 @@ static int spi_flash_read_write(struct spi_slave *spi, unsigned long flags = SPI_XFER_BEGIN; int ret; + if (spi->flags & SPI_XFER_U_PAGE) + flags |= SPI_XFER_U_PAGE; + if (data_len == 0) flags |= SPI_XFER_END; |