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:
parent
1233de5f90
commit
c2d44c36d6
|
@ -467,13 +467,13 @@ PLD_CREATE_COMMAND_HANDLER(intel_pld_create_command)
|
||||||
static const struct command_registration intel_exec_command_handlers[] = {
|
static const struct command_registration intel_exec_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.name = "set_bscan",
|
.name = "set_bscan",
|
||||||
.mode = COMMAND_EXEC,
|
.mode = COMMAND_ANY,
|
||||||
.handler = intel_set_bscan_command_handler,
|
.handler = intel_set_bscan_command_handler,
|
||||||
.help = "set boundary scan register length of FPGA",
|
.help = "set boundary scan register length of FPGA",
|
||||||
.usage = "pld_name len",
|
.usage = "pld_name len",
|
||||||
}, {
|
}, {
|
||||||
.name = "set_check_pos",
|
.name = "set_check_pos",
|
||||||
.mode = COMMAND_EXEC,
|
.mode = COMMAND_ANY,
|
||||||
.handler = intel_set_check_pos_command_handler,
|
.handler = intel_set_check_pos_command_handler,
|
||||||
.help = "set check_pos of FPGA",
|
.help = "set check_pos of FPGA",
|
||||||
.usage = "pld_name pos",
|
.usage = "pld_name pos",
|
||||||
|
|
|
@ -526,7 +526,7 @@ static const struct command_registration lattice_exec_command_handlers[] = {
|
||||||
.usage = "pld_name value",
|
.usage = "pld_name value",
|
||||||
}, {
|
}, {
|
||||||
.name = "set_preload",
|
.name = "set_preload",
|
||||||
.mode = COMMAND_EXEC,
|
.mode = COMMAND_ANY,
|
||||||
.handler = lattice_set_preload_command_handler,
|
.handler = lattice_set_preload_command_handler,
|
||||||
.help = "set length for preload (device specific)",
|
.help = "set length for preload (device specific)",
|
||||||
.usage = "pld_name value",
|
.usage = "pld_name value",
|
||||||
|
|
Loading…
Reference in New Issue