diff options
author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2014-01-11 15:25:04 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2014-01-12 21:40:22 +0530 |
commit | b902e07cea51e33fbe36453f7b1412dd7bbe760f (patch) | |
tree | eeddfd3f94263f3557bdb3f6b6f1dabfc3757779 /drivers/mtd/spi/sf_probe.c | |
parent | 056fbc73d54df64adcb93c513cba708acb2683bd (diff) | |
download | u-boot-imx-b902e07cea51e33fbe36453f7b1412dd7bbe760f.zip u-boot-imx-b902e07cea51e33fbe36453f7b1412dd7bbe760f.tar.gz u-boot-imx-b902e07cea51e33fbe36453f7b1412dd7bbe760f.tar.bz2 |
sf: Add CONFIG_SF_DUAL_FLASH
This config will use for defining greater than single flash support.
currently - DUAL_STACKED and DUAL_PARALLEL.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd/spi/sf_probe.c')
-rw-r--r-- | drivers/mtd/spi/sf_probe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 48de7c1..bc3cf6c 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -150,8 +150,10 @@ static struct spi_flash *spi_flash_validate_params(struct spi_slave *spi, flash->page_size = ((ext_jedec == 0x4d00) ? 512 : 256) << flash->shift; flash->sector_size = params->sector_size << flash->shift; flash->size = flash->sector_size * params->nr_sectors << flash->shift; +#ifdef CONFIG_SF_DUAL_FLASH if (flash->dual_flash & SF_DUAL_STACKED_FLASH) flash->size <<= 1; +#endif /* Compute erase sector and command */ if (params->flags & SECT_4K) { |