Skip to content

Commit f80e521

Browse files
juhosgDavid Woodhouse
authored andcommitted
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>
1 parent 60845e7 commit f80e521

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/mtd/devices/m25p80.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,11 @@ static const struct spi_device_id m25p_ids[] = {
645645
{ "en25p32", INFO(0x1c2016, 0, 64 * 1024, 64, 0) },
646646
{ "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) },
647647

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+
648653
/* Macronix */
649654
{ "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) },
650655
{ "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) },
@@ -834,11 +839,12 @@ static int __devinit m25p_probe(struct spi_device *spi)
834839
dev_set_drvdata(&spi->dev, flash);
835840

836841
/*
837-
* Atmel and SST serial flash tend to power
842+
* Atmel, SST and Intel/Numonyx serial flash tend to power
838843
* up with the software protection bits set
839844
*/
840845

841846
if (info->jedec_id >> 16 == 0x1f ||
847+
info->jedec_id >> 16 == 0x89 ||
842848
info->jedec_id >> 16 == 0xbf) {
843849
write_enable(flash);
844850
write_sr(flash, 0);

0 commit comments

Comments
 (0)