fprintf for devid and manid moved to proper place

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@920 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent 1d35bbd545
commit 331fdfe1cb

@ -1,3 +1,7 @@
2008-01-15 Arnim Laeuger <arniml@users.sourceforge.net>
* flash/jedec.c (jedec_detect): fprintf for devid and manid moved to end of detection
2007-12-08 [819] Kolja Waschk <kawk>
* configure.ac: Do not search for openwince include, use ../inclow

@ -419,8 +419,6 @@ jedec_detect( bus_t *bus, uint32_t adr, cfi_array_t **cfi_array )
devid_as[AUTOSELECT_M2] = bus_read(bus, adr+1);
bus_write(bus, adr, 0xf0);
fprintf(stderr, "dev ID=%04x man ID=%04x\n", devid, manid);
for(i=0 ; i<sizeof(table)/sizeof(struct amd_flash_info) ; i++) {
/* compare manufacturer and device id based on the result
of the device's Autoselect method */
@ -428,6 +426,7 @@ jedec_detect( bus_t *bus, uint32_t adr, cfi_array_t **cfi_array )
devid = devid_as[table[i].as_method];
if(manid==table[i].mfr_id && devid==table[i].dev_id) break;
}
fprintf(stderr, "dev ID=%04x man ID=%04x\n", devid, manid);
if(i==sizeof(table)/sizeof(struct amd_flash_info))
return -4;

Loading…
Cancel
Save