diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-12-17 16:20:26 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-12-17 16:20:26 +0000 |
commit | aa000982f40fa68ceea7ff19d77a0d5965164525 (patch) | |
tree | c193b049a268de3d198b4b981198b6683794152e /flash.h | |
parent | 2a9e2455cd4f9b9fc5421e9b6b786a9010daf934 (diff) | |
download | flashrom-aa000982f40fa68ceea7ff19d77a0d5965164525.tar.gz flashrom-aa000982f40fa68ceea7ff19d77a0d5965164525.tar.bz2 flashrom-aa000982f40fa68ceea7ff19d77a0d5965164525.zip |
jedec: warn if toggle bit is stuck for too long and allow for delays between tries
If the JEDEC Toggle Bit algorithm needs more than 2^20 loops, it is a
good sign we should have used delays between toggle bit reads.
Tell the user about this. 2^20 loops need roughly a second depending on
flash bus speed. One reason for excessive loops can be a slow operation
like erase.
The Winbond W39V040C requires a 50 ms delay between toggle bit reads
during erase according to the datasheet. Turns out a 2 ms delay is
sufficient. Use a safety factor of 4 and default all erase operations
to 8 ms delay between toggle reads. This is short enough not to have
a substantial negative impact on erase times, and should improve
reliability.
This patch addresses the excessive toggle behaviour (observed on some
non-Winbond chips) and the toggle delay requirement (Winbond W39V040C).
Corresponding to flashrom svn r807.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Javier Ortega Conde (aka Malkavian) <malkavian666@gmail.com>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'flash.h')
0 files changed, 0 insertions, 0 deletions