summaryrefslogtreecommitdiff
path: root/src/flash/cfi.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-21 05:31:18 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-21 05:31:18 +0000
commit55ebb067d1214b4136343ac6356ad15169a631f2 (patch)
treebf1e2b1fe7afeeaea629d2f7231cd1c6d70ef497 /src/flash/cfi.h
parentd2d75efb3929b0067f7dcb6f9973ec8c47948135 (diff)
downloadopenocd+libswd-55ebb067d1214b4136343ac6356ad15169a631f2.tar.gz
openocd+libswd-55ebb067d1214b4136343ac6356ad15169a631f2.tar.bz2
openocd+libswd-55ebb067d1214b4136343ac6356ad15169a631f2.tar.xz
openocd+libswd-55ebb067d1214b4136343ac6356ad15169a631f2.zip
Michael Schwingen <rincewind@discworld.dascon.de> add non-CFI SST flashs
git-svn-id: svn://svn.berlios.de/openocd/trunk@1480 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/cfi.h')
-rw-r--r--src/flash/cfi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/flash/cfi.h b/src/flash/cfi.h
index 5eab7efd..dc43dd18 100644
--- a/src/flash/cfi.h
+++ b/src/flash/cfi.h
@@ -23,11 +23,13 @@
#include "flash.h"
#include "target.h"
+#define CFI_STATUS_POLL_MASK_DQ5_DQ6_DQ7 0xE0 /* DQ5..DQ7 */
+#define CFI_STATUS_POLL_MASK_DQ6_DQ7 0xC0 /* DQ6..DQ7 */
+
typedef struct cfi_flash_bank_s
{
working_area_t *write_algorithm;
-
int x16_as_x8;
int jedec_probe;
int not_cfi;
@@ -58,6 +60,8 @@ typedef struct cfi_flash_bank_s
u8 block_erase_timeout_max;
u8 chip_erase_timeout_max;
+ u8 status_poll_mask;
+
/* flash geometry */
u32 dev_size;
u16 interface_desc;