pld: allow calling of configuration functions before 'init'

Change-Id: I7c475fbbf8c13ae227e3393f01528eb180e9de51
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7835
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Daniel Anselmi 2023-07-31 21:10:52 +02:00 committed by Antonio Borneo
parent 1233de5f90
commit c2d44c36d6
2 changed files with 3 additions and 3 deletions

View File

@ -467,13 +467,13 @@ PLD_CREATE_COMMAND_HANDLER(intel_pld_create_command)
static const struct command_registration intel_exec_command_handlers[] = {
{
.name = "set_bscan",
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.handler = intel_set_bscan_command_handler,
.help = "set boundary scan register length of FPGA",
.usage = "pld_name len",
}, {
.name = "set_check_pos",
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.handler = intel_set_check_pos_command_handler,
.help = "set check_pos of FPGA",
.usage = "pld_name pos",

View File

@ -526,7 +526,7 @@ static const struct command_registration lattice_exec_command_handlers[] = {
.usage = "pld_name value",
}, {
.name = "set_preload",
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.handler = lattice_set_preload_command_handler,
.help = "set length for preload (device specific)",
.usage = "pld_name value",