Commit 1c65b388 authored by Linus Walleij's avatar Linus Walleij Committed by Greg Kroah-Hartman

coresight: etm: print what version of ETM/PTM is detected

Helpfully report a bit more about the hardware found in the
silicon when matching the AMBA device IDs by using the associated
.data pointer in the AMBA match.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 899867ee
...@@ -1859,7 +1859,7 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id) ...@@ -1859,7 +1859,7 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id)
goto err_arch_supported; goto err_arch_supported;
} }
dev_info(dev, "ETM initialized\n"); dev_info(dev, "%s initialized\n", (char *)id->data);
if (boot_enable) { if (boot_enable) {
coresight_enable(drvdata->csdev); coresight_enable(drvdata->csdev);
...@@ -1890,18 +1890,22 @@ static struct amba_id etm_ids[] = { ...@@ -1890,18 +1890,22 @@ static struct amba_id etm_ids[] = {
{ /* ETM 3.3 */ { /* ETM 3.3 */
.id = 0x0003b921, .id = 0x0003b921,
.mask = 0x0003ffff, .mask = 0x0003ffff,
.data = "ETM 3.3",
}, },
{ /* ETM 3.5 */ { /* ETM 3.5 */
.id = 0x0003b956, .id = 0x0003b956,
.mask = 0x0003ffff, .mask = 0x0003ffff,
.data = "ETM 3.5",
}, },
{ /* PTM 1.0 */ { /* PTM 1.0 */
.id = 0x0003b950, .id = 0x0003b950,
.mask = 0x0003ffff, .mask = 0x0003ffff,
.data = "PTM 1.0",
}, },
{ /* PTM 1.1 */ { /* PTM 1.1 */
.id = 0x0003b95f, .id = 0x0003b95f,
.mask = 0x0003ffff, .mask = 0x0003ffff,
.data = "PTM 1.1",
}, },
{ 0, 0}, { 0, 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