diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-08-05 10:58:36 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-06 05:16:16 -0400 |
commit | f80e521c916cb06ddd95bd90f2cf50b523be52f2 (patch) | |
tree | 5d50c0a6c1103c5625c595cf617629b9c0eff5a3 /drivers | |
parent | 60845e7272632cfc5babc22eb8b72462a303dffa (diff) |
mtd: m25p80: add support for the Intel/Numonyx {16,32,64}0S33B SPI flash chips
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 21d866c31bb9..8120cf31ef65 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[] = { | |||
645 | { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) }, | 645 | { "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) }, |
646 | { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) }, | 646 | { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) }, |
647 | 647 | ||
648 | /* Intel/Numonyx -- xxxs33b */ | ||
649 | { "160s33b", INFO(0x898911, 0, 64 * 1024, 32, 0) }, | ||
650 | { "320s33b", INFO(0x898912, 0, 64 * 1024, 64, 0) }, | ||
651 | { "640s33b", INFO(0x898913, 0, 64 * 1024, 128, 0) }, | ||
652 | |||
648 | /* Macronix */ | 653 | /* Macronix */ |
649 | { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) }, | 654 | { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) }, |
650 | { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) }, | 655 | { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) }, |
@@ -834,11 +839,12 @@ static int __devinit m25p_probe(struct spi_device *spi) | |||
834 | dev_set_drvdata(&spi->dev, flash); | 839 | dev_set_drvdata(&spi->dev, flash); |
835 | 840 | ||
836 | /* | 841 | /* |
837 | * Atmel and SST serial flash tend to power | 842 | * Atmel, SST and Intel/Numonyx serial flash tend to power |
838 | * up with the software protection bits set | 843 | * up with the software protection bits set |
839 | */ | 844 | */ |
840 | 845 | ||
841 | if (info->jedec_id >> 16 == 0x1f || | 846 | if (info->jedec_id >> 16 == 0x1f || |
847 | info->jedec_id >> 16 == 0x89 || | ||
842 | info->jedec_id >> 16 == 0xbf) { | 848 | info->jedec_id >> 16 == 0xbf) { |
843 | write_enable(flash); | 849 | write_enable(flash); |
844 | write_sr(flash, 0); | 850 | write_sr(flash, 0); |