From 69e5811e791dce0bb03796d842314c0397ff0e7c Mon Sep 17 00:00:00 2001 From: Sean Nelson Date: Tue, 23 Mar 2010 17:10:28 +0000 Subject: 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 Acked-by: Carl-Daniel Hailfinger --- flashchips.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'flashchips.c') diff --git a/flashchips.c b/flashchips.c index 47cdc325..c69dd57e 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, -- cgit v1.2.3