diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-04-28 13:29:54 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> | 2015-04-28 13:29:54 +0530 |
commit | be7be78e10bfca6fc2d5e8fbc71da2db6a55c842 (patch) | |
tree | 453f30ae8cff70921071ecfaea2e089d9e6b588f /drivers/mtd | |
parent | 611c9ba2b8c27d6e3c63b663c88f1c8be9638c3a (diff) | |
download | u-boot-imx-be7be78e10bfca6fc2d5e8fbc71da2db6a55c842.zip u-boot-imx-be7be78e10bfca6fc2d5e8fbc71da2db6a55c842.tar.gz u-boot-imx-be7be78e10bfca6fc2d5e8fbc71da2db6a55c842.tar.bz2 |
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 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/sf_probe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index de8d0b7..d8ab6a1 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -132,6 +132,9 @@ static int spi_flash_validate_params(struct spi_slave *spi, u8 *idcode, flash->name = params->name; flash->memory_map = spi->memory_map; flash->dual_flash = flash->spi->option; +#ifdef CONFIG_DM_SPI_FLASH + flash->flags = params->flags; +#endif /* Assign spi_flash ops */ #ifndef CONFIG_DM_SPI_FLASH |