diff options
author | Michel JAOUEN <michel.jaouen@stericsson.com> | 2011-04-12 18:24:50 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-04-13 10:56:52 +0200 |
commit | 28ddd16ddce082b2d47ce0a61f485119a20298d6 (patch) | |
tree | b746b395d4a2efcf879b675c01179587b9a9b9a7 /src/target | |
parent | a7844aa4e83481a66fd5df8f33956da586d2f880 (diff) | |
download | openocd+libswd-28ddd16ddce082b2d47ce0a61f485119a20298d6.tar.gz openocd+libswd-28ddd16ddce082b2d47ce0a61f485119a20298d6.tar.bz2 openocd+libswd-28ddd16ddce082b2d47ce0a61f485119a20298d6.tar.xz openocd+libswd-28ddd16ddce082b2d47ce0a61f485119a20298d6.zip |
cortex_a : multiple target on the same dap
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/cortex_a.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index f81f0693..74516d26 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -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; |