diff options
| author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-08-05 16:17:37 +0530 | 
|---|---|---|
| committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-10-07 17:55:42 +0530 | 
| commit | 53752c90e02031e89ff8f52f85c0da3c982ea70b (patch) | |
| tree | 74c09f8443a4980bab351968a483b21fc079ef0f | |
| parent | 4d4ec9927f92014195bc5ba79ad43e1103256639 (diff) | |
| download | olio-uboot-2014.01-53752c90e02031e89ff8f52f85c0da3c982ea70b.tar.xz olio-uboot-2014.01-53752c90e02031e89ff8f52f85c0da3c982ea70b.zip | |
sf: probe: Add support for M25P* flash parts
Added M25P* parts are which are avilable in spi_flash_probe_legacy.c.
Updated the sector_size attributes as per the flash parts.
Looks fine for with this sector_size for computing the size of flash.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
| -rw-r--r-- | drivers/mtd/spi/spi_flash_probe.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c index 3e13837fe..7d8ed6e47 100644 --- a/drivers/mtd/spi/spi_flash_probe.c +++ b/drivers/mtd/spi/spi_flash_probe.c @@ -37,6 +37,14 @@ struct spi_flash_params {  static const struct spi_flash_params spi_flash_params_table[] = {  #ifdef CONFIG_SPI_FLASH_STMICRO		/* STMICRO */ +	{"M25P10",		0x202011, 0x0,     32 * 1024,	   4}, +	{"M25P20",		0x202012, 0x0,     64 * 1024,	   4}, +	{"M25P40",		0x202013, 0x0,     64 * 1024,	   8}, +	{"M25P80",		0x202014, 0x0,     64 * 1024,	  16}, +	{"M25P16",		0x202015, 0x0,     64 * 1024,	  32}, +	{"M25P32",		0x202016, 0x0,     64 * 1024,	  64}, +	{"M25P64",		0x202017, 0x0,     64 * 1024,	 128}, +	{"M25P128",		0x202018, 0x0,    256 * 1024,	  64},  	{"N25Q32",		0x20ba16, 0x0,     64 * 1024,	  64},  	{"N25Q32A",		0x20bb16, 0x0,     64 * 1024,	  64},  	{"N25Q64",		0x20ba17, 0x0,     64 * 1024,	 128}, @@ -59,7 +67,6 @@ static const struct spi_flash_params spi_flash_params_table[] = {  	 * RAMTRON  	 * SPANSION  	 * SST -	 * STMICRO (M25*)  	 * WINBOND  	 */  }; |