1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-28 07:23:43 +02:00

Increase delay in probe_jedec() after Product ID Entry to 10ms

We should follow data sheet timing, even if chips have been tested to answer
faster in the field.

Corresponding to flashrom svn r273 and coreboot v2 svn r3387.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
Peter Stuge 2008-06-24 02:09:09 +00:00
parent da4e5f3623
commit 8653b00461

View File

@ -100,10 +100,9 @@ int probe_jedec(struct flashchip *flash)
myusec_delay(10); myusec_delay(10);
*(volatile uint8_t *)(bios + 0x5555) = 0x90; *(volatile uint8_t *)(bios + 0x5555) = 0x90;
/* Older chips may need up to 100 us to respond. The ATMEL 29C020 /* Older chips may need up to 100 us to respond. The ATMEL 29C020
* needs 10 ms according to the data sheet, but it has been tested * needs 10 ms according to the data sheet.
* to work reliably with 2 ms.
*/ */
myusec_delay(2000); myusec_delay(10000);
/* Read product ID */ /* Read product ID */
id1 = *(volatile uint8_t *)bios; id1 = *(volatile uint8_t *)bios;