diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-10-13 22:26:56 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-10-13 22:26:56 +0000 |
commit | 75a58f94cc641e8051169ec6bb9894a390a8e2bf (patch) | |
tree | eb3c0573cecfe70ded0b96003dc6f4d5e55975d4 /82802ab.c | |
parent | 79e6757d269b91ee759bd569df7093225f4f3715 (diff) | |
download | flashrom-75a58f94cc641e8051169ec6bb9894a390a8e2bf.tar.gz flashrom-75a58f94cc641e8051169ec6bb9894a390a8e2bf.tar.bz2 flashrom-75a58f94cc641e8051169ec6bb9894a390a8e2bf.zip |
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.
Corresponding to flashrom svn r1211.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Tested-by: Maciej Pijanka <maciej.pijanka@gmail.com>
Tested-by: Andrew Morgan <ziltro@ziltro.com>
Tested-by: Idwer Vollering <vidwer@gmail.com>
Acked-by: Idwer Vollering <vidwer@gmail.com>
Tested-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to '82802ab.c')
-rw-r--r-- | 82802ab.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -144,7 +144,8 @@ int erase_block_82802ab(struct flashchip *flash, unsigned int page, unsigned int return 0; } -int write_page_82802ab(struct flashchip *flash, uint8_t *src, int start, int len) +/* chunksize is 1 */ +int write_82802ab(struct flashchip *flash, uint8_t *src, int start, int len) { int i; chipaddr dst = flash->virtual_memory + start; @@ -160,12 +161,6 @@ int write_page_82802ab(struct flashchip *flash, uint8_t *src, int start, int len return 0; } -/* chunksize is 1 */ -int write_82802ab(struct flashchip *flash, uint8_t *buf) -{ - return write_page_82802ab(flash, buf, 0, flash->total_size * 1024); -} - int unlock_28f004s5(struct flashchip *flash) { chipaddr bios = flash->virtual_memory; |