summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2017-09-12 20:09:31 +0300
committerStefan Roese <sr@denx.de>2017-09-26 11:57:53 +0300
commit72443c7f7d2174903e73ee88dcb4364e0387bbb2 (patch)
tree2444e445363b16d59c133d1b2aa4a05917033642 /include/flash.h
parent1ec0a37e1cf2add5680b8d7305922c8210c3e2ed (diff)
downloadu-boot-72443c7f7d2174903e73ee88dcb4364e0387bbb2.tar.xz
mtd: cfi: Add support for status register polling
The status register is optional in the AMD command sets, but it's presence can be checked by reading out CFI table entry 0xc bit 0. If the register is present, prefer using it's bit 7 to determine if the flash is busy over reading the flash ; this is needed ie. on Hyperflash memories. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 0eedb1efa8..dc67cb2df6 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -42,6 +42,7 @@ typedef struct {
ushort cfi_offset; /* offset for cfi query */
ulong addr_unlock1; /* unlock address 1 for AMD flash roms */
ulong addr_unlock2; /* unlock address 2 for AMD flash roms */
+ uchar sr_supported; /* status register supported */
const char *name; /* human-readable name */
#endif
#ifdef CONFIG_MTD