summaryrefslogtreecommitdiff
path: root/src/target/mips_ejtag.c
diff options
context:
space:
mode:
authorDrasko DRASKOVIC <drasko.draskovic@gmail.com>2011-04-04 15:33:04 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-04-05 08:21:29 +0200
commit719f9ecde32ab60bcb65913454a9340c5754cee4 (patch)
treeadcdaa11d563cc1623d2744adc94c81a1e3f69ea /src/target/mips_ejtag.c
parentbc9afcd4d1cb3fb09d7fae40eb355fa4987b9dec (diff)
downloadopenocd+libswd-719f9ecde32ab60bcb65913454a9340c5754cee4.tar.gz
openocd+libswd-719f9ecde32ab60bcb65913454a9340c5754cee4.tar.bz2
openocd+libswd-719f9ecde32ab60bcb65913454a9340c5754cee4.tar.xz
openocd+libswd-719f9ecde32ab60bcb65913454a9340c5754cee4.zip
Added mips_ejtag_drscan_32_out() for optimization.
Diffstat (limited to 'src/target/mips_ejtag.c')
-rw-r--r--src/target/mips_ejtag.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c
index 087be076..6229055d 100644
--- a/src/target/mips_ejtag.c
+++ b/src/target/mips_ejtag.c
@@ -121,6 +121,21 @@ int mips_ejtag_drscan_32(struct mips_ejtag *ejtag_info, uint32_t *data)
return ERROR_OK;
}
+void mips_ejtag_drscan_32_out(struct mips_ejtag *ejtag_info, uint32_t data)
+{
+ struct jtag_tap *tap;
+ tap = ejtag_info->tap;
+ assert(tap != NULL);
+
+ struct scan_field field;
+
+ field.num_bits = 32;
+ field.out_value = (uint8_t *)&data;
+ field.in_value = NULL;
+
+ jtag_add_dr_scan(tap, 1, &field, TAP_IDLE);
+}
+
int mips_ejtag_drscan_8(struct mips_ejtag *ejtag_info, uint32_t *data)
{
struct jtag_tap *tap;