From 539527ab74f73bfd27d055d7ca20d30176be5e17 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 14 Oct 2008 06:21:17 +0000 Subject: John McCarthy 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 --- src/target/mips32_dmaacc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/mips32_dmaacc.h') 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); -- cgit v1.2.3