diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 17:48:08 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 17:48:08 +0000 |
commit | b47877c9f18ba2813048ddf7522c90ea1dd31e95 (patch) | |
tree | 329ba3be9013c0a5934c66233a3c5205f0ed4b20 /sharplhf00l04.c | |
parent | 641eb0eca4fbfd350edb4f7a0f2403de78d80a45 (diff) | |
download | flashrom-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 'sharplhf00l04.c')
-rw-r--r-- | sharplhf00l04.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sharplhf00l04.c b/sharplhf00l04.c index 1aeb2f3..4d652ae 100644 --- a/sharplhf00l04.c +++ b/sharplhf00l04.c @@ -46,9 +46,9 @@ int probe_lhf00l04(struct flashchip *flash) #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); @@ -58,7 +58,7 @@ int probe_lhf00l04(struct flashchip *flash) 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); @@ -85,7 +85,7 @@ uint8_t wait_lhf00l04(chipaddr bios) // 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); @@ -118,7 +118,7 @@ int erase_lhf00l04_block(struct flashchip *flash, int offset) // 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_lhf00l04(flash->virtual_memory); print_lhf00l04_status(status); |