cortex_a : multiple target on the same dap
authorMichel JAOUEN <michel.jaouen@stericsson.com>
Tue, 12 Apr 2011 16:24:50 +0000 (18:24 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 13 Apr 2011 08:56:52 +0000 (10:56 +0200)
src/jtag/jtag.h
src/target/cortex_a.c

index 6709cf717daef7c734973189b17be1660335c817..a3ce3711694d3442b5a2356faef022ac42d6e2ed 100644 (file)
@@ -164,6 +164,8 @@ struct jtag_tap {
        struct jtag_tap_event_action *event_action;
 
        struct jtag_tap* next_tap;
+       /* dap instance if some null if no instance , initialized to 0 by calloc*/
+       struct adiv5_dap *dap; 
 };
 
 void jtag_tap_init(struct jtag_tap *tap);
index f81f0693fb6ff46556685a8946cfc874155b2649..74516d261a61703e8cb203c2141e8b83d8d7975f 100644 (file)
@@ -1959,6 +1959,11 @@ static int cortex_a8_init_arch_info(struct target *target,
 
        /* Setup struct cortex_a8_common */
        cortex_a8->common_magic = CORTEX_A8_COMMON_MAGIC;
+       /*  tap has no dap initialized */
+       if (!tap->dap)
+       {
+       armv7a->armv4_5_common.dap = dap;
+       /* Setup struct cortex_a8_common */
        armv4_5->arch_info = armv7a;
 
        /* prepare JTAG information for the new target */
@@ -1971,6 +1976,11 @@ static int cortex_a8_init_arch_info(struct target *target,
 
        /* Number of bits for tar autoincrement, impl. dep. at least 10 */
        dap->tar_autoincr_block = (1 << 10);
+       dap->memaccess_tck = 80;
+       tap->dap = dap;
+    }
+       else
+       armv7a->armv4_5_common.dap = tap->dap;
 
        cortex_a8->fast_reg_read = 0;
 

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)