summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-06-19 15:31:23 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-06-23 22:02:49 +0530
commitcf6b11dcda2f13d1c05c2f20e2a1735a833a41fe (patch)
tree8ce3b5596e77ff5e66ead1bbd175398b07bd146a /include/spi_flash.h
parentc9fcb59d7db74b93df9ee0a830bb9f43888f195c (diff)
downloadu-boot-imx-cf6b11dcda2f13d1c05c2f20e2a1735a833a41fe.zip
u-boot-imx-cf6b11dcda2f13d1c05c2f20e2a1735a833a41fe.tar.gz
u-boot-imx-cf6b11dcda2f13d1c05c2f20e2a1735a833a41fe.tar.bz2
sf: Discover the bank addr commands
Bank/Extended addr commands are specific to particular flash vendor so discover them based on the idocode0. Assign the discovered bank commands to spi_flash members so-that the bank read/write will use their specific operations. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 3b6a44e..38587c2 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -38,6 +38,10 @@ struct spi_flash {
u32 page_size;
/* Erase (sector) size */
u32 sector_size;
+ /* Bank read cmd */
+ u8 bank_read_cmd;
+ /* Bank write cmd */
+ u8 bank_write_cmd;
void *memory_map; /* Address of read-only SPI flash access */
int (*read)(struct spi_flash *flash, u32 offset,