summaryrefslogtreecommitdiff
path: root/src/flash/nor/cfi.h
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-12-08 17:04:23 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-12-10 13:36:08 +0000
commitfe4fe623d540993d9769615a8631c732b5f3c9ea (patch)
treea829e621043d5aa333b267ac4671bdf53caaa99e /src/flash/nor/cfi.h
parentb4ee2864e45d8de2cabe35fc2de95a34c61282a4 (diff)
downloadopenocd+libswd-fe4fe623d540993d9769615a8631c732b5f3c9ea.tar.gz
openocd+libswd-fe4fe623d540993d9769615a8631c732b5f3c9ea.tar.bz2
openocd+libswd-fe4fe623d540993d9769615a8631c732b5f3c9ea.tar.xz
openocd+libswd-fe4fe623d540993d9769615a8631c732b5f3c9ea.zip
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.h6
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