From 81fdf5f95a9245ec801a6aa3b521c34fcd7e67c8 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 6 Nov 2007 19:05:03 +0000 Subject: [PATCH] [ 1079526 ] Flash AMD29LV065D support git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@693 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/libbrux/Makefile.am | 2 ++ jtag/libbrux/flash/amd.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jtag/libbrux/Makefile.am b/jtag/libbrux/Makefile.am index 2ae25203..9c1d4bda 100644 --- a/jtag/libbrux/Makefile.am +++ b/jtag/libbrux/Makefile.am @@ -44,3 +44,5 @@ libbrux_a_SOURCES = \ flash/detectflash.c \ flash/amd.c \ flash/intel.c + +ACLOCAL_AMFLAGS = -I m4 diff --git a/jtag/libbrux/flash/amd.c b/jtag/libbrux/flash/amd.c index 72b83947..5516ccd1 100644 --- a/jtag/libbrux/flash/amd.c +++ b/jtag/libbrux/flash/amd.c @@ -74,7 +74,7 @@ static int amd_flash_autodetect8( cfi_array_t *cfi_array ) { if(cfi_array->bus_width != 1) return 0; - o = 1; /* Heuristic */ + o = 0; /* Heuristic */ return (cfi_array->cfi_chips[0]->cfi.identification_string.pri_id_code == CFI_VENDOR_AMD_SCS); } /* @@ -194,6 +194,9 @@ amd_flash_print_info( cfi_array_t *cfi_array ) case 0x225B: printf( _("Am29LV800B") ); break; + case 0x0093: + printf( _("Am29LV065D") ); + break; default: printf ( _("Unknown (ID 0x%04x)"), cid ); break; @@ -290,7 +293,7 @@ flash_driver_t amd_16_flash_driver = { flash_driver_t amd_8_flash_driver = { 1, /* buswidth */ N_("AMD/Fujitsu Standard Command Set"), - N_("supported: AMD 29LV160; 1x8 Bit"), + N_("supported: AMD 29LV160, AMD 29LV065D; 1x8 Bit"), amd_flash_autodetect8, amd_flash_print_info, amd_flash_erase_block,