diff --git a/jtag/ChangeLog b/jtag/ChangeLog index adaf9f44..9953386f 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,9 @@ +2009-03-18 Arnim Laeuger + + * src/flash/intel.c, src/flash/amd.c: activate multi byte write mode + for > 1, not > 0 + [ 2690857 ] Can't write flashes + 2009-03-12 Arnim Laeuger * data/atheros/ar2312/ar2312: AR2313 flash access patch diff --git a/jtag/src/flash/amd.c b/jtag/src/flash/amd.c index 7628d7b5..28fb0da6 100644 --- a/jtag/src/flash/amd.c +++ b/jtag/src/flash/amd.c @@ -515,7 +515,7 @@ amd_flash_program( cfi_array_t *cfi_array, uint32_t adr, uint32_t *buffer, int c #endif /* multi-byte writes supported? */ - if (max_bytes_write > 0) + if (max_bytes_write > 1) return amd_flash_program_buffer( cfi_array, adr, buffer, count ); else { diff --git a/jtag/src/flash/intel.c b/jtag/src/flash/intel.c index b87a3675..62320d02 100644 --- a/jtag/src/flash/intel.c +++ b/jtag/src/flash/intel.c @@ -354,7 +354,7 @@ intel_flash_program( cfi_array_t *cfi_array, uint32_t adr, uint32_t *buffer, int #endif /* multi-byte writes supported? */ - if (max_bytes_write > 0) + if (max_bytes_write > 1) return intel_flash_program_buffer( cfi_array, adr, buffer, count ); else {