aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.c
diff options
context:
space:
mode:
authorKamal Dasu <kdasu.kdev@gmail.com>2013-08-29 14:02:19 -0400
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-01-10 00:56:45 +0000
commite519099ab7fac4517eaee7dde3275e7b839460ff (patch)
tree8929423ae5a5767f8dd9a3c46dabc2f4ad9ac555 /src/target/arm_adi_v5.c
parent806872a34aa0db95ecef7ba9e0743b18d80842f6 (diff)
downloadriscv-openocd-e519099ab7fac4517eaee7dde3275e7b839460ff.zip
riscv-openocd-e519099ab7fac4517eaee7dde3275e7b839460ff.tar.gz
riscv-openocd-e519099ab7fac4517eaee7dde3275e7b839460ff.tar.bz2
cortex_a: Add support for A15 MPCore
Added Cortex-A15 support for DAP AHB-AP init code as per ADI V5 spec. Also added changes to make the APB MEM-AP to work with A15. Made the the cortex_a target code generic to work with A8, A9 and A15 single core or multicore implementation. Added armv7a code for os_border calculation to work for known A8, A9 and A15 platforms based on the ARM DDI 0344H, ARM DDI 0407F, ARM DDI 0406C ARMV7A architecture docs. Change-Id: Ib2803ab62588bf40f1ae4b9192b619af31525a1a Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com> Reviewed-on: http://openocd.zylin.com/1601 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r--src/target/arm_adi_v5.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index c76cc69..7bb2a0b 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1339,7 +1339,12 @@ static int dap_rom_display(struct command_context *cmd_ctx,
type = "Cortex-A9 Debug";
full = "(Debug Unit)";
break;
+ case 0x4af:
+ type = "Cortex-A15 Debug";
+ full = "(Debug Unit)";
+ break;
default:
+ LOG_DEBUG("Unrecognized Part number 0x%" PRIx32, part_num);
type = "-*- unrecognized -*-";
full = "";
break;
@@ -1408,9 +1413,9 @@ static int dap_info_command(struct command_context *cmd_ctx,
command_print(cmd_ctx, "No AP found at this ap 0x%x", ap);
romtable_present = ((mem_ap) && (dbgbase != 0xFFFFFFFF));
- if (romtable_present) {
+ if (romtable_present)
dap_rom_display(cmd_ctx, dap, ap, dbgbase, 0);
- } else
+ else
command_print(cmd_ctx, "\tNo ROM table present");
dap_ap_select(dap, ap_old);