summaryrefslogtreecommitdiffstats
path: root/w39v080fa.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
commitb47877c9f18ba2813048ddf7522c90ea1dd31e95 (patch)
tree329ba3be9013c0a5934c66233a3c5205f0ed4b20 /w39v080fa.c
parent641eb0eca4fbfd350edb4f7a0f2403de78d80a45 (diff)
downloadflashrom-b47877c9f18ba2813048ddf7522c90ea1dd31e95.zip
flashrom-b47877c9f18ba2813048ddf7522c90ea1dd31e95.tar.gz
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 'w39v080fa.c')
-rw-r--r--w39v080fa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/w39v080fa.c b/w39v080fa.c
index ba4673a..8dc882a 100644
--- a/w39v080fa.c
+++ b/w39v080fa.c
@@ -29,7 +29,7 @@ int probe_winbond_fwhub(struct flashchip *flash)
chip_writeb(0xAA, bios + 0x5555);
chip_writeb(0x55, bios + 0x2AAA);
chip_writeb(0x90, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
/* Read product ID */
id1 = chip_readb(bios);
@@ -39,7 +39,7 @@ int probe_winbond_fwhub(struct flashchip *flash)
chip_writeb(0xAA, bios + 0x5555);
chip_writeb(0x55, bios + 0x2AAA);
chip_writeb(0xF0, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
@@ -108,7 +108,7 @@ int unlock_winbond_fwhub(struct flashchip *flash)
chip_writeb(0xAA, bios + 0x5555);
chip_writeb(0x55, bios + 0x2AAA);
chip_writeb(0x90, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
/* Read Hardware Lock Bits */
locking = chip_readb(bios + 0xffff2);
@@ -117,7 +117,7 @@ int unlock_winbond_fwhub(struct flashchip *flash)
chip_writeb(0xAA, bios + 0x5555);
chip_writeb(0x55, bios + 0x2AAA);
chip_writeb(0xF0, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
printf_debug("Lockout bits:\n");
OpenPOWER on IntegriCloud