diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-13 22:19:12 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-13 22:19:12 +0000 |
commit | 5517bc672c86be1ff63f6a98c59c9c00a94eacaa (patch) | |
tree | 9b4ae177f490e66e0980112e55adf4def31daff2 /flashchips.c | |
parent | 8e8eb63b466dcba2ea32f09d2d409abe355c085e (diff) | |
download | flashrom-5517bc672c86be1ff63f6a98c59c9c00a94eacaa.zip flashrom-5517bc672c86be1ff63f6a98c59c9c00a94eacaa.tar.gz |
SST25 chips do not support page program, only byte program
Downgrade the chips from 256-byte writes to 1-byte writes. This fixes
writing to them on ICH/VIA SPI masters.
Corresponding to flashrom svn r504.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: FENG Yu Ning <fengyuning1984@gmail.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/flashchips.c b/flashchips.c index bb87b64..eb241a9 100644 --- a/flashchips.c +++ b/flashchips.c @@ -1182,7 +1182,7 @@ struct flashchip flashchips[] = { .tested = TEST_OK_PREW, .probe = probe_spi_rdid, .erase = spi_chip_erase_c7, - .write = spi_chip_write_256, + .write = spi_chip_write_1, .read = spi_chip_read, }, @@ -1196,7 +1196,7 @@ struct flashchip flashchips[] = { .tested = TEST_OK_PREW, .probe = probe_spi_rdid, .erase = spi_chip_erase_c7, - .write = spi_chip_write_256, + .write = spi_chip_write_1, .read = spi_chip_read, }, @@ -1210,7 +1210,7 @@ struct flashchip flashchips[] = { .tested = TEST_UNTESTED, .probe = probe_spi_rdid, .erase = spi_chip_erase_c7, - .write = spi_chip_write_256, + .write = spi_chip_write_1, .read = spi_chip_read, }, @@ -1224,7 +1224,7 @@ struct flashchip flashchips[] = { .tested = TEST_OK_PR, .probe = probe_spi_rems, .erase = spi_chip_erase_60, - .write = spi_chip_write_256, + .write = spi_chip_write_1, .read = spi_chip_read, }, @@ -1238,7 +1238,7 @@ struct flashchip flashchips[] = { .tested = TEST_OK_PR, .probe = probe_spi_rems, .erase = spi_chip_erase_c7, - .write = spi_aai_write, + .write = spi_chip_write_1, .read = spi_chip_read, }, |