From 7ce6b09aa0806abcaf15514ae027ca2206511733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Wed, 18 Mar 2009 21:48:38 +0000 Subject: [PATCH] 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 --- jtag/ChangeLog | 6 ++++++ jtag/src/flash/amd.c | 2 +- jtag/src/flash/intel.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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 {