xref: /linux/drivers/hwtracing/coresight/coresight-etm4x-cfg.h (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1810ac401SMike Leach /* SPDX-License-Identifier: GPL-2.0 */
2810ac401SMike Leach /*
3810ac401SMike Leach  * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
4810ac401SMike Leach  */
5810ac401SMike Leach 
6810ac401SMike Leach #ifndef _CORESIGHT_ETM4X_CFG_H
7810ac401SMike Leach #define _CORESIGHT_ETM4X_CFG_H
8810ac401SMike Leach 
9810ac401SMike Leach #include "coresight-config.h"
10810ac401SMike Leach #include "coresight-etm4x.h"
11810ac401SMike Leach 
12*7fdc9bb2SMike Leach /* ETMv4 specific config defines */
13*7fdc9bb2SMike Leach 
14*7fdc9bb2SMike Leach /* resource IDs */
15*7fdc9bb2SMike Leach 
16*7fdc9bb2SMike Leach #define ETM4_CFG_RES_CTR	0x001
17*7fdc9bb2SMike Leach #define ETM4_CFG_RES_CMP	0x002
18*7fdc9bb2SMike Leach #define ETM4_CFG_RES_CMP_PAIR0	0x003
19*7fdc9bb2SMike Leach #define ETM4_CFG_RES_CMP_PAIR1	0x004
20*7fdc9bb2SMike Leach #define ETM4_CFG_RES_SEL	0x005
21*7fdc9bb2SMike Leach #define ETM4_CFG_RES_SEL_PAIR0	0x006
22*7fdc9bb2SMike Leach #define ETM4_CFG_RES_SEL_PAIR1	0x007
23*7fdc9bb2SMike Leach #define ETM4_CFG_RES_SEQ	0x008
24*7fdc9bb2SMike Leach #define ETM4_CFG_RES_TS		0x009
25*7fdc9bb2SMike Leach #define ETM4_CFG_RES_MASK	0x00F
26*7fdc9bb2SMike Leach 
27810ac401SMike Leach /* ETMv4 specific config functions */
28810ac401SMike Leach int etm4_cscfg_register(struct coresight_device *csdev);
29810ac401SMike Leach 
30810ac401SMike Leach #endif /* CORESIGHT_ETM4X_CFG_H */
31