summaryrefslogtreecommitdiff
path: root/src/target/adi_v5_jtag.c
diff options
context:
space:
mode:
authorLuca Ellero <lroluk@gmail.com>2011-02-14 21:46:53 +0000
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-02-17 09:28:07 +0100
commitfa93174a56c0aca1201bebf88795d6fe31c18aa1 (patch)
treea85fb95bf208d8074053d8e8744198e340611048 /src/target/adi_v5_jtag.c
parent01edbc2c3f3f2927ec7b7a1ec2b602dca760512b (diff)
downloadopenocd+libswd-fa93174a56c0aca1201bebf88795d6fe31c18aa1.tar.gz
openocd+libswd-fa93174a56c0aca1201bebf88795d6fe31c18aa1.tar.bz2
openocd+libswd-fa93174a56c0aca1201bebf88795d6fe31c18aa1.tar.xz
openocd+libswd-fa93174a56c0aca1201bebf88795d6fe31c18aa1.zip
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>
Diffstat (limited to 'src/target/adi_v5_jtag.c')
-rw-r--r--src/target/adi_v5_jtag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c
index 48b4a7b8..75461c3f 100644
--- a/src/target/adi_v5_jtag.c
+++ b/src/target/adi_v5_jtag.c
@@ -392,7 +392,7 @@ static int jtag_ap_q_bankselect(struct adiv5_dap *dap, unsigned reg)
return ERROR_OK;
dap->ap_bank_value = select_ap_bank;
- select_ap_bank |= dap->apsel;
+ select_ap_bank |= dap->ap_current;
return jtag_dp_q_write(dap, DP_SELECT, select_ap_bank);
}