This is an automated email from Gerrit. Oleksij Rempel ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1930
-- gerrit commit 89ba07400f8a1992194a5f56ee93de71c98dfce7 Author: Oleksij Rempel <[email protected]> Date: Thu Jan 23 09:47:37 2014 +0100 mips_ejtag.c: do not set v2.6 ECR bits on v2.0 devices Change-Id: I894abbb923282d5f84daf8e0bca69190c07567de Signed-off-by: Oleksij Rempel <[email protected]> diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c index 5ed1aec..48467b6 100644 --- a/src/target/mips_ejtag.c +++ b/src/target/mips_ejtag.c @@ -426,8 +426,14 @@ int mips_ejtag_init(struct mips_ejtag *ejtag_info) if ((ejtag_info->impcode & EJTAG_IMP_NODMA) == 0) LOG_DEBUG("EJTAG: DMA Access Mode Support Enabled"); - /* 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_PRACC | EJTAG_CTRL_PROBEN; + + /* EJTAG_CTRL_ROCC and EJTAG_CTRL_SETDEV are not defined on EJTAG 2.0. + * It brakes EJTAG 2.0 devices which use undefined fields for other + * purpose. */ + if (ejtag_info->ejtag_version != EJTAG_VERSION_20) + ejtag_info->ejtag_ctrl |= EJTAG_CTRL_ROCC | EJTAG_CTRL_SETDEV; + ejtag_info->fast_access_save = -1; mips_ejtag_init_mmr(ejtag_info); -- ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
