Support for SST 39VF3201C NOR flash

* Add Thumb-2 code to write flash memories that don't support DQ5 polling
 * Make sure default values for unlock commands are set even if there is no PRI information given by the flash
 * Add a fixup to disable DQ5 polling for the SST 39VF3201C

Change-Id: Ib08cf20547d0f500d5f78241521e6b49050c3d40
Signed-off-by: IS2T development team <dev.is2t@gmail.com>
Reviewed-on: http://openocd.zylin.com/1449
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
IS2T
2013-06-19 08:03:17 +02:00
committed by Spencer Oliver
parent 434afb370f
commit 34e8d1a50d
3 changed files with 140 additions and 24 deletions

View File

@@ -143,8 +143,8 @@ struct cfi_unlock_addresses {
struct cfi_fixup {
uint16_t mfr;
uint16_t id;
void (*fixup)(struct flash_bank *bank, void *param);
void *param;
void (*fixup)(struct flash_bank *bank, const void *param);
const void *param;
};
#define CFI_MFR_AMD 0x0001