summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/hwtracing/coresight/coresight-stm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight-stm.c
index 4264606598203..9305e5616bf1f 100644
--- a/drivers/hwtracing/coresight/coresight-stm.c
+++ b/drivers/hwtracing/coresight/coresight-stm.c
@@ -154,6 +154,11 @@ struct stm_drvdata {
u32 stmheer;
u32 stmheter;
u32 stmhebsr;
+ u32 devid;
+ u32 tcsr;
+ u32 spfeat1r;
+ u32 spfeat3r;
+ u32 hemastr;
struct stm_metadata metadata;
};
@@ -208,6 +213,12 @@ static void stm_enable_hw(struct stm_drvdata *drvdata)
metadata->spfeat3r = readl_relaxed(drvdata->base + STMSPFEAT3R);
metadata->hemastr = readl_relaxed(drvdata->base + STMHEMASTR);
+ drvdata->devid = readl_relaxed(drvdata->base + CORESIGHT_DEVID);
+ drvdata->tcsr = readl_relaxed(drvdata->base + STMTCSR);
+ drvdata->spfeat1r = readl_relaxed(drvdata->base + STMSPFEAT1R);
+ drvdata->spfeat3r = readl_relaxed(drvdata->base + STMSPFEAT3R);
+ drvdata->hemastr = readl_relaxed(drvdata->base + STMHEMASTR);
+
CS_LOCK(drvdata->base);
}