X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fcfi.c;h=a4b95f08bd4c19b71bd15803ab3dae9ca7f357aa;hb=30dc76644da0dd9203dc9969a9be1d520fc5feb0;hp=3d83070962436c1f50376a57225b70b4ce44ad57;hpb=d3f0549f08d8aac36143bca9e7f7e1308383b7c2;p=openocd.git diff --git a/src/flash/cfi.c b/src/flash/cfi.c index 3d83070962..a4b95f08bd 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -93,6 +93,7 @@ cfi_fixup_t cfi_jedec_fixups[] = { {CFI_MFR_ST, 0x00D6, cfi_fixup_non_cfi, NULL}, {CFI_MFR_AMD, 0x2223, cfi_fixup_non_cfi, NULL}, {CFI_MFR_AMD, 0x22ab, cfi_fixup_non_cfi, NULL}, + {CFI_MFR_FUJITSU, 0x226b, cfi_fixup_non_cfi, NULL}, {0, 0, NULL, NULL} }; @@ -104,6 +105,7 @@ cfi_fixup_t cfi_0002_fixups[] = { {CFI_MFR_SST, 0x00D7, cfi_fixup_0002_unlock_addresses, &cfi_unlock_addresses[CFI_UNLOCK_5555_2AAA]}, {CFI_MFR_SST, 0x2780, cfi_fixup_0002_unlock_addresses, &cfi_unlock_addresses[CFI_UNLOCK_5555_2AAA]}, {CFI_MFR_ATMEL, 0x00C8, cfi_fixup_atmel_reversed_erase_regions, NULL}, + {CFI_MFR_FUJITSU, 0x226b, cfi_fixup_0002_unlock_addresses, &cfi_unlock_addresses[CFI_UNLOCK_5555_2AAA]}, {CFI_MFR_ANY, CFI_ID_ANY, cfi_fixup_0002_erase_regions, NULL}, {0, 0, NULL, NULL} }; @@ -354,6 +356,7 @@ int cfi_read_intel_pri_ext(flash_bank_t *bank) target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); cfi_command(bank, 0xff, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read bank flash bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -407,6 +410,7 @@ int cfi_read_spansion_pri_ext(flash_bank_t *bank) { cfi_command(bank, 0xf0, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read spansion bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -475,6 +479,7 @@ int cfi_read_atmel_pri_ext(flash_bank_t *bank) { cfi_command(bank, 0xf0, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read atmel bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -1935,6 +1940,7 @@ int cfi_probe(struct flash_bank_s *bank) target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); cfi_command(bank, 0xff, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not probe bank"); return ERROR_FLASH_BANK_INVALID; }