diff options
author | Marc Schink <dev@zapb.de> | 2021-07-30 18:19:02 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-08-14 13:33:55 +0100 |
commit | 32b18728491c8a0e1cc7b2ea33836db86b92a882 (patch) | |
tree | e1a8b7e8d0fbb4ef9d9806f575418666c4ff0fec /src/jtag | |
parent | 48f34382e3aa1c19480a1b004df35018cbadd93f (diff) | |
download | riscv-openocd-32b18728491c8a0e1cc7b2ea33836db86b92a882.zip riscv-openocd-32b18728491c8a0e1cc7b2ea33836db86b92a882.tar.gz riscv-openocd-32b18728491c8a0e1cc7b2ea33836db86b92a882.tar.bz2 |
drivers/xlnx-pcie-xvc: Group adapter commands
Use a command group 'xlnx_pcie_xvc' with subcommands instead of individual
commands with 'xlnx_pcie_xvc_' prefix.
The old commands are still available for backward compatibility but
marked as deprecated.
Change-Id: I0deaaa14ed14f65bf356f3c248331bfab472f08d
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6391
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/jtag')
-rw-r--r-- | src/jtag/drivers/xlnx-pcie-xvc.c | 15 | ||||
-rw-r--r-- | src/jtag/startup.tcl | 7 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/jtag/drivers/xlnx-pcie-xvc.c b/src/jtag/drivers/xlnx-pcie-xvc.c index 27295f5..c05b9cf 100644 --- a/src/jtag/drivers/xlnx-pcie-xvc.c +++ b/src/jtag/drivers/xlnx-pcie-xvc.c @@ -460,9 +460,9 @@ COMMAND_HANDLER(xlnx_pcie_xvc_handle_config_command) return ERROR_OK; } -static const struct command_registration xlnx_pcie_xvc_command_handlers[] = { +static const struct command_registration xlnx_pcie_xvc_subcommand_handlers[] = { { - .name = "xlnx_pcie_xvc_config", + .name = "config", .handler = xlnx_pcie_xvc_handle_config_command, .mode = COMMAND_CONFIG, .help = "Configure XVC/PCIe JTAG adapter", @@ -471,6 +471,17 @@ static const struct command_registration xlnx_pcie_xvc_command_handlers[] = { COMMAND_REGISTRATION_DONE }; +static const struct command_registration xlnx_pcie_xvc_command_handlers[] = { + { + .name = "xlnx_pcie_xvc", + .mode = COMMAND_ANY, + .help = "perform xlnx_pcie_xvc management", + .chain = xlnx_pcie_xvc_subcommand_handlers, + .usage = "", + }, + COMMAND_REGISTRATION_DONE +}; + static struct jtag_interface xlnx_pcie_xvc_jtag_ops = { .execute_queue = &xlnx_pcie_xvc_execute_queue, }; diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 94dbca2..d4226c6 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -315,4 +315,11 @@ proc presto_serial args { eval presto serial $args } +lappend _telnet_autocomplete_skip xlnx_pcie_xvc_config +proc xlnx_pcie_xvc_config args { + echo "DEPRECATED! use 'xlnx_pcie_xvc config' not 'xlnx_pcie_xvc_config'" + eval xlnx_pcie_xvc config $args +} + + # END MIGRATION AIDS |