summaryrefslogtreecommitdiffstats
path: root/m29f400bt.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-10-13 22:26:56 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-10-13 22:26:56 +0000
commit11ae89b9f9085f8aece4ea56620faf600fe0db52 (patch)
treeeb3c0573cecfe70ded0b96003dc6f4d5e55975d4 /m29f400bt.c
parent20050cb40fedf0dd3b8112da6920248c686d3972 (diff)
downloadflashrom-11ae89b9f9085f8aece4ea56620faf600fe0db52.zip
flashrom-11ae89b9f9085f8aece4ea56620faf600fe0db52.tar.gz
Switch all flash chips to partial write
The inner write functions which handle partial write are renamed to the original name of their wrappers. The write wrappers are removed. Tested-by: Maciej Pijanka <maciej.pijanka@gmail.com> Tested-by: Andrew Morgan <ziltro@ziltro.com> Tested-by: Idwer Vollering <vidwer@gmail.com> Tested-by: Sean Nelson <audiohacked@gmail.com> Corresponding to flashrom svn r1211. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'm29f400bt.c')
-rw-r--r--m29f400bt.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/m29f400bt.c b/m29f400bt.c
index 2bca04c..7e4f51c 100644
--- a/m29f400bt.c
+++ b/m29f400bt.c
@@ -27,7 +27,8 @@
0x555 instead of 0x2AA. Do *not* blindly replace with standard JEDEC
functions. */
-int write_page_m29f400bt(struct flashchip *flash, uint8_t *src, int start, int len)
+/* chunksize is 1 */
+int write_m29f400bt(struct flashchip *flash, uint8_t *src, int start, int len)
{
int i;
chipaddr bios = flash->virtual_memory;
@@ -139,9 +140,3 @@ int block_erase_chip_m29f400bt(struct flashchip *flash, unsigned int address, un
}
return erase_m29f400bt(flash);
}
-
-/* chunksize is 1 */
-int write_m29f400bt(struct flashchip *flash, uint8_t *buf)
-{
- return write_page_m29f400bt(flash, buf, 0, flash->total_size * 1024);
-}
OpenPOWER on IntegriCloud