summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/spi_flash.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-04-30 21:11:20 +0800
committerMike Frysinger <vapier@gentoo.org>2010-06-30 23:47:08 -0400
commit12c2e3bbbe873ca79817845077dd8e6630d71158 (patch)
tree63f24e148eee66e77406f3647e0ac848288d6925 /drivers/mtd/spi/spi_flash.c
parent7319bcaf8ba1cddba2e56a722144eafc98868f77 (diff)
downloadu-boot-imx-12c2e3bbbe873ca79817845077dd8e6630d71158.zip
u-boot-imx-12c2e3bbbe873ca79817845077dd8e6630d71158.tar.gz
u-boot-imx-12c2e3bbbe873ca79817845077dd8e6630d71158.tar.bz2
spi_flash: support old STMicro parts with RES
Some old STMicro parts do not support JEDEC ID (0x9f). This patch uses RES (0xab) to get Electronic ID and translates it to JEDEC ID. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r--drivers/mtd/spi/spi_flash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index 612f819..dd0dbbf 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -147,6 +147,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
#endif
#ifdef CONFIG_SPI_FLASH_STMICRO
case 0x20:
+ case 0xff: /* Let the stmicro func handle non-JEDEC ids */
flash = spi_flash_probe_stmicro(spi, idcode);
break;
#endif