diff options
author | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-12-08 17:04:23 +0000 |
---|---|---|
committer | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-12-10 13:36:08 +0000 |
commit | fe4fe623d540993d9769615a8631c732b5f3c9ea (patch) | |
tree | a829e621043d5aa333b267ac4671bdf53caaa99e /src/flash/nor/cfi.h | |
parent | b4ee2864e45d8de2cabe35fc2de95a34c61282a4 (diff) |
cfi: calculate correct timeouts
The existing code used incorrect timeout values for the various cfi
operations. We now calculate the timeouts and convert to
msecs if necessary.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/flash/nor/cfi.h')
-rw-r--r-- | src/flash/nor/cfi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/flash/nor/cfi.h b/src/flash/nor/cfi.h index e2ff808b..099a6137 100644 --- a/src/flash/nor/cfi.h +++ b/src/flash/nor/cfi.h @@ -68,6 +68,12 @@ struct cfi_flash_bank void *pri_ext; void *alt_ext; + + /* calculated timeouts */ + unsigned word_write_timeout; + unsigned buf_write_timeout; + unsigned block_erase_timeout; + unsigned chip_erase_timeout; }; /* Intel primary extended query table |