diff options
author | Kent Brinkley <jkbrinkley.imgtec@gmail.com> | 2014-10-21 07:46:30 -0700 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2016-10-04 11:41:34 +0100 |
commit | 727f178ab9d7cee04d883555aa57b917c3f2296c (patch) | |
tree | df5fa4375219de96de9d9681909ddd49528a7fe5 /src/target/mips32.c | |
parent | 5108fb591b845ba066430ded56ca9c17e26d3f3f (diff) | |
download | riscv-openocd-727f178ab9d7cee04d883555aa57b917c3f2296c.zip riscv-openocd-727f178ab9d7cee04d883555aa57b917c3f2296c.tar.gz riscv-openocd-727f178ab9d7cee04d883555aa57b917c3f2296c.tar.bz2 |
mips: Added #define for scan_delay legacy mode default value
Believe in using defines to make maintenance easier.
Change-Id: I8edf151352131bbf2b884dfcd67ca5764b11b13c
Signed-off-by: Kent Brinkley <jkbrinkley.imgtec@gmail.com>
Reviewed-on: http://openocd.zylin.com/2350
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
Diffstat (limited to 'src/target/mips32.c')
-rw-r--r-- | src/target/mips32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/mips32.c b/src/target/mips32.c index 3292446..8c77986 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -384,7 +384,7 @@ int mips32_init_arch_info(struct target *target, struct mips32_common *mips32, s mips32->read_core_reg = mips32_read_core_reg; mips32->write_core_reg = mips32_write_core_reg; - mips32->ejtag_info.scan_delay = 2000000; /* Initial default value */ + mips32->ejtag_info.scan_delay = MIPS32_SCAN_DELAY_LEGACY_MODE; /* Initial default value */ mips32->ejtag_info.mode = 0; /* Initial default value */ return ERROR_OK; @@ -911,7 +911,7 @@ COMMAND_HANDLER(mips32_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 >= 2000000) { + if (ejtag_info->scan_delay >= MIPS32_SCAN_DELAY_LEGACY_MODE) { ejtag_info->mode = 0; command_print(CMD_CTX, "running in legacy mode"); } else { |