Commit 78247e25 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Greg Kroah-Hartman

coresight: etmv4: Fix ETMv4x peripheral ID table

This patch cleans up the peripheral id table for different ETMv4
implementations.

As per Cortex-A53 TRM, the ETM has following id values:

Peripheral ID0	0x5D	0xFE0
Peripheral ID1	0xB9	0xFE4
Peripheral ID2	0x4B	0xFE8
Peripheral ID3	0x00	0xFEC

where, PID2: has the following format:

[7:4]   Revision
[3]     JEDEC   0b1     res1. Indicates a JEP106 identity code is used
[2:0]   DES_1   0b011   ARM Limited. This is bits[6:4] of JEP106 ID code

The existing table entry checks only the bits [1:0], which is not
sufficient enough. Fix it to match bits [3:0], just like the other
entries do. While at it, correct the comment for A57 and the A53 entry.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8505feae
...@@ -812,12 +812,12 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) ...@@ -812,12 +812,12 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
} }
static struct amba_id etm4_ids[] = { static struct amba_id etm4_ids[] = {
{ /* ETM 4.0 - Qualcomm */ { /* ETM 4.0 - Cortex-A53 */
.id = 0x0003b95d, .id = 0x000bb95d,
.mask = 0x0003ffff, .mask = 0x000fffff,
.data = "ETM 4.0", .data = "ETM 4.0",
}, },
{ /* ETM 4.0 - Juno board */ { /* ETM 4.0 - Cortex-A57 */
.id = 0x000bb95e, .id = 0x000bb95e,
.mask = 0x000fffff, .mask = 0x000fffff,
.data = "ETM 4.0", .data = "ETM 4.0",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment