Michael Schwingen <rincewind@discworld.dascon.de> add non-CFI SST flashs
[fw/openocd] / src / flash / cfi.h
index 5eab7efdd9bf47a1e6938a880a17c66952b3736a..dc43dd18bda7523a87645ae287f95f65097a06e7 100644 (file)
 #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;