Changeset 19114


Ignore:
Timestamp:
2010-01-13T07:52:12+01:00 (8 years ago)
Author:
juhosg
Message:

ar71xx: fix 320S33B flash chip support

Location:
trunk/target/linux/ar71xx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/patches-2.6.30/106-mtd_m25p80_add_xxxs33b_support.patch

    r16168 r19114  
    1313        { "pm25lv512",         0, 32 * 1024, 2, SECT_4K }, 
    1414        { "pm25lv010",         0, 32 * 1024, 4, SECT_4K }, 
     15@@ -656,11 +661,12 @@ static int __devinit m25p_probe(struct s 
     16        dev_set_drvdata(&spi->dev, flash); 
     17  
     18        /* 
     19-        * Atmel serial flash tend to power up 
     20+        * Atmel and Intel/Numonyx serial flash tend to power up 
     21         * with the software protection bits set 
     22         */ 
     23  
     24-       if (info->jedec_id >> 16 == 0x1f) { 
     25+       if (info->jedec_id >> 16 == 0x1f || 
     26+           info->jedec_id >> 16 == 0x89) { 
     27                write_enable(flash); 
     28                write_sr(flash, 0); 
     29        } 
  • trunk/target/linux/ar71xx/patches-2.6.30/109-mtd-wrt160nl-trx-parser.patch

    r17362 r19114  
    11--- a/drivers/mtd/devices/m25p80.c 
    22+++ b/drivers/mtd/devices/m25p80.c 
    3 @@ -751,6 +751,16 @@ static int __devinit m25p_probe(struct s 
     3@@ -752,6 +752,16 @@ static int __devinit m25p_probe(struct s 
    44                                        part_probes, &parts, 0); 
    55                } 
  • trunk/target/linux/ar71xx/patches-2.6.31/106-mtd_m25p80_add_xxxs33b_support.patch

    r17366 r19114  
    1313        { "pm25lv512",         0, 32 * 1024, 2, SECT_4K }, 
    1414        { "pm25lv010",         0, 32 * 1024, 4, SECT_4K }, 
     15@@ -660,11 +665,12 @@ static int __devinit m25p_probe(struct s 
     16        dev_set_drvdata(&spi->dev, flash); 
     17  
     18        /* 
     19-        * Atmel serial flash tend to power up 
     20+        * Atmel and Intel/Numonyx serial flash tend to power up 
     21         * with the software protection bits set 
     22         */ 
     23  
     24-       if (info->jedec_id >> 16 == 0x1f) { 
     25+       if (info->jedec_id >> 16 == 0x1f || 
     26+           info->jedec_id >> 16 == 0x89) { 
     27                write_enable(flash); 
     28                write_sr(flash, 0); 
     29        } 
  • trunk/target/linux/ar71xx/patches-2.6.31/109-mtd-wrt160nl-trx-parser.patch

    r17366 r19114  
    11--- a/drivers/mtd/devices/m25p80.c 
    22+++ b/drivers/mtd/devices/m25p80.c 
    3 @@ -755,6 +755,16 @@ static int __devinit m25p_probe(struct s 
     3@@ -756,6 +756,16 @@ static int __devinit m25p_probe(struct s 
    44                                        part_probes, &parts, 0); 
    55                } 
  • trunk/target/linux/ar71xx/patches-2.6.32/106-mtd_m25p80_add_xxxs33b_support.patch

    r18638 r19114  
    1313        { "pm25lv512",         0, 32 * 1024, 2, SECT_4K }, 
    1414        { "pm25lv010",         0, 32 * 1024, 4, SECT_4K }, 
     15@@ -789,11 +794,12 @@ static int __devinit m25p_probe(struct s 
     16        dev_set_drvdata(&spi->dev, flash); 
     17  
     18        /* 
     19-        * Atmel serial flash tend to power up 
     20+        * Atmel and Intel/Numonyx serial flash tend to power up 
     21         * with the software protection bits set 
     22         */ 
     23  
     24-       if (info->jedec_id >> 16 == 0x1f) { 
     25+       if (info->jedec_id >> 16 == 0x1f || 
     26+           info->jedec_id >> 16 == 0x89) { 
     27                write_enable(flash); 
     28                write_sr(flash, 0); 
     29        } 
  • trunk/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch

    r18638 r19114  
    11--- a/drivers/mtd/devices/m25p80.c 
    22+++ b/drivers/mtd/devices/m25p80.c 
    3 @@ -889,6 +889,16 @@ static int __devinit m25p_probe(struct s 
     3@@ -890,6 +890,16 @@ static int __devinit m25p_probe(struct s 
    44                                        part_probes, &parts, 0); 
    55                } 
Note: See TracChangeset for help on using the changeset viewer.