summaryrefslogtreecommitdiffstats
path: root/sst28sf040.c
diff options
context:
space:
mode:
Diffstat (limited to 'sst28sf040.c')
-rw-r--r--sst28sf040.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sst28sf040.c b/sst28sf040.c
index c858f54..bbbdbd3 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -94,16 +94,16 @@ int probe_28sf040(struct flashchip *flash)
uint8_t id1, id2;
chip_writeb(RESET, bios);
- myusec_delay(10);
+ programmer_delay(10);
chip_writeb(READ_ID, bios);
- myusec_delay(10);
+ programmer_delay(10);
id1 = chip_readb(bios);
- myusec_delay(10);
+ programmer_delay(10);
id2 = chip_readb(bios + 0x01);
chip_writeb(RESET, bios);
- myusec_delay(10);
+ programmer_delay(10);
printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
@@ -121,7 +121,7 @@ int erase_28sf040(struct flashchip *flash)
chip_writeb(CHIP_ERASE, bios);
protect_28sf040(bios);
- myusec_delay(10);
+ programmer_delay(10);
toggle_ready_jedec(bios);
return 0;
OpenPOWER on IntegriCloud