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>
diff --git a/w29ee011.c b/w29ee011.c
index d630440..77724be 100644
--- a/w29ee011.c
+++ b/w29ee011.c
@@ -38,17 +38,17 @@
/* Issue JEDEC Product ID Entry command */
chip_writeb(0xAA, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x55, bios + 0x2AAA);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x80, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0xAA, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x55, bios + 0x2AAA);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x60, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
/* Read product ID */
id1 = chip_readb(bios);
@@ -56,11 +56,11 @@
/* Issue JEDEC Product ID Exit command */
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(10);
+ programmer_delay(10);
printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);