summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi/spi_flash.c
diff options
context:
space:
mode:
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>2008-08-06 16:08:41 -0500
committerJohn Rigby <jrigby@freescale.com>2008-09-09 11:57:29 -0600
commit7b7a869a8ba3bd6d9bffb748c91232141330f514 (patch)
treeaae89b0929cee35126666a332f9ea6829e30b083 /drivers/mtd/spi/spi_flash.c
parent3b20fd83c73c22acfcb0c6663be747bd5c8b7011 (diff)
downloadtalos-obmc-uboot-7b7a869a8ba3bd6d9bffb748c91232141330f514.tar.gz
talos-obmc-uboot-7b7a869a8ba3bd6d9bffb748c91232141330f514.zip
mtd: SPI Flash: Support the STMicro Flash
Add MTD SPI Flash support for M25P16, M25P20, M25P32, M25P40, M25P64, M25P80, M25P128. Signed-off-by: Jason McMullan <mcmullan@netapp.com> Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r--drivers/mtd/spi/spi_flash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index d581cb3e89..d1d81af0ec 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -134,6 +134,11 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
flash = spi_flash_probe_atmel(spi, idcode);
break;
#endif
+#ifdef CONFIG_SPI_FLASH_STMICRO
+ case 0x20:
+ flash = spi_flash_probe_stmicro(spi, idcode);
+ break;
+#endif
default:
debug("SF: Unsupported manufacturer %02X\n", idcode[0]);
flash = NULL;
OpenPOWER on IntegriCloud