mips_ejtag.c: disable DMA for all platforms
DMA seems to be broken in many ways. Don't trust it! Change-Id: I7e28608f299abdf78d02a967c62849b6b2ce5985 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-on: http://openocd.zylin.com/1936 Tested-by: jenkins Reviewed-by: Antony Pavlov <antonynpavlov@gmail.com> Reviewed-by: Paul Fertser <fercerpav@gmail.com>__archive__
parent
09e9625d6c
commit
d2ddb53f7d
|
@ -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_IMP_NODMA ? " noDMA" : " DMA",
|
||||||
ejtag_info->impcode & EJTAG_DCR_MIPS64 ? " MIPS64" : " MIPS32");
|
ejtag_info->impcode & EJTAG_DCR_MIPS64 ? " MIPS64" : " MIPS32");
|
||||||
|
|
||||||
if ((ejtag_info->impcode & EJTAG_IMP_NODMA) == 0)
|
if ((ejtag_info->impcode & EJTAG_IMP_NODMA) == 0) {
|
||||||
LOG_DEBUG("EJTAG: DMA Access Mode Support Enabled");
|
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 */
|
/* set initial state for ejtag control reg */
|
||||||
ejtag_info->ejtag_ctrl = EJTAG_CTRL_ROCC | EJTAG_CTRL_PRACC | EJTAG_CTRL_PROBEN | EJTAG_CTRL_SETDEV;
|
ejtag_info->ejtag_ctrl = EJTAG_CTRL_ROCC | EJTAG_CTRL_PRACC | EJTAG_CTRL_PROBEN | EJTAG_CTRL_SETDEV;
|
||||||
|
|
Loading…
Reference in New Issue