diff options
author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-06-19 15:33:58 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-06-23 22:02:50 +0530 |
commit | 1dcd6d03811d4f30052a5e24377b378867211b05 (patch) | |
tree | 2d8cac4b1b7bc109c9a039d10b71634f9ff02a53 /include/spi_flash.h | |
parent | fc207ee4db20ef6e769b0d08dab8b102748acb35 (diff) |
sf: Add bank addr code in CONFIG_SPI_FLASH_BAR
Defined bank addr code on CONFIG_SPI_FLASH_BAR macro, to reduce the
size for existing boards which has < 16Mbytes SPI flashes.
It's upto user which has provision to use the bank addr code for
flashes which has > 16Mbytes.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r-- | include/spi_flash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h index 91b43ee9df3..e22d698af42 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -38,13 +38,14 @@ struct spi_flash { u32 page_size; /* Erase (sector) size */ u32 sector_size; +#ifdef CONFIG_SPI_FLASH_BAR /* Bank read cmd */ u8 bank_read_cmd; /* Bank write cmd */ u8 bank_write_cmd; /* Current flash bank */ u8 bank_curr; - +#endif void *memory_map; /* Address of read-only SPI flash access */ int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf); |