diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-02 22:41:59 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-02 22:41:59 -0800 |
commit | db6c994642f29b7d47abb4233494a606fbb65369 (patch) | |
tree | 48ef0ba30b5018f6409eb498426d4977ab80e965 /src/flash/nand | |
parent | d72e90ae4b070cc08799e800c111dd422ac6b1a4 (diff) | |
download | openocd+libswd-db6c994642f29b7d47abb4233494a606fbb65369.tar.gz openocd+libswd-db6c994642f29b7d47abb4233494a606fbb65369.tar.bz2 openocd+libswd-db6c994642f29b7d47abb4233494a606fbb65369.tar.xz openocd+libswd-db6c994642f29b7d47abb4233494a606fbb65369.zip |
ARM: start abstracting ADIv5 transports (JTAG/SWD)
To support both JTAG and SWD, ADIv5 needs DAP operations which are
transport-neutral, instead being of JTAG-specific. This patch:
- Defines such a transport-neutral interface, abstracting access
to DP and AP registers through a conceptual queue of operations.
- Builds the first implementation of such a transport with the existing
JTAG-specific code.
In contrast to the current JTAG-only interface, the interface adds
support for two previously-missing (and unused) DAP operations:
- aborting the current AP transaction (untested);
- reading the IDCODE register (tested) ... required for SWD init.
The choice of transports may be fixed at the chip, board, or JTAG/SWD
adapter level. Or if all the relevant hardware supports both transport
options, the choice may be made at runtime, This patch provides basic
infrastructure to support whichever choice is made.
The current "JTAG-only" transport choice policy will necessarily continue
for now, until SWD support becomes available in OpenOCD. Later patches
start phasing out JTAG-specific calls in favor of transport-neutral calls.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash/nand')
0 files changed, 0 insertions, 0 deletions