summaryrefslogtreecommitdiffstats
path: root/w39v040c.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 /w39v040c.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 'w39v040c.c')
-rw-r--r--w39v040c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/w39v040c.c b/w39v040c.c
index 097d655..48e9bd3 100644
--- a/w39v040c.c
+++ b/w39v040c.c
@@ -26,22 +26,22 @@ int probe_w39v040c(struct flashchip *flash)
uint8_t id1, id2, lock;
chip_writeb(0xAA, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x55, bios + 0x2AAA);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x90, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
id1 = chip_readb(bios);
id2 = chip_readb(bios + 1);
lock = chip_readb(bios + 0xfff2);
chip_writeb(0xAA, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x55, bios + 0x2AAA);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0xF0, bios + 0x5555);
- myusec_delay(40);
+ programmer_delay(40);
printf_debug("%s: id1 0x%02x, id2 0x%02x", __func__, id1, id2);
if (!oddparity(id1))
OpenPOWER on IntegriCloud