aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/target/mips_ejtag.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c
index 6d51c56f..c24cea3d 100644
--- a/src/target/mips_ejtag.c
+++ b/src/target/mips_ejtag.c
@@ -386,8 +386,11 @@ int mips_ejtag_init(struct mips_ejtag *ejtag_info)
ejtag_info->impcode & EJTAG_IMP_NODMA ? " noDMA" : " DMA",
ejtag_info->impcode & EJTAG_DCR_MIPS64 ? " MIPS64" : " MIPS32");
- if ((ejtag_info->impcode & EJTAG_IMP_NODMA) == 0)
- LOG_DEBUG("EJTAG: DMA Access Mode Support Enabled");
+ if ((ejtag_info->impcode & EJTAG_IMP_NODMA) == 0) {
+ LOG_DEBUG("EJTAG: DMA Access Mode detected. Disabling to "
+ "workaround current broken code.");
+ ejtag_info->impcode |= EJTAG_IMP_NODMA;
+ }
/* set initial state for ejtag control reg */
ejtag_info->ejtag_ctrl = EJTAG_CTRL_ROCC | EJTAG_CTRL_PRACC | EJTAG_CTRL_PROBEN | EJTAG_CTRL_SETDEV;