From patchwork Thu Oct 4 17:40:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: mtd: m25p80: Add support for Numonyx N25Q128 Date: Thu, 04 Oct 2012 07:40:16 -0000 From: Michal Simek X-Patchwork-Id: 189218 Message-Id: <1349372416-16925-1-git-send-email-monstr@monstr.eu> To: linux-kernel@vger.kernel.org Cc: Michal Simek , Mike Frysinger , Artem Bityutskiy , Wendy Liang , linux-mtd@lists.infradead.org, David Woodhouse From: Wendy Liang Add the id and sector mappings for SPI flash chips. Signed-off-by: Wendy Liang Signed-off-by: Michal Simek CC: David Woodhouse CC: Artem Bityutskiy CC: Mike Frysinger CC: linux-mtd@lists.infradead.org --- drivers/mtd/devices/m25p80.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 5d0d68c..cad89f1 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -722,6 +722,9 @@ static const struct spi_device_id m25p_ids[] = { { "m25px32-s1", INFO(0x206316, 0, 64 * 1024, 64, SECT_4K) }, { "m25px64", INFO(0x207117, 0, 64 * 1024, 128, 0) }, + /* Numonyx -- n25q */ + { "n25q128", INFO(0x20ba18, 0, 64 * 1024, 256, 0) }, + /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */ { "w25x10", INFO(0xef3011, 0, 64 * 1024, 2, SECT_4K) }, { "w25x20", INFO(0xef3012, 0, 64 * 1024, 4, SECT_4K) },