Patchwork [U-Boot,1/2] sf: stmicro: Add support for N25Q64

login
register
mail settings
Submitter Jagannadha Sutradharudu Teki
Date Jan. 23, 2013, 2:08 p.m.
Message ID <59914c17-2fad-4b46-99ed-49fda67e6444@CO1EHSMHS028.ehs.local>
Download mbox | patch
Permalink /patch/214970/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Jagannadha Sutradharudu Teki - Jan. 23, 2013, 2:08 p.m.
Hi Andrew,

For Stmicro and Numonyx have same manufacture Id (0x20).

Recently they is support added to identify both the flashes in same file stmicro.c
http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commitdiff;h=63ff6a66aef4d838fa6e3737d3e242697c0a591d

Thanks,
Jagan.

From: Andrew Dyer [mailto:amdyer@gmail.com]
Sent: 23 January 2013 19:13
To: Michal Simek
Cc: u-boot@lists.denx.de; Jagannadha Sutradharudu Teki
Subject: Re: [U-Boot] [PATCH 1/2] sf: stmicro: Add support for N25Q64

On Wed, Jan 23, 2013 at 6:58 AM, Michal Simek <michal.simek@xilinx.com<mailto:michal.simek@xilinx.com>> wrote:
From: Jagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com<mailto:jagannadha.sutradharudu-teki@xilinx.com>>

Add support for Numonyx N25Q064 SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com<mailto:jaganna@xilinx.com>>
Signed-off-by: Michal Simek <michal.simek@xilinx.com<mailto:michal.simek@xilinx.com>>
---
 drivers/mtd/spi/stmicro.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

--
1.7.0.4

This part is made by Micron, ST doesn't sell flash and Numonyx doesn't exist anymore.  Is this really the right place?

Patch

diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 30b626a..96403ee 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -93,6 +93,12 @@  static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
                .name = "M25P128",
        },
        {
+               .id = 0xba17,
+               .pages_per_sector = 256,
+               .nr_sectors = 128,
+               .name = "N25Q64",
+       },
+       {
                .id = 0xba18,
                .pages_per_sector = 256,
                .nr_sectors = 256,