Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbc618a0 authored by Aparna Das's avatar Aparna Das
Browse files

coresight: add support for etmv4



Add support for Embedded Trace Macrocell v4 trace architecture
which is required for instruction trace on ARMv8 arctitecture.

Change-Id: Iff24690e3161eb12d6f0e09af0c45f9739c7ca66
Signed-off-by: default avatarAparna Das <adas@codeaurora.org>
parent 04ad2ccf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ Required properties:
	"arm,coresight-funnel" for coresight funnel devices,
	"arm,coresight-stm" for coresight stm trace device,
	"arm,coresight-etm" for coresight etm trace devices,
	"arm,coresight-etmv4" for coresight etmv4 trace devices,
	"qcom,coresight-csr" for coresight csr device,
	"arm,coresight-cti" for coresight cti devices,
	"qcom,coresight-hwevent" for coresight hardware event devices
@@ -70,6 +71,10 @@ Required properties:
		compatible : should be "arm,coresight-etm"
		reg-names  : should be:
			"etm-base" - physical base address of etm registers
	- for coresight etmv4 trace devices
		compatible : should be "arm,coresight-etmv4"
		reg-names  : should be:
			"etm-base" - physical base address of etmv4 registers
	- for coresight csr device:
		compatible : should be "qcom,coresight-csr"
		reg-names  : should be:
+19 −0
Original line number Diff line number Diff line
@@ -152,6 +152,25 @@ config CORESIGHT_ETM_PCSAVE_DEFAULT_ENABLE

	  If unsure, say 'N' here to avoid potential power penalty.

config CORESIGHT_ETMV4
	bool "CoreSight Embedded Trace Macrocell v4 driver"
	help
	  This driver provides support for processor tracing which allows
	  tracing the instructions that the processor is executing on ARMv8
	  architecture. This is primarily useful for instruction level
	  tracing.

config CORESIGHT_ETMV4_DEFAULT_ENABLE
	bool "Turn on ETMV4 tracing by default"
	depends on CORESIGHT_ETMV4
	help
	  Turns on CoreSight ETMV4 tracing (processor tracing) by default.
	  Otherwise, tracing is disabled by default but can be enabled via
	  sysfs.

	  If unsure, say 'N' here to avoid potential power and performance
	  penalty.

config CORESIGHT_AUDIO_ETM
	bool "Audio processor ETM trace support"
	help
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ obj-$(CONFIG_CORESIGHT_REPLICATOR) += coresight-replicator.o
obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
obj-$(CONFIG_CORESIGHT_HWEVENT) += coresight-hwevent.o
obj-$(CONFIG_CORESIGHT_ETM) += coresight-etm.o coresight-etm-cp14.o
obj-$(CONFIG_CORESIGHT_ETMV4) += coresight-etmv4.o
obj-$(CONFIG_CORESIGHT_AUDIO_ETM) += coresight-audio-etm.o
obj-$(CONFIG_CORESIGHT_MODEM_ETM) += coresight-modem-etm.o
obj-$(CONFIG_CORESIGHT_WCN_ETM) += coresight-wcn-etm.o
+3384 −0

File added.

Preview size limit exceeded, changes collapsed.