arm_adi_v5: add/move apsel member in struct adiv5_dap
commitfa93174a56c0aca1201bebf88795d6fe31c18aa1
authorLuca Ellero <lroluk@gmail.com>
Mon, 14 Feb 2011 21:46:53 +0000 (14 21:46 +0000)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 17 Feb 2011 08:28:07 +0000 (17 09:28 +0100)
treea85fb95bf208d8074053d8e8744198e340611048
parent01edbc2c3f3f2927ec7b7a1ec2b602dca760512b
arm_adi_v5: add/move apsel member in struct adiv5_dap

This patch tries to make some order in "apsel" mess.
"dap apsel" command was quite useless (and broken) by itself.
With this patch we can use it to select between AHB or APB memory access
(previous patch 05ab8bdb813acdcd74afa71d6656c2df816cb230 was somehow broken).

- moves member apsel (in struct adiv5_dap) to ap_current
- adds apsel member

this strange choice is made trying to keep coherence in "dap apsel" command
 and to keep compatibility with other code (for example cortex_a8).

Signed-off-by: Luca Ellero <lroluk@gmail.com>
src/target/adi_v5_jtag.c
src/target/arm_adi_v5.c
src/target/arm_adi_v5.h
src/target/cortex_a9.c