pld: allow calling of configuration functions before 'init' 35/7835/4
authorDaniel Anselmi <danselmi@gmx.ch>
Mon, 31 Jul 2023 19:10:52 +0000 (21:10 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 12 Aug 2023 16:48:06 +0000 (16:48 +0000)
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>
src/pld/intel.c
src/pld/lattice.c

index e5c9273069c2677c9c033691200be47aef890e7f..ee3097391b31d2e33caa4f73e43533c9b33bc9ec 100644 (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",
index 018cb2693eb8fa42410703b1e56d1d8781470c74..0cd08dd331263153ce414d280989c09658101351 100644 (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",

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)