diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-02-26 11:55:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-02-26 11:55:41 +0100 |
commit | 066ac7abdbc814d272c294c47b0acc4a642da061 (patch) | |
tree | 98f7c9cf5ebc5580ec4ca26ec116839095634bba /include | |
parent | be041ab8f457417a3f23a82598d8261f42bc326a (diff) | |
download | barebox-066ac7abdbc814d272c294c47b0acc4a642da061.tar.gz barebox-066ac7abdbc814d272c294c47b0acc4a642da061.tar.xz |
[CFI driver] add missing flash protection for new driver
Diffstat (limited to 'include')
-rw-r--r-- | include/cfi_flash_new.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cfi_flash_new.h b/include/cfi_flash_new.h index 2a0517f4b7..5d4bd5b585 100644 --- a/include/cfi_flash_new.h +++ b/include/cfi_flash_new.h @@ -67,6 +67,7 @@ struct cfi_cmd_set { int (*flash_is_busy) (flash_info_t * info, flash_sect_t sect); void (*flash_read_jedec_ids) (flash_info_t * info); void (*flash_prepare_write) (flash_info_t * info); + int (*flash_status_check) (flash_info_t * info, flash_sect_t sector, uint64_t tout, char *prompt); }; extern struct cfi_cmd_set cfi_cmd_set_intel; @@ -183,6 +184,9 @@ void flash_write_cmd (flash_info_t * info, flash_sect_t sect, uint offset, uchar flash_sect_t find_sector (flash_info_t * info, ulong addr); int flash_status_check (flash_info_t * info, flash_sect_t sector, uint64_t tout, char *prompt); +int flash_generic_status_check (flash_info_t * info, flash_sect_t sector, + uint64_t tout, char *prompt); + int flash_isequal (flash_info_t * info, flash_sect_t sect, uint offset, uchar cmd); void flash_make_cmd (flash_info_t * info, uchar cmd, void *cmdbuf); |