OSDN Git Service

set max_bytes_write to std value 1 instead of 0
authorarniml <arniml@b68d4a1b-bc3d-0410-92ed-d4ac073336b7>
Sun, 22 Nov 2009 16:35:23 +0000 (16:35 +0000)
committerMasaki Muranaka <monaka at monami-software.com>
Thu, 17 Dec 2009 03:19:59 +0000 (12:19 +0900)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1684 b68d4a1b-bc3d-0410-92ed-d4ac073336b7

urjtag/ChangeLog
urjtag/src/flash/amd.c
urjtag/src/flash/intel.c

index 83b7548..8d2323a 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-22  Arnim Laeuger <arniml>
+
+  * src/flash/intel.c, src/flash/amd.c: set max_bytes_write to std value 1
+    instead of 0
+
 2009-11-17  Rutger Hofman <rfhh>
 
   * src/bus/writemem.c: big-endian write shifts one too much. Patch by
index 49f00ab..b4c0081 100644 (file)
@@ -589,7 +589,7 @@ amd_flash_program (urj_flash_cfi_array_t *cfi_array, uint32_t adr,
     int max_bytes_write = cfi->device_geometry.max_bytes_write;
 
 #ifndef FLASH_MULTI_BYTE
-    max_bytes_write = 0;
+    max_bytes_write = 1;
 #endif
 
     /* multi-byte writes supported? */
index 2a0913a..e800eb9 100644 (file)
@@ -382,7 +382,7 @@ intel_flash_program (urj_flash_cfi_array_t *cfi_array,
     int max_bytes_write = cfi->device_geometry.max_bytes_write;
 
 #ifndef FLASH_MULTI_BYTE
-    max_bytes_write = 0;
+    max_bytes_write = 1;
 #endif
 
     /* multi-byte writes supported? */