From fe4fe623d540993d9769615a8631c732b5f3c9ea Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Wed, 8 Dec 2010 17:04:23 +0000 Subject: 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 --- src/flash/nor/cfi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/flash/nor/cfi.h') 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 -- cgit v1.2.3