summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 16:50:45 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 16:50:45 +0530
commitff063ed4808e4ead3021eaf53ee4fdb80c9e91f8 (patch)
tree048ac50a568a8d739a9a8528bbaf7018c27b6aa3 /include/spi_flash.h
parentc4ba0d82d329791c3f0456d88e93032b11e48535 (diff)
sf: Discover read dummy_byte
Discovered the read dummy_byte based on the configured read command. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 99724a0d3e..437937cfc6 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -72,6 +72,7 @@ extern const struct spi_flash_params spi_flash_params_table[];
* @erase_cmd: Erase cmd 4K, 32K, 64K
* @read_cmd: Read cmd - Array Fast, Extn read and quad read.
* @write_cmd: Write cmd - page and quad program.
+ * @dummy_byte: Dummy cycles for read operation.
* @memory_map: Address of read-only SPI flash access
* @read: Flash read ops: Read len bytes at offset into buf
* Supported cmds: Fast Array Read
@@ -98,6 +99,7 @@ struct spi_flash {
u8 erase_cmd;
u8 read_cmd;
u8 write_cmd;
+ u8 dummy_byte;
void *memory_map;
int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf);