summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-03-23 17:10:28 +0000
committerSean Nelson <audiohacked@gmail.com>2010-03-23 17:10:28 +0000
commit69e5811e791dce0bb03796d842314c0397ff0e7c (patch)
tree2b37bafd08aecabc45fd72ec36bdba132a6f0b4c /flashchips.c
parent12aa0be5d47d8759e27a1ee412b2f95b9906898b (diff)
downloadflashrom-69e5811e791dce0bb03796d842314c0397ff0e7c.tar.gz
flashrom-69e5811e791dce0bb03796d842314c0397ff0e7c.tar.bz2
flashrom-69e5811e791dce0bb03796d842314c0397ff0e7c.zip
Sst49lfxxxc chips are functionally the same as 82802ab chips
Sst49lfxxxc software status register is functionally the same as the 82802ab status register, "Block Protect Status"(49lfxxxc) can be treated the same as "Device Protect Status"(82802ab). Erase_block_49lfxxxc is the same command sequence as erase_block_82802ab. Add unlock_49lfxxxc to chips definitions. Write_sector_49lfxxxc is the same as write_page_82802ab. Corresponding to flashrom svn r972. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/flashchips.c b/flashchips.c
index 47cdc325a..c69dd57e4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -4190,9 +4190,10 @@ struct flashchip flashchips[] = {
{8 * 1024, 2},
{16 * 1024, 1},
},
- .block_erase = erase_block_49lfxxxc,
+ .block_erase = erase_block_82802ab,
}
},
+ .unlock = unlock_49lfxxxc,
.write = write_49lfxxxc,
.read = read_memmapped,
},
@@ -4252,9 +4253,10 @@ struct flashchip flashchips[] = {
{8 * 1024, 2},
{16 * 1024, 1},
},
- .block_erase = erase_block_49lfxxxc,
+ .block_erase = erase_block_82802ab,
}
},
+ .unlock = unlock_49lfxxxc,
.write = write_49lfxxxc,
.read = read_memmapped,
},
@@ -4283,9 +4285,10 @@ struct flashchip flashchips[] = {
{8 * 1024, 2},
{16 * 1024, 1},
},
- .block_erase = erase_block_49lfxxxc,
+ .block_erase = erase_block_82802ab,
}
},
+ .unlock = unlock_49lfxxxc,
.write = write_49lfxxxc,
.read = read_memmapped,
},
@@ -4459,7 +4462,7 @@ struct flashchip flashchips[] = {
{8 * 1024, 2},
{16 * 1024, 1},
},
- .block_erase = erase_block_49lfxxxc,
+ .block_erase = erase_block_82802ab,
}
},
.unlock = unlock_49lfxxxc,