target: arm_adi_v5: added types and subtypes based on latest coresight documentation

while investigating coresight components, i've found some new partnumbers and devtypes.

Change-Id: Ie68032b0b21d542c2084f80db38b06f5cd4c7591
Signed-off-by: Jiri Kastner <cz172638@gmail.com>
Reviewed-on: http://openocd.zylin.com/2166
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Jiri Kastner 2014-06-10 10:37:50 +02:00 committed by Andreas Fritiofson
parent 712165f483
commit 98443c6a4c

View File

@ -1069,6 +1069,9 @@ static int dap_rom_display(struct command_context *cmd_ctx,
case 2:
subtype = "Buffer";
break;
case 3:
subtype = "Router";
break;
}
break;
case 2:
@ -1106,6 +1109,9 @@ static int dap_rom_display(struct command_context *cmd_ctx,
case 4:
subtype = "Bus";
break;
case 6:
subtype = "Software";
break;
}
break;
case 4:
@ -1120,6 +1126,9 @@ static int dap_rom_display(struct command_context *cmd_ctx,
case 2:
subtype = "Debug Auth";
break;
case 3:
subtype = "Power Requestor";
break;
}
break;
case 5:
@ -1137,6 +1146,35 @@ static int dap_rom_display(struct command_context *cmd_ctx,
case 3:
subtype = "Engine/Coprocessor";
break;
case 4:
subtype = "Bus";
break;
case 5:
subtype = "Memory";
break;
}
break;
case 6:
major = "Perfomance Monitor";
switch (minor) {
case 0:
subtype = "other";
break;
case 1:
subtype = "Processor";
break;
case 2:
subtype = "DSP";
break;
case 3:
subtype = "Engine/Coprocessor";
break;
case 4:
subtype = "Bus";
break;
case 5:
subtype = "Memory";
break;
}
break;
}
@ -1228,6 +1266,14 @@ static int dap_rom_display(struct command_context *cmd_ctx,
type = "Coresight ITM";
full = "(Instrumentation Trace Macrocell)";
break;
case 0x917:
type = "Coresight HTM";
full = "(AHB Trace Macrocell)";
break;
case 0x920:
type = "CoreSight ETM11";
full = "(Embedded Trace)";
break;
case 0x921:
type = "Cortex-A8 ETM";
full = "(Embedded Trace)";
@ -1256,6 +1302,10 @@ static int dap_rom_display(struct command_context *cmd_ctx,
type = "CoreSight Component";
full = "(unidentified Cortex-A9 component)";
break;
case 0x962:
type = "CoreSight STM";
full = "(System Trace Macrocell)";
break;
case 0x9a0:
type = "CoreSight PMU";
full = "(Performance Monitoring Unit)";