[ 2821629 ] Can't find flash_info : amd_flash.c (MURANAKA Masaki)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1660 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent 7a397d0eac
commit 47414f376c

@ -1,5 +1,8 @@
2009-07-15 Arnim Laeuger <arniml>
* src/flash/amd_flash.c: [ 2821629 ] Can't find flash_info : amd_flash.c
(MURANAKA Masaki)
* src/flash/flash.c, include/jtag.h:
[ 2816643 ] Matching arguments of funcion flasherase()

@ -1,5 +1,5 @@
/*
* $Id: amd_flash.c,v 1.0 20/09/2006 12:38:01 $
* $Id$
*
* AMD 8 bit flash driver for AM29F040B & AM29LV040B
* Copyright (C) 2006 Kila Medical Systems.
@ -124,8 +124,8 @@ int amd_detect(bus_t *bus, uint32_t adr, cfi_array_t **cfi_array )
}
(*cfi_array)->bus = bus;
(*cfi_array)->address = 0;
if (bus_area( bus, adr+0, &area ) != URJTAG_STATUS_OK)
(*cfi_array)->address = adr;
if (bus_area( bus, adr, &area ) != URJTAG_STATUS_OK)
return -8; /* bus width detection failed */
unsigned int bw = area.width;
int ba,i;

@ -1,5 +1,8 @@
2009-07-15 Arnim Laeuger <arniml>
* src/flash/amd_flash.c: [ 2821629 ] Can't find flash_info : amd_flash.c
(MURANAKA Masaki)
* src/flash/flash.c, include/urjtag/flash.h:
[ 2816643 ] Matching arguments of funcion flasherase()

@ -1,5 +1,5 @@
/*
* $Id: amd_flash.c,v 1.0 20/09/2006 12:38:01 $
* $Id$
*
* AMD 8 bit flash driver for AM29F040B & AM29LV040B
* Copyright (C) 2006 Kila Medical Systems.
@ -130,8 +130,8 @@ urj_flash_amd_detect (urj_bus_t *bus, uint32_t adr,
}
(*cfi_array)->bus = bus;
(*cfi_array)->address = 0;
if (URJ_BUS_AREA (bus, adr + 0, &area) != URJ_STATUS_OK)
(*cfi_array)->address = adr;
if (URJ_BUS_AREA (bus, adr, &area) != URJ_STATUS_OK)
// retain error status
return URJ_STATUS_FAIL; /* bus width detection failed */
unsigned int bw = area.width;

Loading…
Cancel
Save