Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Commit

Permalink
coresight: ETM: Add support for ARM Cortex-A73
Browse files Browse the repository at this point in the history
Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
also add description of the CPU to which the ETM belongs, to make
it easier to identify the ETM devices.

Cc: Mathieu Poirier <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
  • Loading branch information
Suzuki K Poulose authored and docularxu committed Nov 3, 2017
1 parent 0b07194 commit a22bfb3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions drivers/hwtracing/coresight/coresight-etm4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,8 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
}

pm_runtime_put(&adev->dev);
dev_info(dev, "%s initialized\n", (char *)id->data);
dev_info(dev, "CPU%d: %s initialized\n",
drvdata->cpu, (char *)id->data);

if (boot_enable) {
coresight_enable(drvdata->csdev);
Expand All @@ -1052,21 +1053,26 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
return ret;
}

static const struct amba_id etm4_ids[] = {
{ /* ETM 4.0 - Cortex-A53 */
static struct amba_id etm4_ids[] = {
{
.id = 0x000bb95d,
.mask = 0x000fffff,
.data = "ETM 4.0",
.data = "Cortex-A53 ETM v4.0",
},
{ /* ETM 4.0 - Cortex-A57 */
{
.id = 0x000bb95e,
.mask = 0x000fffff,
.data = "ETM 4.0",
.data = "Cortex-A57 ETM v4.0",
},
{ /* ETM 4.0 - A72, Maia, HiSilicon */
{
.id = 0x000bb95a,
.mask = 0x000fffff,
.data = "ETM 4.0",
.data = "Cortex-A72 ETM v4.0",
},
{
.id = 0x000bb959,
.mask = 0x000fffff,
.data = "Cortex-A73 ETM v4.0",
},
{ 0, 0},
};
Expand Down

0 comments on commit a22bfb3

Please sign in to comment.