summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/spi_flash.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-27 19:27:58 -0400
committerMike Frysinger <vapier@gentoo.org>2009-04-02 06:49:58 -0400
commit1c5874374e091b4bb62917c519861f7682fe066e (patch)
tree25ef5cd64d3eb42791eb3883f03cdba37e893b29 /drivers/mtd/spi/spi_flash.c
parentf773a1bbdb8f3bf1ddab2874f36f043c4f8f044d (diff)
downloadu-boot-imx-1c5874374e091b4bb62917c519861f7682fe066e.zip
u-boot-imx-1c5874374e091b4bb62917c519861f7682fe066e.tar.gz
u-boot-imx-1c5874374e091b4bb62917c519861f7682fe066e.tar.bz2
sf: add driver for SST flashes
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.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 f002c0e..21ba5f9 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -139,6 +139,11 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
flash = spi_flash_probe_stmicro(spi, idcode);
break;
#endif
+#ifdef CONFIG_SPI_FLASH_SST
+ case 0xBF:
+ flash = spi_flash_probe_sst(spi, idcode);
+ break;
+#endif
default:
debug("SF: Unsupported manufacturer %02X\n", idcode[0]);
flash = NULL;