fix flash info - now reports erased state properly
git-svn-id: svn://svn.berlios.de/openocd/trunk@534 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -45,7 +45,6 @@ int ecosflash_erase(struct flash_bank_s *bank, int first, int last);
|
||||
int ecosflash_protect(struct flash_bank_s *bank, int set, int first, int last);
|
||||
int ecosflash_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count);
|
||||
int ecosflash_probe(struct flash_bank_s *bank);
|
||||
int ecosflash_erase_check(struct flash_bank_s *bank);
|
||||
int ecosflash_protect_check(struct flash_bank_s *bank);
|
||||
int ecosflash_info(struct flash_bank_s *bank, char *buf, int buf_size);
|
||||
|
||||
@@ -64,7 +63,7 @@ flash_driver_t ecosflash_flash =
|
||||
.write = ecosflash_write,
|
||||
.probe = ecosflash_probe,
|
||||
.auto_probe = ecosflash_probe,
|
||||
.erase_check = ecosflash_erase_check,
|
||||
.erase_check = default_flash_blank_check,
|
||||
.protect_check = ecosflash_protect_check,
|
||||
.info = ecosflash_info
|
||||
};
|
||||
@@ -444,11 +443,6 @@ int ecosflash_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count
|
||||
}
|
||||
|
||||
|
||||
int ecosflash_erase_check(struct flash_bank_s *bank)
|
||||
{
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int ecosflash_protect_check(struct flash_bank_s *bank)
|
||||
{
|
||||
return ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user