Patchwork mtd: devices: added the 16mb winbond device

login
register
mail settings
Submitter girishks2000@gmail.com
Date April 16, 2013, 8:31 a.m.
Message ID <516d0c68.e10b420a.287d.ffff894c@mx.google.com>
Download mbox | patch
Permalink /patch/236862/
State Accepted
Commit 4b6ff7afe8ca356ac51e98a7e01997cc17669254
Headers show

Comments

girishks2000@gmail.com - April 16, 2013, 8:31 a.m.
From: Girish K S <ks.giri@samsung.com>

added a 16mb winbond devce to the device list
erase size = 64k and number of blocks = 256

Signed-off-by: Girish K S <ks.giri@samsung.com>
---
 drivers/mtd/devices/m25p80.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Artem Bityutskiy - May 13, 2013, 7:15 a.m.
On Tue, 2013-04-16 at 14:01 +0530, girishks2000@gmail.com wrote:
> From: Girish K S <ks.giri@samsung.com>
> 
> added a 16mb winbond devce to the device list
> erase size = 64k and number of blocks = 256
> 
> Signed-off-by: Girish K S <ks.giri@samsung.com>

Pushed to l2-mtd.git, but please, remember to use better suffixes. E.g.,
mb may mean mega bytes, or mega bits. 16MiB device, 64KiB block size is
a lot less ambiguous way communicate the sizes.

I've amended your commit message.

Patch

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 2f3d2a5..c81ee12 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -840,6 +840,7 @@  static const struct spi_device_id m25p_ids[] = {
 	{ "w25q32dw", INFO(0xef6016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "w25x64", INFO(0xef3017, 0, 64 * 1024, 128, SECT_4K) },
 	{ "w25q64", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, 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) },