On 11.05.2009 23:48, Carl-Daniel Hailfinger wrote:
> On 11.05.2009 23:25, Murawski Mateusz wrote:
>   
>> Yes, but this mb have TMS29F002R chip, and flashrom can't recognize it
>>
>> Picture
>> http://img520.imageshack.us/img520/641/bez.jpg
>>
>> TMS29F002R datasheet
>> http://focus.ti.com/lit/ds/smjs848/smjs848.pdf
>>     
>
> I looked at the data sheet. One of the problems is that this flash chip
> does not use the standard Texas Instruments JEDEC ID of 0x97, but uses
> the standard JEDEC ID of AMD instead.
>
> I have a preliminary patch, but if you could run "flashrom -V" and
> upload the result somewhere, this would help determine if I'm right.
>   

And please run "flashrom -V" with the attached patch as well.

Add TI TMS29F002RT and TMS29F002RB probe and read support to flashrom.

Signed-off-by: Carl-Daniel Hailfinger <[email protected]>

Index: flashrom-tms29f002r/flash.h
===================================================================
--- flashrom-tms29f002r/flash.h (revision 496)
+++ flashrom-tms29f002r/flash.h (working copy)
@@ -509,6 +509,9 @@
 #define S29C31004T             0x63
 
 #define TI_ID                  0x97    /* Texas Instruments */
+#define TI_OLD_ID              0x01    /* TI chips from last century */
+#define TI_TMS29F002RT         0xB0
+#define TI_TMS29F002RB         0x34
 
 /*
  * W25X chips are SPI, first byte of device ID is memory type, second
Index: flashrom-tms29f002r/flashchips.c
===================================================================
--- flashrom-tms29f002r/flashchips.c    (revision 496)
+++ flashrom-tms29f002r/flashchips.c    (working copy)
@@ -2013,6 +2013,34 @@
        },
 
        {
+               .vendor         = "Texas Instruments",
+               .name           = "TMS29F002RB",
+               .manufacture_id = TI_OLD_ID,
+               .model_id       = TI_TMS29F002RB,
+               .total_size     = 256,
+               .page_size      = 16384, /* Non-uniform sectors */
+               .tested         = TEST_UNTESTED,
+               .probe          = probe_jedec,
+               .erase          = NULL,
+               .write          = NULL,
+               .read           = read_memmapped,
+       },
+
+       {
+               .vendor         = "Texas Instruments",
+               .name           = "TMS29F002RT",
+               .manufacture_id = TI_OLD_ID,
+               .model_id       = TI_TMS29F002RT,
+               .total_size     = 256,
+               .page_size      = 16384, /* Non-uniform sectors */
+               .tested         = TEST_UNTESTED,
+               .probe          = probe_jedec,
+               .erase          = NULL,
+               .write          = NULL,
+               .read           = read_memmapped,
+       },
+
+       {
                .vendor         = "Winbond",
                .name           = "W25x10",
                .manufacture_id = WINBOND_NEX_ID,


-- 
http://www.hailfinger.org/

Index: flashrom-tms29f002r/flash.h
===================================================================
--- flashrom-tms29f002r/flash.h (revision 496)
+++ flashrom-tms29f002r/flash.h (working copy)
@@ -509,6 +509,9 @@
 #define S29C31004T             0x63
 
 #define TI_ID                  0x97    /* Texas Instruments */
+#define TI_OLD_ID              0x01    /* TI chips from last century */
+#define TI_TMS29F002RT         0xB0
+#define TI_TMS29F002RB         0x34
 
 /*
  * W25X chips are SPI, first byte of device ID is memory type, second
Index: flashrom-tms29f002r/flashchips.c
===================================================================
--- flashrom-tms29f002r/flashchips.c    (revision 496)
+++ flashrom-tms29f002r/flashchips.c    (working copy)
@@ -2013,6 +2013,34 @@
        },
 
        {
+               .vendor         = "Texas Instruments",
+               .name           = "TMS29F002RB",
+               .manufacture_id = TI_OLD_ID,
+               .model_id       = TI_TMS29F002RB,
+               .total_size     = 256,
+               .page_size      = 16384, /* Non-uniform sectors */
+               .tested         = TEST_UNTESTED,
+               .probe          = probe_jedec,
+               .erase          = NULL,
+               .write          = NULL,
+               .read           = read_memmapped,
+       },
+
+       {
+               .vendor         = "Texas Instruments",
+               .name           = "TMS29F002RT",
+               .manufacture_id = TI_OLD_ID,
+               .model_id       = TI_TMS29F002RT,
+               .total_size     = 256,
+               .page_size      = 16384, /* Non-uniform sectors */
+               .tested         = TEST_UNTESTED,
+               .probe          = probe_jedec,
+               .erase          = NULL,
+               .write          = NULL,
+               .read           = read_memmapped,
+       },
+
+       {
                .vendor         = "Winbond",
                .name           = "W25x10",
                .manufacture_id = WINBOND_NEX_ID,
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to