summaryrefslogtreecommitdiffstats
path: root/mx29f002.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 /mx29f002.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 'mx29f002.c')
-rw-r--r--mx29f002.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mx29f002.c b/mx29f002.c
index faff6f8..c96cc93 100644
--- a/mx29f002.c
+++ b/mx29f002.c
@@ -34,7 +34,7 @@ int probe_29f002(struct flashchip *flash)
chip_writeb(0xF0, bios);
- myusec_delay(10);
+ programmer_delay(10);
printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
@@ -55,7 +55,7 @@ int erase_29f002(struct flashchip *flash)
chip_writeb(0x55, bios + 0x2AA);
chip_writeb(0x10, bios + 0x555);
- myusec_delay(100);
+ programmer_delay(100);
toggle_ready_jedec(bios);
// while ((*bios & 0x40) != 0x40)
@@ -82,7 +82,7 @@ int write_29f002(struct flashchip *flash, uint8_t *buf)
chipaddr dst = bios;
chip_writeb(0xF0, bios);
- myusec_delay(10);
+ programmer_delay(10);
erase_29f002(flash);
//*bios = 0xF0;
#if 1
OpenPOWER on IntegriCloud