From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from phoenix3.szarvasnet.hu ([87.101.127.16]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OgjQB-00078K-Ox for linux-mtd@lists.infradead.org; Wed, 04 Aug 2010 19:14:36 +0000 From: Gabor Juhos To: David Woodhouse Subject: [PATCH 2/3] mtd: m25p80: add support for the Intel/Numonyx {16, 32, 64}0S33B SPI flash chips Date: Wed, 4 Aug 2010 21:14:26 +0200 Message-Id: <1280949267-18154-2-git-send-email-juhosg@openwrt.org> In-Reply-To: <1280949267-18154-1-git-send-email-juhosg@openwrt.org> References: <1280949267-18154-1-git-send-email-juhosg@openwrt.org> Cc: Gabor Juhos , linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Gabor Juhos --- drivers/mtd/devices/m25p80.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 21d866c..57fec6d 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -645,6 +645,11 @@ static const struct spi_device_id m25p_ids[] = { { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) }, { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) }, + /* Intel/Numonyx -- xxxs33b */ + { "160s33b", INFO(0x898911, 0, 64 * 1024, 64, 0) }, + { "320s33b", INFO(0x898912, 0, 64 * 1024, 128, 0) }, + { "640s33b", INFO(0x898913, 0, 64 * 1024, 256, 0) }, + /* Macronix */ { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) }, { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) }, @@ -834,11 +839,12 @@ static int __devinit m25p_probe(struct spi_device *spi) dev_set_drvdata(&spi->dev, flash); /* - * Atmel and SST serial flash tend to power + * Atmel, SST and Intel/Numonyx serial flash tend to power * up with the software protection bits set */ if (info->jedec_id >> 16 == 0x1f || + info->jedec_id >> 16 == 0x89 || info->jedec_id >> 16 == 0xbf) { write_enable(flash); write_sr(flash, 0); -- 1.5.3.2