aboutsummaryrefslogtreecommitdiff
path: root/src/jtag
AgeCommit message (Collapse)Author
2009-11-24jlink: remove superfluous indentationZachary T Welch
Rewrite logic to remove indentation in jlink_usb_open, in prep for further surgery.
2009-11-24rlink: use jtag_usb_open helperZachary T Welch
Rewrite rlink_init routine to use jtag_usb_open helper. Eliminates some spurious calls to exit(). Wraps a tremendously long line of comment to fit 80 columns too.
2009-11-24rlink: eliminate spurious indentationZachary T Welch
Rework rlink_init to use less indentation. Best viewed with diff -w.
2009-11-24vsllink: rewrite to use jtag_usb_openZachary T Welch
Rewrite vsllink_usb_open to use jtag_usb_open helper. Eliminates spurious calls to exit().
2009-11-24usbprog: use jtag_usb_openZachary T Welch
Rewrite usbprob_jtag_open to use jtag_usb_open helper.
2009-11-24arm-jtag-ew: use jtag_usb_openZachary T Welch
Rewrite armjtagwe_usb_open to use jtag_usb_open.
2009-11-24add jtag/usb_common.[ch] filesZachary T Welch
Begins to consolidate code used by several USB JTAG interfaces. This first patch provides the required build system changes and a common jtag_usb_open routine, which will replace the guts for probing the busses and devices for possible VID/PID matches. The following patches convert each driver to use it.
2009-11-22zy1000: fix breakage in command parsing code for power commandØyvind Harboe
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-21jtag: remove useless forward declarationsZachary T Welch
Removes some more useless forward declarations from a few JTAG drivers. Moves interface and bit-bang structure defitions below their callbacks.
2009-11-21allow jtag interfaces to lack commandsZachary T Welch
Allow JTAG interface drivers to skip registering an register_commands callback when it will just be empty.
2009-11-18fix zy1000 command handlerZachary T Welch
Rewrite ZY1000 power command handler to use new macros, simplify logic. Remove unused port command handler declaration.
2009-11-18use COMMAND_PARSE_ENABLE macro where appropriateZachary T Welch
Updates all command parsing of simple "enable" and "disable" arguments. A few case in the tree use a tri-state or extended arguments, which cannot use this simple macro. Simlifies the xscale icache/dcache command handler logic.
2009-11-18use COMMAND_PARSE_ON_OFF where appropriateZachary T Welch
Updates all command parsing of "on" and "off" arguments.
2009-11-18split startup.tcl file across modulesZachary T Welch
Moves definitions for each layer into their own file, eliminating layering violations in the built-in TCL code. Updates src/Makefile.am rules to include all files in the final startup.tcl input file, and others Makefile.am rules to distribute the new files in our packages.
2009-11-17command_handler: change 'cmd_ctx' to CMD_CTXZachary T Welch
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17command_handler: change 'args' to CMD_ARGVZachary T Welch
This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
2009-11-17command_handler: change to 'argc' to CMD_ARGCZachary T Welch
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
2009-11-17jtag_registers: Avalon bridge flushing tweaksØyvind Harboe
The code is now much more explicit. It flushes every N writes. For now flush every time, but tinkering with the bridge FIFO size and how often we flush clearly points in the direction of the Avalon write FIFO full being the culprit. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-17zy1000: add version command to print FPGA version and timestampsØyvind Harboe
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-17zy1000: fix bug when running on non-arm CPUØyvind Harboe
Shifting by more than 32 is undefined for 32 bit integers according to the C standard. Robust solution is conditional code. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-17zy1000: fix trivial syntax error introduced by latest refactoringsØyvind Harboe
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-16JTAG: fix autoprobe failure.David Brownell
Fix bug noted by Øyvind: terminate the IR length autoscan when the IR is too long, or otherwise broken. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16JTAG: no LOG_WARNING() for taps without IDCODEDavid Brownell
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16move ARRAY_SIZE macro to types.hZachary T Welch
The ARRAY_SIZE macro was defined in several target files, so move it to types.h. This patch also removes two other identical macros: DIM (from jtag.h) and asizeof (from arm11.h).
2009-11-16remove TAP_SCAN_BYTES macroZachary T Welch
Use DIV_ROUND_UP(n, 8) instead of TAP_SCAN_BYTES macro.
2009-11-16rename CEIL as DIV_ROUND_UPZachary T Welch
Improves the name of this macro, moves it to types.h, and adds a block of Doxygen comments to describe what it does.
2009-11-16cleanup jtag minidriversZachary T Welch
Remove two vestigial externs from our JTAG minidriver source files. Also, removes many extra blank lines from the minidummy driver.
2009-11-15arm-jtag-ew,jlink: switch to COMMAND_HANDLERZachary T Welch
These drivers were overlooked during the recent upgrade. Convert them, moving their registration routines to eliminate their declarations.
2009-11-15rlink: fix overzealous sedZachary T Welch
Fix an instance where my cleanup when awry.
2009-11-14compile with cygwin (32-bit)Ferdinand Postema
Changed some printf format strings.. [dbrownell@users.sourceforge.net: shrink lines, fix indents] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-13command_t -> struct commandZachary T Welch
Remove misleading typedef and redundant suffix from struct command.
2009-11-13command_context_t -> struct command_contextZachary T Welch
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13remove rlink structure typedefsZachary T Welch
Remove useless typedefs from the rlink driver. Improve whitespace.
2009-11-13target_t -> struct targetZachary T Welch
Remove misleading typedef and redundant suffix from struct target.
2009-11-13jtag_command_t -> struct jtag_commandZachary T Welch
Remove useless typedef from struct jtag_command.
2009-11-13jtag_command_container_t -> union jtag_command_containerZachary T Welch
Remove misleading typedef from union jtag_container.
2009-11-13sleep_command_t -> struct sleep_commandZachary T Welch
Remove misleading typedef from struct sleep_command.
2009-11-13end_state_command_t -> struct end_state_commandZachary T Welch
Remove misleading typedef from struct end_state_command.
2009-11-13reset_command_t -> struct reset_commandZachary T Welch
Remove misleading typedef from struct reset_command.
2009-11-13stableclocks_command_t -> struct stableclocks_commandZachary T Welch
Remove misleading typedef from struct stableclocks_command.
2009-11-13runtest_command_t -> struct runtest_commandZachary T Welch
Remove misleading typedef from struct runtest_command.
2009-11-13pathmove_command_t -> struct pathmove_commandZachary T Welch
Remove misleading typedef from struct pathmove_command.
2009-11-13statemove_command_t -> struct statemove_commandZachary T Welch
Remove misleading typedef from struct statemove_command.
2009-11-13cmd_queue_page_t -> struct cmd_queue_pageZachary T Welch
Remove misleading typedef from struct cmd_queue_page.
2009-11-13scan_command_t -> struct scan_commandZachary T Welch
Remove misleading typedef on struct scan_command.
2009-11-13more vsllink typedef cleanupZachary T Welch
Remove useless typedef for struct insert_insignification_operation.
2009-11-13vsllink_jtag_t -> struct vsllinkZachary T Welch
Remove misleading typedef and redundant suffix.
2009-11-13presto_t -> struct prestoZachary T Welch
Remove useless typedef.
2009-11-13ft2232_device_t -> struct ft2232_deviceZachary T Welch
Remove misleading typedef from ft2232_device; it was barely used.
2009-11-13jlink_jtag_t -> struct jlinkZachary T Welch
Remove misleading typedef and redundant suffix.