pld/virtex2: allow calling set_instr_codes and set_user_codes before 'init'

Change-Id: Ib21366b2fdbf33ee06a958e52b725989114751f4
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7821
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Daniel Anselmi 2023-07-24 01:43:58 +02:00 committed by Antonio Borneo
parent bab8b8c9eb
commit a64928c4e7
1 changed files with 2 additions and 2 deletions

View File

@ -422,14 +422,14 @@ static const struct command_registration virtex2_exec_command_handlers[] = {
.usage = "pld_name",
}, {
.name = "set_instr_codes",
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.handler = virtex2_handle_set_instuction_codes_command,
.help = "set instructions codes used for loading the bitstream/refreshing/jtag-hub",
.usage = "pld_name cfg_out cfg_in jprogb jstart jshutdown"
" [user1 [user2 [user3 [user4]]]]",
}, {
.name = "set_user_codes",
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.handler = virtex2_handle_set_user_codes_command,
.help = "set instructions codes used for jtag-hub",
.usage = "pld_name user1 [user2 [user3 [user4]]]",