aboutsummaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorBin Meng2015-04-28 13:29:54 +0530
committerJagannadha Sutradharudu Teki2015-04-28 13:29:54 +0530
commitbe7be78e10bfca6fc2d5e8fbc71da2db6a55c842 (patch)
tree453f30ae8cff70921071ecfaea2e089d9e6b588f /include/spi_flash.h
parent611c9ba2b8c27d6e3c63b663c88f1c8be9638c3a (diff)
dm: sf: Save flash flags to struct spi_flash
Add a new member 'flags' in struct spi_flash to store the flash flags during spi_flash_validate_params(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 4791b94281c..f2814ef41a0 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -65,6 +65,7 @@ struct spi_flash {
struct spi_slave *spi;
#ifdef CONFIG_DM_SPI_FLASH
struct udevice *dev;
+ u16 flags;
#endif
const char *name;
u8 dual_flash;