activate multi byte write mode for > 1, not > 0

[ 2690857 ] Can't write flashes


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1459 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent 84496c84f0
commit 7ce6b09aa0

@ -1,3 +1,9 @@
2009-03-18 Arnim Laeuger <arniml>
* 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 <arniml>
* data/atheros/ar2312/ar2312: AR2313 flash access patch

@ -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 {

@ -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 {

Loading…
Cancel
Save