Skip to content

Commit 2894170

Browse files
mikel-armbbRussell King
authored andcommitted
ARM: 8837/1: coresight: etmv4: Update ID register table to add UCI support
Adds macro to enable UCI entries to be added to AMBA ID tables. 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 <mike.leach@linaro.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 4a2910f commit 2894170

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

drivers/hwtracing/coresight/coresight-etm4x.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,18 +1067,21 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
10671067
return ret;
10681068
}
10691069

1070-
#define ETM4x_AMBA_ID(pid) \
1071-
{ \
1072-
.id = pid, \
1073-
.mask = 0x000fffff, \
1070+
static struct amba_cs_uci_id uci_id_etm4[] = {
1071+
{
1072+
/* ETMv4 UCI data */
1073+
.devarch = 0x47704a13,
1074+
.devarch_mask = 0xfff0ffff,
1075+
.devtype = 0x00000013,
10741076
}
1077+
};
10751078

10761079
static const struct amba_id etm4_ids[] = {
1077-
ETM4x_AMBA_ID(0x000bb95d), /* Cortex-A53 */
1078-
ETM4x_AMBA_ID(0x000bb95e), /* Cortex-A57 */
1079-
ETM4x_AMBA_ID(0x000bb95a), /* Cortex-A72 */
1080-
ETM4x_AMBA_ID(0x000bb959), /* Cortex-A73 */
1081-
ETM4x_AMBA_ID(0x000bb9da), /* Cortex-A35 */
1080+
CS_AMBA_ID(0x000bb95d), /* Cortex-A53 */
1081+
CS_AMBA_ID(0x000bb95e), /* Cortex-A57 */
1082+
CS_AMBA_ID(0x000bb95a), /* Cortex-A72 */
1083+
CS_AMBA_ID(0x000bb959), /* Cortex-A73 */
1084+
CS_AMBA_UCI_ID(0x000bb9da, uci_id_etm4), /* Cortex-A35 */
10821085
{},
10831086
};
10841087

drivers/hwtracing/coresight/coresight-priv.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ static inline int etm_writel_cp14(u32 off, u32 val) { return 0; }
183183
} \
184184
}
185185

186+
/* coresight AMBA ID, full UCI structure: id table entry. */
187+
#define CS_AMBA_UCI_ID(pid, uci_ptr) \
188+
{ \
189+
.id = pid, \
190+
.mask = 0x000fffff, \
191+
.data = uci_ptr \
192+
}
193+
186194
/* extract the data value from a UCI structure given amba_id pointer. */
187195
static inline void *coresight_get_uci_data(const struct amba_id *id)
188196
{

0 commit comments

Comments
 (0)