2003-05-22 Marcel Telka * config.h: New file. Changed all relevant source files to include this file unconditionaly. * Makefile.am (noinst_HEADERS): Added config.h. * configure.ac (AM_CONFIG_HEADER): Renamed generated configuration file from config.h to acconfig.h. 2003-05-22 Marcel Telka * src/jtag.c: Added new global variable 'big_endian'. * include/jtag.h: Ditto. * src/flash.c (flashmem): Added full support for little/big endian. * src/readmem.c (readmem): Ditto. * src/cmd/Makefile.am (libcmd_a_SOURCES): Added endian.c. * src/cmd/cmd.c (cmds): Added new command 'endian'. * src/cmd/endian.c: New file. 2003-05-21 Marcel Telka * Makefile.rules: New file. * Makefile.am: Added Makefile.rules include. (EXTRA_DIST): Added Makefile.rules. * data/Makefile.am: Added Makefile.rules include. * doc/Makefile.am: Ditto. * include/Makefile.am: Ditto. * po/Makevars: Ditto. * src/Makefile.am: Ditto. * src/bus/Makefile.am: Ditto. * src/cmd/Makefile.am: Ditto. * src/flash/Makefile.am: Ditto. * src/lib/Makefile.am: Ditto. * src/part/Makefile.am: Ditto. * src/tap/Makefile.am: Ditto. 2003-05-21 Marcel Telka * include/signal.h: Renamed this file ... * include/bssignal.h: ... to this one. All includes changed. * include/Makefile.am (noinst_HEADERS): Renamed signal.h to bssignal.h. * include/data_register.h: Marked local include files with double quotes. * include/instruction.h: Ditto. * include/part.h: Ditto. 2003-05-21 Marcel Telka * include/bsbit.h (bsbit, bsbit_t): Renamed typedef bsbit to bsbit_t. All occurences of the bsbit type changed to bsbit_t. 2003-05-21 Marcel Telka * include/part.h (part_find_signal): New function declaration. (part_set_signal, part_get_signal): Changed parameter signal name to signal pointer. * src/part/part.c (part_find_signal): New function. (part_set_signal, part_get_signal): Removed signal searching, used supplied pointer to signal. * po/POTFILES.in: Added src/bus/ixp425.c, src/bus/pxa2x0.c, and src/bus/sa1110.c. * src/bus/ixp425.c (bus_params_t, select_flash, unselect_flash, setup_address, set_data_in) (setup_data, ixp425_bus_read_start, ixp425_bus_read_next, ixp425_bus_read_end, ixp425_bus_write) (new_ixp425_bus): Optimized signal searching to increase bus access speed. * src/bus/pxa2x0.c (bus_params_t, setup_address, set_data_in, setup_data, pxa250_bus_read_start) (pxa250_bus_read_next, pxa250_bus_read_end, pxa250_bus_write, new_pxa250_bus): Ditto. * src/bus/sa1110.c (bus_params_t, setup_address, set_data_in, setup_data, sa1110_bus_read_start) (sa1110_bus_read_next, sa1110_bus_read_end, sa1110_bus_write, new_sa1110_bus): Ditto. (sa1110_bus_width): Updated part_get_signal() function call. Added explicit signal search. * src/cmd/get.c (cmd_get_run): Ditto. * src/cmd/set.c (cmd_set_run): Updated part_set_signal() function call. Added explicit signal search. 2003-05-20 Marcel Telka * configure.ac (AC_CONFIG_FILES): Added src/cmd/Makefile. * include/Makefile.am (noinst_HEADERS): Added jtag.h. * include/jtag.h: New file. * po/POTFILES.in: Updated. * src/Makefile.am (SUBDIRS): Added cmd. (jtag_SOURCES): Removed jtag.h and help.c. (jtag_DEPENDENCIES): Added cmd/libcmd.a. (jtag_LDADD): Added libcmd. (INCLUDES): Removed JTAG_DATA_DIR. * src/help.c: File removed. * src/jtag.h: Ditto. * src/jtag.c (jtag_parse_line): Removed command parsing and moved it to cmd directory. (jtag_parse_file): Function is no longer static. * src/cmd/Makefile.am: New file. * src/cmd/cable.c: Ditto. * src/cmd/cmd.c: Ditto. * src/cmd/cmd.h: Ditto. * src/cmd/detect.c: Ditto. * src/cmd/detectflash.c: Ditto. * src/cmd/discovery.c: Ditto. * src/cmd/dr.c: Ditto. * src/cmd/flashmem.c: Ditto. * src/cmd/frequency.c: Ditto. * src/cmd/get.c: Ditto. * src/cmd/help.c: Ditto. * src/cmd/instruction.c: Ditto. * src/cmd/print.c: Ditto. * src/cmd/quit.c: Ditto. * src/cmd/readmem.c: Ditto. * src/cmd/script.c: Ditto. * src/cmd/set.c: Ditto. * src/cmd/shift.c: Ditto. * src/part/part.c (parts_print): Fixed header printing. 2003-05-20 Marcel Telka * src/part/data_register.c: Added l10n support. Marked messages for translation. * src/part/instruction.c: Ditto. * src/part/parse.c: Ditto. * po/POTFILES.in: Added above files. 2003-05-19 Marcel Telka * src/tap/parport/ppdev.c (ppdev_get_status): Inverted BUSY signal value. * include/cfi.h (cfi_chip_t, cfi_array_t): New typedefs. (cfi_array_free): New function prototype. (detect_cfi): Changed function prototype. * include/flash.h (set_flash_driver): Removed function prototype. * src/flash/cfi.c (BW16): Macro removed. (read2): Function removed. (cfi_array_free): New function. (detect_cfi): Added code to detect all CFI chips on the data bus. * src/flash.c (flashcheck): Removed bus width checking. Updated due changes in src/flash/cfi.c. (flashmsbin): Updated due changes in src/flash/cfi.c. Removed memory leak. * src/readmem.c: Added l10n support. Marked messages for translation. (detectflash): Updated due changes in src/flash/cfi.c. Removed memory leak. Removed flash driver setup. * po/POTFILES.in: Added src/readmem.c. 2003-05-16 Marcel Telka * include/part.h (part_print): New function declaration. * src/part/part.c: Marked all user visible messages for translation. (part_print): New function. (parts_print): Simplified. Added part_print() call. * po/POTFILES.in: Added src/part/part.c. * src/Makefile.am (jtag_DEPENDENCIES): Added flash/libflash.a. 2003-05-15 Marcel Telka * include/cfi.h (detect_cfi): Added new parameter `adr'. All relevant functions and callers updated. 2003-05-15 Marcel Telka * configure.ac (CPPFLAGS): Added path to the openwince include arm directory. * include/bus.h (bus_width): Added new `adr' parameter for this macro. All relevant functions and callers updated. * src/bus/pxa2x0.c (bus_params_t): Added last_adr and MC_registers structure members. (LAST_ADR, MC_pointer): New macros. (pxa250_bus_read_start, pxa250_bus_read_next, pxa250_bus_read_end, pxa250_bus_write): Disabled external bus cycles for addresses above 0x04000000. (pxa250_bus_width): Removed some output messages. Implemented BOOT_DEF emulation. (new_pxa250_bus): Implemented BOOT_DEF emulation. 2003-05-14 Marcel Telka * include/Makefile.am (noinst_HEADERS): Added cfi.h. * include/cfi.h: New file. * src/jtag.h (detect_cfi): Removed function declaration. * src/flash.c: Replaced jtag.h include with cfi.h. * src/readmem.c: Ditto. * src/flash/Makefile.am (libflash_a_SOURCES): Added cfi.c. * src/Makefie.am (jtag_SOURCES): Removed cfi.c. * src/cfi.c: Moved this file ... * src/flash/cfi.c: ... here and replaced jtag.h include with cfi.h one. 2003-05-14 Marcel Telka * include/part.h (part_t, parts_t): Macros removed. * src/detect.c: Replaced obsolete types `parts' with `parts_t' and `part' with `part_t'. * src/part/parse.c: Ditto. * src/part/part.c: Ditto. 2003-05-14 Marcel Telka * configure.ac (AC_CONFIG_FILES): Added src/flash/Makefile. * include/Makefile.am (noinst_HEADERS): Added flash.h. * src/Makefile.am (SUBDIRS): Added flash. (jtag_SOURCES): Removed flash.h, flash-intel.c, and flash-amd.c. (jtag_LDADD): Added libflash. * src/flash-amd.c: Moved this file ... * src/flash/amd.c: ... here. * src/flash-intel.c: Moved this file ... * src/flash/intel.c: ... here. * src/flash.h: Moved this file ... * include/flash.h: ...here. * src/flash/Makefile.am: New file. 2003-05-13 Marcel Telka * src/jtag.c (jtag_parse_file): Added support for command scripts from stdin. 2003-04-29 Marcel Telka * data/MANUFACTURERS: Added new manufacturer: DEC. * src/jtag.c (jtag_create_jtagdir): Changed permissions for jtag directory. * include/part.h (part_alloc, read_part): Changed return type from `part *' to `part_t *'. (struct parts): Changed parts member type from `part **' to `part_t **'. (parts_alloc): Changed return type from `parts *' to `parts_t *'. * src/bus/ixp425.c (select_flash, unselect_flash, setup_address, set_data_in, setup_data): Changed first parameter type from `part *' to `part_t *'. * src/bus/pxa250.c (setup_address, set_data_in, setup_data): Ditto. * src/bus/sa1110.c (setup_address, set_data_in, setup_data): Ditto. * include/bus.h: Replaced static bus_driver_t architecture with dynamic bus_t. Removed direct chain_t dependency. Added `params' and `prepare' members. All related functions' parameter types changed. * src/bus/ixp425.c (bus_params_t): New structure typedef. (CHAIN, PART): New macros. (ixp425_bus_prepare, ixp425_bus_free, new_ixp425_bus): New functions. (ixp425_bus_driver, ixp425_bus): Renamed `ixp425_bus_driver' to `ixp425_bus' and updated for new bus driver architecture. * src/bus/pxa250.c (bus_params_t): New structure typedef. (CHAIN, PART): New macros. (pxa250_bus_prepare, pxa250_bus_free, new_pxa250_bus): New functions. (pxa250_bus_driver, pxa250_bus): Renamed `pxa250_bus_driver' to `pxa250_bus' and updated for new bus driver architecture. * src/bus/sa1110.c (bus_params_t): New structure typedef. (CHAIN, PART): New macros. (sa1110_bus_prepare, sa1110_bus_free, new_sa1110_bus): New functions. (sa1110_bus_driver, sa1110_bus): Renamed `sa1110_bus_driver' to `sa1110_bus' and updated for new bus driver architecture. * src/readmem.c (detectflash, readmem): Moved JTAG chain initialization to bus->prepare(). * src/flash.c (flashcheck): Ditto. (flashmsbin, flashmem): Removed BYPASS instruction setup. * src/jtag.c (bus_driver, bus): Replaced `bus_driver' with `bus' global variable. (jtag_parse_line, main): Added `bus' deallocation. * src/flash.h (flash_driver_t): Changed parameter type for all function members from `chain_t*' to `bus_t *'. All function callers changed. 2003-04-04 Marcel Telka Version 0.3.2 released. 2003-04-04 Marcel Telka * data/xilinx/PARTS: Added XCR3256XL-FT256 (Jachym Holecek). * data/xilinx/xcr3256xl-ft256/STEPPINGS: New file (Jachym Holecek). * data/xilinx/xcr3256xl-ft256/xcr3256xl-ft256: Ditto. * data/Makefile.am (nobase_dist_pkgdata_DATA): Added new files. 2003-04-02 Marcel Telka * configure.ac (AC_INIT): Changed version number to 0.3.2. 2003-04-02 Marcel Telka * include/signal.h: Changed signal typedef to signal_t (thanks to Jachym Holecek). All `signal' instances renamed to `signal_t'. * src/tap/parport.c: Ported to NetBSD/i386 (Jachym Holecek). * src/tap/parport/direct.c (parport_drivers): Conditionally removed direct_parport_driver. * configure.ac: Added test for i386_set_ioperm() function. Defined HAVE_IOPERM and HAVE_I386_SET_IOPERM. 2003-04-01 Marcel Telka * src/tap/cable/keithkoep.c: New file. * src/tap/Makefile.am (libtap_a_SOURCES): Added cable/keithkoep.c. * src/tap/cable.c (cable_drivers): Added keithkoep_cable_driver. 2003-03-19 Marcel Telka Version 0.3.1 released. 2003-03-19 Marcel Telka * configure.ac (AC_CONFIG_FILES): Added doc/Makefile. * Makefile.am (SUBDIRS): Added doc. 2003-03-18 Marcel Telka * src/tap/parport/direct.c (direct_connect): Fixed cable disconnecting loop. 2003-03-18 Marcel Telka * src/jtag.c (jtag_parse_line)