From 6e32887f917b8e5a870e2d485139820ee5161b4f Mon Sep 17 00:00:00 2001 From: Olivier Schonken Date: Tue, 20 Jan 2015 14:17:20 +0200 Subject: [PATCH] cortex_a: Add Cortex-A5 identification Add Cortex-A5 identification to ROM-table display, and also to cortex_a_init_debug_access. This change is mostly cosmetic. Change-Id: I7b1dd8755d70d45eb5f315aa1918d44a813b3cdf Signed-off-by: Olivier Schonken Reviewed-on: http://openocd.zylin.com/2483 Tested-by: jenkins Reviewed-by: Paul Fertser --- src/target/arm_adi_v5.c | 8 ++++++++ src/target/cortex_a.c | 1 + src/target/cortex_a.h | 1 + 3 files changed, 10 insertions(+) diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 7bb2a0b2d..1576d766d 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1331,6 +1331,14 @@ static int dap_rom_display(struct command_context *cmd_ctx, type = "Cortex-M4 TPUI"; full = "(Trace Port Interface Unit)"; break; + case 0x9a5: + type = "Cortex-A5 ETM"; + full = "(Embedded Trace)"; + break; + case 0xc05: + type = "Cortex-A5 Debug"; + full = "(Debug Unit)"; + break; case 0xc08: type = "Cortex-A8 Debug"; full = "(Debug Unit)"; diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 6e0e52cfe..20ed02349 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -225,6 +225,7 @@ static int cortex_a_init_debug_access(struct target *target) 0); break; + case CORTEX_A5_PARTNUM: case CORTEX_A8_PARTNUM: case CORTEX_A9_PARTNUM: default: diff --git a/src/target/cortex_a.h b/src/target/cortex_a.h index 94d80f92b..ebf79b88c 100644 --- a/src/target/cortex_a.h +++ b/src/target/cortex_a.h @@ -35,6 +35,7 @@ #define CORTEX_A_COMMON_MAGIC 0x411fc082 #define CORTEX_A15_COMMON_MAGIC 0x413fc0f1 +#define CORTEX_A5_PARTNUM 0xc05 #define CORTEX_A7_PARTNUM 0xc07 #define CORTEX_A8_PARTNUM 0xc08 #define CORTEX_A9_PARTNUM 0xc09