Thread (13 messages) flat view 13 messages, 4 authors, 2018-11-21
STALE2826d

[RFC PATCH 2/3] coresight: etmv4: Update ID register table to add UCI support

From: Mike Leach <hidden>
Date: 2018-11-21 15:57:04

Hi Mathieu
On Tue, 20 Nov 2018 at 20:59, Mathieu Poirier
[off-list ref] wrote:
On Thu, Nov 15, 2018 at 01:28:41AM +0000, Mike Leach wrote:
quoted
Updates the ID register tables to contain a UCI entry for the A35 ETM
device to allow correct matching of driver in the amba bus code.

Signed-off-by: Mike Leach <redacted>
---
 drivers/hwtracing/coresight/coresight-etm4x.c | 26 +++++++++++++++----
 1 file changed, 21 insertions(+), 5 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
index 53e2fb6e86f6..1dcb7e14ea6b 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x.c
@@ -1073,12 +1073,28 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
              .mask   = 0x000fffff,           \
      }

+static struct amba_cs_uci_id uci_id_etm4[] = {
+     {
+             /*  ETMv4 UCI data */
+             .devarch        = 0x00004a13,
+             .mask           = 0x0000ffff,
+             .devtype        = 0x00000013,
+     }
+};
+
+#define ETM4x_AMBA_UCI_ID(pid)                       \
+     {                                       \
+             .id     = pid,                  \
+             .mask   = 0x000fffff,           \
+             .data   = uci_id_etm4,          \
+     }
+
 static const struct amba_id etm4_ids[] = {
-     ETM4x_AMBA_ID(0x000bb95d),              /* Cortex-A53 */
-     ETM4x_AMBA_ID(0x000bb95e),              /* Cortex-A57 */
-     ETM4x_AMBA_ID(0x000bb95a),              /* Cortex-A72 */
-     ETM4x_AMBA_ID(0x000bb959),              /* Cortex-A73 */
-     ETM4x_AMBA_ID(0x000bb9da),              /* Cortex-A35 */
+     ETM4x_AMBA_ID(0x000bb95d),                      /* Cortex-A53 */
+     ETM4x_AMBA_ID(0x000bb95e),                      /* Cortex-A57 */
+     ETM4x_AMBA_ID(0x000bb95a),                      /* Cortex-A72 */
+     ETM4x_AMBA_ID(0x000bb959),                      /* Cortex-A73 */
There is no need to add the extra tabulation for the above.
sorry - unnecessary churn - will fix.

Mike

quoted
+     ETM4x_AMBA_UCI_ID(0x000bb9da),                  /* Cortex-A35 */
      {},
 };

--
2.19.1


-- 
Mike Leach
Principal Engineer, ARM Ltd.
Manchester Design Centre. UK
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help