From c848466df3bd2dc23ee1633ccd28a43fcf391074 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Mon, 17 Feb 2003 15:28:15 +0000 Subject: [PATCH] 2003-02-17 Marcel Telka * src/flash-intel.c (intel_flash_autodetect): Fixed Intel flash algorithm Id. (intel_flash_autodetect32): Ditto. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@362 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/flash-intel.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 2efa02e3..e628935e 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2003-02-17 Marcel Telka + + * src/flash-intel.c (intel_flash_autodetect): Fixed Intel flash algorithm Id. + (intel_flash_autodetect32): Ditto. + 2003-02-17 Marcel Telka * configure.ac (AC_CHECK_FUNCS): Added getdelim and getline. diff --git a/jtag/src/flash-intel.c b/jtag/src/flash-intel.c index cf12c06f..efc3c0ab 100644 --- a/jtag/src/flash-intel.c +++ b/jtag/src/flash-intel.c @@ -53,13 +53,13 @@ static int intel_flash_program32( parts *ps, uint32_t adr, uint32_t data ); static int intel_flash_autodetect32( parts *ps, cfi_query_structure_t *cfi ) { - return (cfi->identification_string.pri_id_code == CFI_VENDOR_INTEL_SCS) && (bus_width( ps ) == 32); + return (cfi->identification_string.pri_id_code == CFI_VENDOR_INTEL_ECS) && (bus_width( ps ) == 32); } static int intel_flash_autodetect( parts *ps, cfi_query_structure_t *cfi ) { - return (cfi->identification_string.pri_id_code == CFI_VENDOR_INTEL_SCS) && (bus_width( ps ) == 16); + return (cfi->identification_string.pri_id_code == CFI_VENDOR_INTEL_ECS) && (bus_width( ps ) == 16); } static