summaryrefslogtreecommitdiffstats
path: root/m29f002.c
diff options
context:
space:
mode:
Diffstat (limited to 'm29f002.c')
-rw-r--r--m29f002.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/m29f002.c b/m29f002.c
index 00cbbc140..01a7a509b 100644
--- a/m29f002.c
+++ b/m29f002.c
@@ -45,6 +45,7 @@ static int rewrite_block(struct flashchip *flash, uint8_t *src,
chipaddr dst = bios + start;
/* erase */
+ /* FIXME: use erase_sector_jedec? */
chip_writeb(0xaa, bios + 0x555);
chip_writeb(0x55, bios + 0xaaa);
chip_writeb(0x80, bios + 0x555);
@@ -59,6 +60,7 @@ static int rewrite_block(struct flashchip *flash, uint8_t *src,
}
/* program */
+ /* FIXME: use write_sector_jedec? */
while (size--) {
chip_writeb(0xaa, bios + 0x555);
chip_writeb(0x55, bios + 0xaaa);