From fa93174a56c0aca1201bebf88795d6fe31c18aa1 Mon Sep 17 00:00:00 2001 From: Luca Ellero Date: Mon, 14 Feb 2011 21:46:53 +0000 Subject: 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 --- src/target/adi_v5_jtag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/adi_v5_jtag.c') 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); } -- cgit v1.2.3