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/82802ab.c b/82802ab.c
index c9ec9ae..c5cf52f 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -53,9 +53,9 @@
#endif
chip_writeb(0xff, bios);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(0x90, bios);
- myusec_delay(10);
+ programmer_delay(10);
id1 = chip_readb(bios);
id2 = chip_readb(bios + 0x01);
@@ -65,7 +65,7 @@
chip_writeb(0x55, bios + 0x2AAA);
chip_writeb(0xF0, bios + 0x5555);
- myusec_delay(10);
+ programmer_delay(10);
printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
@@ -92,7 +92,7 @@
// put another command to get out of status register mode
chip_writeb(0x90, bios);
- myusec_delay(10);
+ programmer_delay(10);
id1 = chip_readb(bios);
id2 = chip_readb(bios + 0x01);
@@ -124,7 +124,7 @@
// now start it
chip_writeb(0x20, bios);
chip_writeb(0xd0, bios);
- myusec_delay(10);
+ programmer_delay(10);
// now let's see what the register is
status = wait_82802ab(flash->virtual_memory);
//print_82802ab_status(status);