diff mbox

[U-Boot] sf:stmicro: Add support for N25Q512A

Message ID 1372154803-1968-1-git-send-email-Priyanka.Jain@freescale.com
State Rejected
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Priyanka Jain June 25, 2013, 10:06 a.m. UTC
Add support for Micron N25Q512A serial flash memory
Features: 64MB size, 1.8V, Multiple I/O, 4KB Sector erase
Memory is organised a 1024(64KB) main sectors.
Each sector is divided into 256 pages

Register set/Opcodes is similar to other N25Q family products

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
---
 drivers/mtd/spi/stmicro.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Jagan Teki June 25, 2013, 1:41 p.m. UTC | #1
On Tue, Jun 25, 2013 at 3:36 PM, Priyanka Jain
<Priyanka.Jain@freescale.com> wrote:
> Add support for Micron N25Q512A serial flash memory
> Features: 64MB size, 1.8V, Multiple I/O, 4KB Sector erase
> Memory is organised a 1024(64KB) main sectors.
> Each sector is divided into 256 pages
>
> Register set/Opcodes is similar to other N25Q family products
>
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> ---
>  drivers/mtd/spi/stmicro.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
> index 2a9972b..3ad20d3 100644
> --- a/drivers/mtd/spi/stmicro.c
> +++ b/drivers/mtd/spi/stmicro.c
> @@ -140,6 +140,12 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
>                 .nr_sectors = 512,
>                 .name = "N25Q256A",
>         },
> +       {
> +               .id = 0xbb20,
> +               .pages_per_sector = 256,
> +               .nr_sectors = 1024,
> +               .name = "N25Q512A",
> +       },
>  };
>

Thanks for your commit.

Please check with the same commit on u-boot-spi
http://git.denx.de/?p=u-boot/u-boot-spi.git;a=commitdiff;h=fd60c0ac31cbd9c76744cb34562f32d2a13fbe44

--
Thanks,
Jagan.
Jain Priyanka-B32167 June 27, 2013, 3:55 a.m. UTC | #2
Thanks for pointing.
Any idea? When it will be merged in u-boot tree.

Regards
Priyanka

> -----Original Message-----
> From: Jagan Teki [mailto:jagannadh.teki@gmail.com]
> Sent: Tuesday, June 25, 2013 7:11 PM
> To: Jain Priyanka-B32167
> Cc: u-boot@lists.denx.de
> Subject: Re: [U-Boot] [PATCH] sf:stmicro: Add support for N25Q512A
> 
> On Tue, Jun 25, 2013 at 3:36 PM, Priyanka Jain
> <Priyanka.Jain@freescale.com> wrote:
> > Add support for Micron N25Q512A serial flash memory
> > Features: 64MB size, 1.8V, Multiple I/O, 4KB Sector erase Memory is
> > organised a 1024(64KB) main sectors.
> > Each sector is divided into 256 pages
> >
> > Register set/Opcodes is similar to other N25Q family products
> >
> > Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> > ---
> >  drivers/mtd/spi/stmicro.c |    6 ++++++
> >  1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
> > index 2a9972b..3ad20d3 100644
> > --- a/drivers/mtd/spi/stmicro.c
> > +++ b/drivers/mtd/spi/stmicro.c
> > @@ -140,6 +140,12 @@ static const struct stmicro_spi_flash_params
> stmicro_spi_flash_table[] = {
> >                 .nr_sectors = 512,
> >                 .name = "N25Q256A",
> >         },
> > +       {
> > +               .id = 0xbb20,
> > +               .pages_per_sector = 256,
> > +               .nr_sectors = 1024,
> > +               .name = "N25Q512A",
> > +       },
> >  };
> >
> 
> Thanks for your commit.
> 
> Please check with the same commit on u-boot-spi
> http://git.denx.de/?p=u-boot/u-boot-
> spi.git;a=commitdiff;h=fd60c0ac31cbd9c76744cb34562f32d2a13fbe44
> 
> --
> Thanks,
> Jagan.
Jagan Teki July 3, 2013, 3:33 p.m. UTC | #3
On Thu, Jun 27, 2013 at 9:25 AM, Jain Priyanka-B32167
<B32167@freescale.com> wrote:
> Thanks for pointing.
> Any idea? When it will be merged in u-boot tree.

Please check it on master.

--
Thanks,
Jagan.
>
> Regards
> Priyanka
>
>> -----Original Message-----
>> From: Jagan Teki [mailto:jagannadh.teki@gmail.com]
>> Sent: Tuesday, June 25, 2013 7:11 PM
>> To: Jain Priyanka-B32167
>> Cc: u-boot@lists.denx.de
>> Subject: Re: [U-Boot] [PATCH] sf:stmicro: Add support for N25Q512A
>>
>> On Tue, Jun 25, 2013 at 3:36 PM, Priyanka Jain
>> <Priyanka.Jain@freescale.com> wrote:
>> > Add support for Micron N25Q512A serial flash memory
>> > Features: 64MB size, 1.8V, Multiple I/O, 4KB Sector erase Memory is
>> > organised a 1024(64KB) main sectors.
>> > Each sector is divided into 256 pages
>> >
>> > Register set/Opcodes is similar to other N25Q family products
>> >
>> > Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
>> > ---
>> >  drivers/mtd/spi/stmicro.c |    6 ++++++
>> >  1 files changed, 6 insertions(+), 0 deletions(-)
>> >
>> > diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
>> > index 2a9972b..3ad20d3 100644
>> > --- a/drivers/mtd/spi/stmicro.c
>> > +++ b/drivers/mtd/spi/stmicro.c
>> > @@ -140,6 +140,12 @@ static const struct stmicro_spi_flash_params
>> stmicro_spi_flash_table[] = {
>> >                 .nr_sectors = 512,
>> >                 .name = "N25Q256A",
>> >         },
>> > +       {
>> > +               .id = 0xbb20,
>> > +               .pages_per_sector = 256,
>> > +               .nr_sectors = 1024,
>> > +               .name = "N25Q512A",
>> > +       },
>> >  };
>> >
>>
>> Thanks for your commit.
>>
>> Please check with the same commit on u-boot-spi
>> http://git.denx.de/?p=u-boot/u-boot-
>> spi.git;a=commitdiff;h=fd60c0ac31cbd9c76744cb34562f32d2a13fbe44
>>
>> --
>> Thanks,
>> Jagan.
>
>
diff mbox

Patch

diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 2a9972b..3ad20d3 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -140,6 +140,12 @@  static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
 		.nr_sectors = 512,
 		.name = "N25Q256A",
 	},
+	{
+		.id = 0xbb20,
+		.pages_per_sector = 256,
+		.nr_sectors = 1024,
+		.name = "N25Q512A",
+	},
 };
 
 struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)