sf: Add memory mapped read support
authorPoddar, Sourav <sourav.poddar@ti.com>
Mon, 7 Oct 2013 10:23:01 +0000 (15:53 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Mon, 7 Oct 2013 12:25:51 +0000 (17:55 +0530)
commit004f15b6000e220b74433b190e60805ce8776d92
tree33fdceed2d361fffdc0d9f8f7f0282b425c0d978
parent62d206dc3126914f187cfb72e8a7c6cf84c19b7c
sf: Add memory mapped read support

Qspi controller can have a memory mapped port which can be used for
data read. Added support to enable memory mapped port read.

This patch enables the following:
- It enables exchange of memory map address between mtd and qspi
through the introduction of "memory_map" flag.
- Add support to communicate to the driver that memory mapped
 transfer is to be started through introduction of new flags like
"SPI_XFER_MEM_MAP" and "SPI_XFER_MEM_MAP_END".

This will enable the spi controller to do memory mapped configurations
if required.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/mtd/spi/sf_ops.c
drivers/mtd/spi/sf_probe.c
include/spi.h