diff options
author | Marc Schink <dev@zapb.de> | 2021-07-31 23:44:24 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-08-14 13:36:00 +0100 |
commit | 620211bec677306854786892dcc0b6876a46a057 (patch) | |
tree | 97d669828d82a84f1822537c083664f4b447874f /src/jtag/startup.tcl | |
parent | a33646a8827984c32e436603b552602b958c27f6 (diff) | |
download | riscv-openocd-620211bec677306854786892dcc0b6876a46a057.zip riscv-openocd-620211bec677306854786892dcc0b6876a46a057.tar.gz riscv-openocd-620211bec677306854786892dcc0b6876a46a057.tar.bz2 |
drivers/linuxgpiod: Group adapter commands
Use a command group 'linuxgpiod' with subcommands instead of individual
commands with 'linuxgpiod_' prefix.
The old commands are still available for backward compatibility but
marked as deprecated.
Change-Id: Iad9b330363f81128ab1ec1cbc498df28ba2ca152
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6400
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/jtag/startup.tcl')
-rw-r--r-- | src/jtag/startup.tcl | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 688d1fc..5a0f967 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -471,4 +471,76 @@ proc bcm2835gpio_peripheral_base args { eval bcm2835gpio peripheral_base $args } +lappend _telnet_autocomplete_skip linuxgpiod_jtag_nums +proc linuxgpiod_jtag_nums args { + echo "DEPRECATED! use 'linuxgpiod jtag_nums' not 'linuxgpiod_jtag_nums'" + eval linuxgpiod jtag_nums $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_tck_num +proc linuxgpiod_tck_num args { + echo "DEPRECATED! use 'linuxgpiod tck_num' not 'linuxgpiod_tck_num'" + eval linuxgpiod tck_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_tms_num +proc linuxgpiod_tms_num args { + echo "DEPRECATED! use 'linuxgpiod tms_num' not 'linuxgpiod_tms_num'" + eval linuxgpiod tms_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_tdo_num +proc linuxgpiod_tdo_num args { + echo "DEPRECATED! use 'linuxgpiod tdo_num' not 'linuxgpiod_tdo_num'" + eval linuxgpiod tdo_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_tdi_num +proc linuxgpiod_tdi_num args { + echo "DEPRECATED! use 'linuxgpiod tdi_num' not 'linuxgpiod_tdi_num'" + eval linuxgpiod tdi_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_srst_num +proc linuxgpiod_srst_num args { + echo "DEPRECATED! use 'linuxgpiod srst_num' not 'linuxgpiod_srst_num'" + eval linuxgpiod srst_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_trst_num +proc linuxgpiod_trst_num args { + echo "DEPRECATED! use 'linuxgpiod trst_num' not 'linuxgpiod_trst_num'" + eval linuxgpiod trst_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_swd_nums +proc linuxgpiod_swd_nums args { + echo "DEPRECATED! use 'linuxgpiod swd_nums' not 'linuxgpiod_swd_nums'" + eval linuxgpiod swd_nums $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_swclk_num +proc linuxgpiod_swclk_num args { + echo "DEPRECATED! use 'linuxgpiod swclk_num' not 'linuxgpiod_swclk_num'" + eval linuxgpiod swclk_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_swdio_num +proc linuxgpiod_swdio_num args { + echo "DEPRECATED! use 'linuxgpiod swdio_num' not 'linuxgpiod_swdio_num'" + eval linuxgpiod swdio_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_led_num +proc linuxgpiod_led_num args { + echo "DEPRECATED! use 'linuxgpiod led_num' not 'linuxgpiod_led_num'" + eval linuxgpiod led_num $args +} + +lappend _telnet_autocomplete_skip linuxgpiod_gpiochip +proc linuxgpiod_gpiochip args { + echo "DEPRECATED! use 'linuxgpiod gpiochip' not 'linuxgpiod_gpiochip'" + eval linuxgpiod gpiochip $args +} + # END MIGRATION AIDS |