coresight: add CTI driver support in upstream implementation
Add CTI driver in upstream implementation of Coresight driver. This change copies drivers/coresight/coresight-cti.c (commit : c155168578a793cafa0c41132554ac5af94926f1) to driver/hwtracing/coresight directory. Change-Id: I4b4b23755c36254d94bd6698b46f15da19c30712 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
This commit is contained in:
parent
7d151e606e
commit
3a727d709c
4 changed files with 1577 additions and 0 deletions
|
@ -95,4 +95,12 @@ config CORESIGHT_STM
|
|||
instrumentation based tracing. This is primarily useful for
|
||||
logging useful software events or data.
|
||||
|
||||
config CORESIGHT_CTI
|
||||
bool "CoreSight Cross Trigger Interface driver"
|
||||
help
|
||||
This driver provides support for Cross Trigger Interface that is
|
||||
used to input or output i.e. pass cross trigger events from one
|
||||
hardware component to another. It can also be used to pass
|
||||
software generated events.
|
||||
|
||||
endif
|
||||
|
|
|
@ -13,3 +13,4 @@ obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o coresight-etm-cp14.o
|
|||
obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
|
||||
obj-$(CONFIG_CORESIGHT_QCOM_REPLICATOR) += coresight-replicator-qcom.o
|
||||
obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
|
||||
obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
|
||||
|
|
1567
drivers/hwtracing/coresight/coresight-cti.c
Normal file
1567
drivers/hwtracing/coresight/coresight-cti.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -32,6 +32,7 @@
|
|||
#define CORESIGHT_DEVTYPE 0xfcc
|
||||
|
||||
#define TIMEOUT_US 100
|
||||
#define BM(lsb, msb) ((BIT(msb) - BIT(lsb)) + BIT(msb))
|
||||
#define BMVAL(val, lsb, msb) ((val & GENMASK(msb, lsb)) >> lsb)
|
||||
#define BVAL(val, n) ((val & BIT(n)) >> n)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue