From 96f9790279f74f39b35fc3ad09340fd03123180c Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 15 Mar 2010 08:37:43 -0700 Subject: rename jtag_khz as adapter_khz Globally rename "jtag_khz" as "adapter_khz", and move it out of the "jtag" command group ... it needs to be used with non-JTAG transports Includes a migration aid (in jtag/startup.tcl) so that old user scripts won't break. That aid should Sunset in about a year. (We may want to update it to include a nag message too.) Signed-off-by: David Brownell --- src/jtag/tcl.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/jtag/tcl.c') diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index ce17e4b8..8faefd1a 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -1351,7 +1351,7 @@ COMMAND_HANDLER(handle_jtag_ntrst_assert_width_command) return ERROR_OK; } -COMMAND_HANDLER(handle_jtag_khz_command) +COMMAND_HANDLER(handle_adapter_khz_command) { if (CMD_ARGC > 1) return ERROR_COMMAND_SYNTAX_ERROR; @@ -1608,6 +1608,16 @@ COMMAND_HANDLER(handle_tms_sequence_command) } static const struct command_registration interface_command_handlers[] = { + { + .name = "adapter_khz", + .handler = handle_adapter_khz_command, + .mode = COMMAND_ANY, + .help = "With an argument, change to the specified maximum " + "jtag speed. For JTAG, 0 KHz signifies adaptive " + " clocking. " + "With or without argument, display current setting.", + .usage = "[khz]", + }, { .name = "interface", .handler = handle_interface_command, @@ -1636,15 +1646,6 @@ int interface_register_commands(struct command_context *ctx) } static const struct command_registration jtag_command_handlers[] = { - { - .name = "jtag_khz", - .handler = handle_jtag_khz_command, - .mode = COMMAND_ANY, - .help = "With an argument, change to the specified maximum " - "jtag speed. Pass 0 to require adaptive clocking. " - "With or without argument, display current setting.", - .usage = "[khz]", - }, { .name = "jtag_rclk", .handler = handle_jtag_rclk_command, -- cgit v1.2.3