From 7660c15f02c5a9cf4ac350457283dea0740b9317 Mon Sep 17 00:00:00 2001 From: Salvador Arroyo Date: Sun, 24 Aug 2014 20:56:05 +0200 Subject: [PATCH] MIPS32 Fix typos I suppose 0xff300008 is the correct value for EJTAG_V20_DBS. 20 miliseconds is too much for scan delay, 2ms is enough in mips_m4k scan_delay handler. mips32 scan_delay has the correct value. Change-Id: Ie9dc650065a58e845687058a4c930f85909beec9 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/2271 Tested-by: jenkins Reviewed-by: Kent Brinkley Reviewed-by: Oleksij Rempel Reviewed-by: Spencer Oliver --- src/target/mips_ejtag.h | 2 +- src/target/mips_m4k.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h index 3e0d8310..16918a20 100644 --- a/src/target/mips_ejtag.h +++ b/src/target/mips_ejtag.h @@ -144,7 +144,7 @@ #define EJTAG_V20_IBC_OFFS 0x4 /* IBC Offset */ #define EJTAG_V20_IBM_OFFS 0x8 #define EJTAG_V20_IBAn_STEP 0x10 /* Offset for next channel */ -#define EJTAG_V20_DBS 0xFF30008 +#define EJTAG_V20_DBS 0xFF300008 #define EJTAG_V20_DBA0 0xFF300200 #define EJTAG_V20_DBC_OFFS 0x4 #define EJTAG_V20_DBM_OFFS 0x8 diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index 650f7992..e8a38b96 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -1341,7 +1341,7 @@ COMMAND_HANDLER(mips_m4k_handle_scan_delay_command) return ERROR_COMMAND_SYNTAX_ERROR; command_print(CMD_CTX, "scan delay: %d nsec", ejtag_info->scan_delay); - if (ejtag_info->scan_delay >= 20000000) { + if (ejtag_info->scan_delay >= 2000000) { ejtag_info->mode = 0; command_print(CMD_CTX, "running in legacy mode"); } else { -- 2.39.5