* include/jtag.h (detect_parts): Changed return type.
* src/detect.c (detect_parts): Changed return value to return number of detected parts.
* src/cmd/detect.c (cmd_detect_run): Added reset of the chain->parts to NULL before
detect_parts() call. Ignored detect_parts() return value.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@604 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* configure.ac (AC_INIT): Changed version number to 0.5.2.
* data/Makefile.am (nobase_dist_pkgdata_DATA): Added motorola/mpc8245/1.2.
* data/motorola/mpc8245/1.2: New file.
* src/bus/mpc824x.c: Ditto.
* src/bus/Makefile.am (libbus_a_SOURCES): Added mpc824x.c.
* src/bus/buses.c (bus_drivers): Added mpc824x_bus.
* src/bus/buses.h (mpc824x_bus): Added bus declaration.
* include/bsbit.h (bsbit_alloc): Changed parameter name (signals -> signal).
* src/part/bsbit.c (bsbit_alloc): Changed parameter behaviour.
* src/cmd/bit.c (cmd_bit_run): Passed exact signal to bsbit_alloc() instead of list of signals.
* src/jtag.c (main): Added cfi_array deallocation.
* src/flash.c (set_flash_driver): Used global cfi_array variable to set flash driver.
(flashcheck): Function removed.
All function calls replaced by set_flash_driver().
(flashmsbin): Removed local cfi_array variable.
(flashmem): Removed local cfi_array variable. Fixed bug with one more block erase while programming
data at end of previous block.
(flasherase): Removed local cfi_array variable. Fixed block number calculation.
* src/readmem.c (readmem): Fixed bug while reading address near to end of 32 bit address range.
* src/bus/pxa2x0.c (pxa2x0_bus_new): Added BSR sampling before BOOT_DEF initialization (bugfix).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@585 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* cmd/cmd_detectflash.c (cmd_detectflash_run, cmd_detectflash_help): Added new address parameter for 'detectflash'
command.
* flash/detectflash.c (detectflash): Added support for detecting flashes in full address range.
Added new global parameter cfi_array.
* flash/intel.c (intel_flash_autodetect32, intel_flash_autodetect, intel_flash_autodetect8): Added
start address of cfi_array for bus_area() calls.
(_intel_flash_print_info): Added start address of cfi_array for bus related function calls.
Changed first function parameter.
All function callers updated.
(intel_flash_print_info, intel_flash_print_info32, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_flash_erase_block32, intel_flash_unlock_block32, intel_flash_program32)
(intel_flash_readarray32, intel_flash_readarray): Added start address of cfi_array for bus related function calls.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@584 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/flash.c (flash_drivers): Added amd_16_flash_driver (Bradley D. LaRonde).
(find_block): New function (Bradley D. LaRonde).
(flashmem): Added block calculations using exact CFI data (Bradley D. LaRonde).
* src/tap/cable/triton.c (triton_init): Removed unused variable 'data'.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@570 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* flash/amd.c (amd_flash_autodetect16): New function (Bradley D. LaRonde).
(amd_flash_print_info): Added support for Am29LV800B (Bradley D. LaRonde).
(amd_16_flash_driver): New driver (Bradley D. LaRonde).
* flash/jedec.c: New file (Bradley D. LaRonde).
* flash/detectflash.c (detectflash): Added jedec_detect() call.
* Makefile.am (libbrux_a_SOURCES): Added flash/jedec.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@569 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/tap/cable/triton.c: New file (patch 805103, Andreas Mohr).
* src/tap/Makefile.am (libtap_a_SOURCES): Added cable/triton.c (patch 805103, Andreas Mohr).
* src/tap/cable.c (cable_drivers): Added triton_cable_driver member (patch 805103, Andreas Mohr).
* src/tap/cable/generic.h (PARAM_SRESET): New macro (patch 805103, Andreas Mohr).
(generic_params_t): New structure member 'sreset' (patch 805103, Andreas Mohr).
* configure.ac: Changed description for --with-include parameter (thanks to Andreas Mohr).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@565 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* configure.ac (AC_CHECK_FUNCS): Added swprintf.
* src/cmd/print.c (cmd_print_run): Added alternative implementation of the header printing using
snprintf() for platforms without swprintf() function available.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@564 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/tap/cable/wiggler.c (wiggler_init, wiggler_clock, wiggler_get_tdo, wiggler_set_trst): Fixed
inverted TRST signal (see patch 799377 for more info, thanks to Mike Tesch for reporting).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@562 b68d4a1b-bc3d-0410-92ed-d4ac073336b7