Patchwork mtd: m25p80: add entry for w25q128

login
register
mail settings
Submitter Rafał Miłecki
Date Feb. 24, 2013, 12:57 p.m.
Message ID <1361710646-11731-1-git-send-email-zajec5@gmail.com>
Download mbox | patch
Permalink /patch/222765/
State Accepted
Commit 001c33ab4caccefb41ebd00a9ea2cd2bf386c16c
Headers show

Comments

Rafał Miłecki - Feb. 24, 2013, 12:57 p.m.
This device was reported over a year ago on OpenWrt mailing list in the
thread [OpenWrt-Devel] RedBoot partition table with winbond m25q128vb
(unfortunately, I can't find message id). Macpaul seemed to have
problems with partition driver, but it seems the device was working OK.

Reported-by: Macpaul Lin <macpaul@gmail.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
Felix: I've asked you for upstreaming this patch about a month ago, but
I didn't receive any answer, hope it's fine.
---
 drivers/mtd/devices/m25p80.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 5b6b072..1baf80b 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -838,6 +838,7 @@  static const struct spi_device_id m25p_ids[] = {
 	{ "w25q64", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) },
 	{ "w25q80", INFO(0xef5014, 0, 64 * 1024,  16, SECT_4K) },
 	{ "w25q80bl", INFO(0xef4014, 0, 64 * 1024,  16, SECT_4K) },
+	{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
 	{ "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K) },
 
 	/* Catalyst / On Semiconductor -- non-JEDEC */