[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flashrom
Subject:    Re: [flashrom] [PATCH] Add support for "ST M25PX16" chip.
From:       Idwer Vollering <vidwer () gmail ! com>
Date:       2011-01-29 2:52:43
Message-ID: AANLkTikui0h26oKoxJTb6H-yix8bAwsL58qi8DRn8sv7 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2010/12/9 Carl Worth <cworth@cworth.org>

> This was created by simply copying the M25PX32 block and verifying
> with the M25PX16 datasheet which values needed to be changed. (The
> only changes are the model_id and the 4 size-related fields).
>
> Also, this commit sets the new M25PX16 as having write support tested,
> (where the M25PX32 does not). This is after running successful write
> and verify operations to 4 different M25PX16 chips with a Dediprog
> SF100.
>
> Signed-off-by: Carl Worth <carl.d.worth@intel.com>
>

Acked-by: Idwer Vollering <vidwer@gmail.com>


> ---
>  flashchips.c |   29 +++++++++++++++++++++++++++++
>  flashchips.h |    1 +
>  2 files changed, 30 insertions(+), 0 deletions(-)
>
> diff --git a/flashchips.c b/flashchips.c
> index e7a2223..0b84ae1 100644
> --- a/flashchips.c
> +++ b/flashchips.c
> @@ -6269,6 +6269,35 @@ struct flashchip flashchips[] = {
>
>        {
>                .vendor         = "ST",
> +               .name           = "M25PX16",
> +               .bustype        = CHIP_BUSTYPE_SPI,
> +               .manufacture_id = ST_ID,
> +               .model_id       = ST_M25PX16,
> +               .total_size     = 2048,
> +               .page_size      = 256,
> +               .tested         = TEST_OK_PREW,
> +               .probe          = probe_spi_rdid,
> +               .probe_timing   = TIMING_ZERO,
> +               .block_erasers  =
> +               {
> +                       {
> +                               .eraseblocks = { { 4 * 1024, 512 } },
> +                               .block_erase = spi_block_erase_20,
> +                       }, {
> +                               .eraseblocks = { {64 * 1024, 32} },
> +                               .block_erase = spi_block_erase_d8,
> +                       }, {
> +                               .eraseblocks = { {2 * 1024 * 1024, 1} },
> +                               .block_erase = spi_block_erase_c7,
> +                       }
> +               },
> +               .unlock         = spi_disable_blockprotect,
> +               .write          = spi_chip_write_256,
> +               .read           = spi_chip_read,
> +       },
> +
> +       {
> +               .vendor         = "ST",
>                .name           = "M25PX32",
>                .bustype        = CHIP_BUSTYPE_SPI,
>                .manufacture_id = ST_ID,
> diff --git a/flashchips.h b/flashchips.h
> index 6504edf..bbdb5ae 100644
> --- a/flashchips.h
> +++ b/flashchips.h
> @@ -531,6 +531,7 @@
>  #define ST_M25P32              0x2016
>  #define ST_M25P64              0x2017
>  #define ST_M25P128             0x2018
> +#define ST_M25PX16             0x7115
>  #define ST_M25PX32             0x7116
>  #define ST_M25PX64             0x7117
>  #define ST_M25PE10             0x8011
> --
> 1.7.2.3
>
>
> _______________________________________________
> flashrom mailing list
> flashrom@flashrom.org
> http://www.flashrom.org/mailman/listinfo/flashrom
>

[Attachment #5 (text/html)]

<div class="gmail_quote">2010/12/9 Carl Worth <span dir="ltr">&lt;<a \
href="mailto:cworth@cworth.org" \
target="_blank">cworth@cworth.org</a>&gt;</span><br><blockquote class="gmail_quote" \
style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); \
padding-left: 1ex;">

This was created by simply copying the M25PX32 block and verifying<br>
with the M25PX16 datasheet which values needed to be changed. (The<br>
only changes are the model_id and the 4 size-related fields).<br>
<br>
Also, this commit sets the new M25PX16 as having write support tested,<br>
(where the M25PX32 does not). This is after running successful write<br>
and verify operations to 4 different M25PX16 chips with a Dediprog<br>
SF100.<br>
<br>
Signed-off-by: Carl Worth &lt;<a href="mailto:carl.d.worth@intel.com" \
target="_blank">carl.d.worth@intel.com</a>&gt;<br></blockquote><div><br>Acked-by: \
Idwer Vollering &lt;<a href="mailto:vidwer@gmail.com" \
target="_blank">vidwer@gmail.com</a>&gt;<br>  </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
                solid rgb(204, 204, 204); padding-left: 1ex;">
---<br>
 flashchips.c |   29 +++++++++++++++++++++++++++++<br>
 flashchips.h |    1 +<br>
 2 files changed, 30 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/flashchips.c b/flashchips.c<br>
index e7a2223..0b84ae1 100644<br>
--- a/flashchips.c<br>
+++ b/flashchips.c<br>
@@ -6269,6 +6269,35 @@ struct flashchip flashchips[] = {<br>
<br>
        {<br>
                .vendor         = &quot;ST&quot;,<br>
+               .name           = &quot;M25PX16&quot;,<br>
+               .bustype        = CHIP_BUSTYPE_SPI,<br>
+               .manufacture_id = ST_ID,<br>
+               .model_id       = ST_M25PX16,<br>
+               .total_size     = 2048,<br>
+               .page_size      = 256,<br>
+               .tested         = TEST_OK_PREW,<br>
+               .probe          = probe_spi_rdid,<br>
+               .probe_timing   = TIMING_ZERO,<br>
+               .block_erasers  =<br>
+               {<br>
+                       {<br>
+                               .eraseblocks = { { 4 * 1024, 512 } },<br>
+                               .block_erase = spi_block_erase_20,<br>
+                       }, {<br>
+                               .eraseblocks = { {64 * 1024, 32} },<br>
+                               .block_erase = spi_block_erase_d8,<br>
+                       }, {<br>
+                               .eraseblocks = { {2 * 1024 * 1024, 1} },<br>
+                               .block_erase = spi_block_erase_c7,<br>
+                       }<br>
+               },<br>
+               .unlock         = spi_disable_blockprotect,<br>
+               .write          = spi_chip_write_256,<br>
+               .read           = spi_chip_read,<br>
+       },<br>
+<br>
+       {<br>
+               .vendor         = &quot;ST&quot;,<br>
                .name           = &quot;M25PX32&quot;,<br>
                .bustype        = CHIP_BUSTYPE_SPI,<br>
                .manufacture_id = ST_ID,<br>
diff --git a/flashchips.h b/flashchips.h<br>
index 6504edf..bbdb5ae 100644<br>
--- a/flashchips.h<br>
+++ b/flashchips.h<br>
@@ -531,6 +531,7 @@<br>
 #define ST_M25P32              0x2016<br>
 #define ST_M25P64              0x2017<br>
 #define ST_M25P128             0x2018<br>
+#define ST_M25PX16             0x7115<br>
 #define ST_M25PX32             0x7116<br>
 #define ST_M25PX64             0x7117<br>
 #define ST_M25PE10             0x8011<br>
<font color="#888888">--<br>
1.7.2.3<br>
<br>
<br>
_______________________________________________<br>
flashrom mailing list<br>
<a href="mailto:flashrom@flashrom.org" target="_blank">flashrom@flashrom.org</a><br>
<a href="http://www.flashrom.org/mailman/listinfo/flashrom" \
target="_blank">http://www.flashrom.org/mailman/listinfo/flashrom</a><br> \
</font></blockquote></div><br>



_______________________________________________
flashrom mailing list
flashrom@flashrom.org
http://www.flashrom.org/mailman/listinfo/flashrom

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic