jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / target / openrisc / or1k_tap_mohor.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /***************************************************************************
4 * Copyright (C) 2013 by Franck Jullien *
5 * elec4fun@gmail.com *
6 ***************************************************************************/
7
8 #ifdef HAVE_CONFIG_H
9 #include "config.h"
10 #endif
11
12 #include "or1k_tap.h"
13 #include "or1k.h"
14
15 #include <jtag/jtag.h>
16
17 #define OR1K_TAP_INST_DEBUG 0x8
18
19 static int or1k_tap_mohor_init(struct or1k_jtag *jtag_info)
20 {
21 LOG_DEBUG("Initialising OpenCores JTAG TAP");
22
23 /* Put TAP into state where it can talk to the debug interface
24 * by shifting in correct value to IR.
25 */
26
27 /* Ensure TAP is reset - maybe not necessary*/
28 jtag_add_tlr();
29
30 struct jtag_tap *tap = jtag_info->tap;
31 struct scan_field field;
32 uint8_t ir_value = OR1K_TAP_INST_DEBUG;
33
34 field.num_bits = tap->ir_length;
35 field.out_value = &ir_value;
36 field.in_value = NULL;
37
38 jtag_add_ir_scan(tap, &field, TAP_IDLE);
39
40 return jtag_execute_queue();
41 }
42
43 static struct or1k_tap_ip mohor_tap = {
44 .name = "mohor",
45 .init = or1k_tap_mohor_init,
46 };
47
48 int or1k_tap_mohor_register(void)
49 {
50 list_add_tail(&mohor_tap.list, &tap_list);
51 return 0;
52 }

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)