Zachary T Welch
3ab599a7e4
ft2232: use register_commands()
...
Use register_commands() with a command registration array.
2009-11-24 21:37:33 -08:00
Zachary T Welch
30be874de8
at91rm9200: use register_commands()
...
Use register_commands() with command registration array.
---
This module was broken by previous changes, but no one has complained.
Are there still users for this modules?
2009-11-24 21:37:33 -08:00
Zachary T Welch
0af32bb938
arm-jtag-ew: use register_commands()
...
Uses register_commands() with command registration array.
2009-11-24 21:37:33 -08:00
Zachary T Welch
48429dcfad
amt_jtagaccel: use register_commands()
...
Use register_commands() with command_registration array.
2009-11-24 21:37:33 -08:00
Zachary T Welch
833e7f5248
use COMMAND_REGISTER macro
...
Replaces direct calls to register_command() with a macro, to allow
its parameters to be changed and callers updated in phases.
2009-11-24 21:37:29 -08:00
Zachary T Welch
47cb10217a
improve startup tcl scripts
...
Fix a couple of layering violations missed in the last round.
Add missing comment headers.
2009-11-24 21:37:29 -08:00
Zachary T Welch
96f0ab894a
jlink: rewrite to use jtag_usb_open
...
Rewrite jlink_usb_open to use jtag_usb_open helper.
2009-11-24 07:30:20 -08:00
Zachary T Welch
31fc1586a0
jlink: remove superfluous indentation
...
Rewrite logic to remove indentation in jlink_usb_open, in prep
for further surgery.
2009-11-24 07:30:20 -08:00
Zachary T Welch
9a21ef7614
rlink: use jtag_usb_open helper
...
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-24 07:30:20 -08:00
Zachary T Welch
ec5e484fd6
rlink: eliminate spurious indentation
...
Rework rlink_init to use less indentation. Best viewed with diff -w.
2009-11-24 07:30:19 -08:00
Zachary T Welch
de9a182ca6
vsllink: rewrite to use jtag_usb_open
...
Rewrite vsllink_usb_open to use jtag_usb_open helper.
Eliminates spurious calls to exit().
2009-11-24 07:30:19 -08:00
Zachary T Welch
0f544f4310
usbprog: use jtag_usb_open
...
Rewrite usbprob_jtag_open to use jtag_usb_open helper.
2009-11-24 07:30:19 -08:00
Zachary T Welch
d836b079b4
arm-jtag-ew: use jtag_usb_open
...
Rewrite armjtagwe_usb_open to use jtag_usb_open.
2009-11-24 07:30:19 -08:00
Zachary T Welch
3a660e2293
add jtag/usb_common.[ch] files
...
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-24 07:30:19 -08:00
Øyvind Harboe
808e53368c
zy1000: fix breakage in command parsing code for power command
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2009-11-22 13:38:42 +01:00
Zachary T Welch
b58239e4c0
jtag: remove useless forward declarations
...
Removes some more useless forward declarations from a few JTAG drivers.
Moves interface and bit-bang structure defitions below their callbacks.
2009-11-21 10:20:56 -08:00
Zachary T Welch
c46c2d77e6
allow jtag interfaces to lack commands
...
Allow JTAG interface drivers to skip registering an register_commands
callback when it will just be empty.
2009-11-21 10:19:47 -08:00
Zachary T Welch
f382ebae10
fix zy1000 command handler
...
Rewrite ZY1000 power command handler to use new macros, simplify logic.
Remove unused port command handler declaration.
2009-11-18 15:51:07 -08:00
Zachary T Welch
410fab9ea8
use COMMAND_PARSE_ENABLE macro where appropriate
...
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-18 15:51:07 -08:00
Zachary T Welch
75a37eb5b3
use COMMAND_PARSE_ON_OFF where appropriate
...
Updates all command parsing of "on" and "off" arguments.
2009-11-18 15:51:07 -08:00
Zachary T Welch
cb7dbc1af4
split startup.tcl file across modules
...
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-18 07:21:42 -08:00
Zachary T Welch
2861877b32
command_handler: change 'cmd_ctx' to CMD_CTX
...
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17 11:40:06 -08:00
Zachary T Welch
23402315ce
command_handler: change 'args' to CMD_ARGV
...
This patch converts all instances of 'args' in COMMAND_HANDLER routines
to use CMD_ARGV macro.
2009-11-17 11:38:07 -08:00
Zachary T Welch
7bf1a86e47
command_handler: change to 'argc' to CMD_ARGC
...
This patch converts all instances of 'argc' in COMMAND_HANDLER routines
to use CMD_ARGC.
2009-11-17 11:38:06 -08:00
Øyvind Harboe
959b373f8c
jtag_registers: Avalon bridge flushing tweaks
...
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-17 15:39:05 +01:00
Øyvind Harboe
ca32f25638
zy1000: add version command to print FPGA version and timestamps
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2009-11-17 15:04:17 +01:00
Øyvind Harboe
83104648e6
zy1000: fix bug when running on non-arm CPU
...
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-17 15:04:17 +01:00
Øyvind Harboe
b888b63fe9
zy1000: fix trivial syntax error introduced by latest refactorings
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2009-11-17 15:01:48 +01:00
David Brownell
7c393679c0
JTAG: fix autoprobe failure.
...
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-16 16:36:03 -08:00
David Brownell
a7c04a0e49
JTAG: no LOG_WARNING() for taps without IDCODE
...
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net >
2009-11-16 15:18:55 -08:00
Zachary T Welch
dc1685ca25
move ARRAY_SIZE macro to types.h
...
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-16 09:58:11 -08:00
Zachary T Welch
0535a92456
remove TAP_SCAN_BYTES macro
...
Use DIV_ROUND_UP(n, 8) instead of TAP_SCAN_BYTES macro.
2009-11-16 09:58:11 -08:00
Zachary T Welch
a94748ec6d
rename CEIL as DIV_ROUND_UP
...
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-16 09:58:11 -08:00
Zachary T Welch
d7a0dfa4dc
cleanup jtag minidrivers
...
Remove two vestigial externs from our JTAG minidriver source files.
Also, removes many extra blank lines from the minidummy driver.
2009-11-16 05:30:51 -08:00
Zachary T Welch
f30136603e
arm-jtag-ew,jlink: switch to COMMAND_HANDLER
...
These drivers were overlooked during the recent upgrade. Convert them,
moving their registration routines to eliminate their declarations.
2009-11-15 09:12:44 -08:00
Zachary T Welch
6731968873
rlink: fix overzealous sed
...
Fix an instance where my cleanup when awry.
2009-11-15 09:11:29 -08:00
Ferdinand Postema
ab3bdfb2cb
compile with cygwin (32-bit)
...
Changed some printf format strings..
[dbrownell@users.sourceforge.net: shrink lines, fix indents]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-14 02:22:37 -08:00
Zachary T Welch
ef746e27c5
command_t -> struct command
...
Remove misleading typedef and redundant suffix from struct command.
2009-11-13 13:30:50 -08:00
Zachary T Welch
98723c4ecd
command_context_t -> struct command_context
...
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13 13:25:47 -08:00
Zachary T Welch
d16968e24f
remove rlink structure typedefs
...
Remove useless typedefs from the rlink driver. Improve whitespace.
2009-11-13 12:19:39 -08:00
Zachary T Welch
0f1163e823
target_t -> struct target
...
Remove misleading typedef and redundant suffix from struct target.
2009-11-13 11:58:14 -08:00
Zachary T Welch
246068fd89
jtag_command_t -> struct jtag_command
...
Remove useless typedef from struct jtag_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
1053c32d9e
jtag_command_container_t -> union jtag_command_container
...
Remove misleading typedef from union jtag_container.
2009-11-13 11:58:05 -08:00
Zachary T Welch
22b220ad7f
sleep_command_t -> struct sleep_command
...
Remove misleading typedef from struct sleep_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
cf2e402d71
end_state_command_t -> struct end_state_command
...
Remove misleading typedef from struct end_state_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
8cc8c0544f
reset_command_t -> struct reset_command
...
Remove misleading typedef from struct reset_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
2fecae46f6
stableclocks_command_t -> struct stableclocks_command
...
Remove misleading typedef from struct stableclocks_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
5f6d8ecf8c
runtest_command_t -> struct runtest_command
...
Remove misleading typedef from struct runtest_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
c07f0600ff
pathmove_command_t -> struct pathmove_command
...
Remove misleading typedef from struct pathmove_command.
2009-11-13 11:58:05 -08:00
Zachary T Welch
af3f4a0bbe
statemove_command_t -> struct statemove_command
...
Remove misleading typedef from struct statemove_command.
2009-11-13 11:58:05 -08:00