summaryrefslogtreecommitdiff
path: root/src/target/mips32_dmaacc.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 06:21:17 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 06:21:17 +0000
commit539527ab74f73bfd27d055d7ca20d30176be5e17 (patch)
tree0cbc6b696813a313807a63f3d0810d760ac339b4 /src/target/mips32_dmaacc.h
parent3600e7c6e04117b192e428adb7ff7d9515c982f5 (diff)
downloadopenocd+libswd-539527ab74f73bfd27d055d7ca20d30176be5e17.tar.gz
openocd+libswd-539527ab74f73bfd27d055d7ca20d30176be5e17.tar.bz2
openocd+libswd-539527ab74f73bfd27d055d7ca20d30176be5e17.tar.xz
openocd+libswd-539527ab74f73bfd27d055d7ca20d30176be5e17.zip
John McCarthy <jgmcc@magma.ca> cleans up the usage of the
ejtag_info->ejtag_ctrl variable. It was being overwritten by the value read back from the EJTAG CONTROL register. Because of the way this register works you do not want to use the value returned to write the register, you always want to write the bits explicitly. The second patch just reduces the DMA retries to 0 in anticipation of removing the retry code altogether. git-svn-id: svn://svn.berlios.de/openocd/trunk@1049 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/mips32_dmaacc.h')
-rw-r--r--src/target/mips32_dmaacc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips32_dmaacc.h b/src/target/mips32_dmaacc.h
index 2383ee9f..443fef80 100644
--- a/src/target/mips32_dmaacc.h
+++ b/src/target/mips32_dmaacc.h
@@ -32,7 +32,7 @@
#define EJTAG_CTRL_DMA_WORD 0x00000100
#define EJTAG_CTRL_DMA_TRIPLEBYTE 0x00000180
-#define RETRY_ATTEMPTS 4
+#define RETRY_ATTEMPTS 0
extern int mips32_dmaacc_read_mem(mips_ejtag_t *ejtag_info, u32 addr, int size, int count, void *buf);
extern int mips32_dmaacc_write_mem(mips_ejtag_t *ejtag_info, u32 addr, int size, int count, void *buf);