summaryrefslogtreecommitdiffstats
path: root/m29f002.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-05 17:48:08 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-05 17:48:08 +0000
commitca8bfc6c22196e5d16c6d2625c65d6b50c04daaf (patch)
tree329ba3be9013c0a5934c66233a3c5205f0ed4b20 /m29f002.c
parent945d26a0d7eef8faf46453d5f2717c21b59bafc2 (diff)
downloadast2050-flashrom-ca8bfc6c22196e5d16c6d2625c65d6b50c04daaf.zip
ast2050-flashrom-ca8bfc6c22196e5d16c6d2625c65d6b50c04daaf.tar.gz
Add programmer-specific delay functions
Add external programmer delay functions so external programmers can handle the delay on their own if needed. Corresponding to flashrom svn r578. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Urja Rannikko <urjaman@gmail.com>
Diffstat (limited to 'm29f002.c')
-rw-r--r--m29f002.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/m29f002.c b/m29f002.c
index 78cdc75..8ad86d2 100644
--- a/m29f002.c
+++ b/m29f002.c
@@ -29,7 +29,7 @@ int erase_m29f002(struct flashchip *flash)
chip_writeb(0xaa, bios + 0x555);
chip_writeb(0x55, bios + 0xaaa);
chip_writeb(0x10, bios + 0x555);
- myusec_delay(10);
+ programmer_delay(10);
toggle_ready_jedec(bios);
return 0;
}
@@ -44,7 +44,7 @@ static void rewrite_block(chipaddr bios, uint8_t *src,
chip_writeb(0xaa, bios + 0x555);
chip_writeb(0x55, bios + 0xaaa);
chip_writeb(0x30, dst);
- myusec_delay(10);
+ programmer_delay(10);
toggle_ready_jedec(bios);
/* program */
OpenPOWER on IntegriCloud