xref: /OK3568_Linux_fs/kernel/drivers/hwtracing/intel_th/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig INTEL_TH
3*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub controller"
4*4882a593Smuzhiyun	depends on HAS_DMA && HAS_IOMEM
5*4882a593Smuzhiyun	help
6*4882a593Smuzhiyun	  Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that
7*4882a593Smuzhiyun	  produce, switch and output trace data from multiple hardware and
8*4882a593Smuzhiyun	  software sources over several types of trace output ports encoded
9*4882a593Smuzhiyun	  in System Trace Protocol (MIPI STPv2) and is intended to perform
10*4882a593Smuzhiyun	  full system debugging.
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun	  This option enables intel_th bus and common code used by TH
13*4882a593Smuzhiyun	  subdevices to interact with each other and hardware and for
14*4882a593Smuzhiyun	  platform glue layers to drive Intel TH devices.
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	  Say Y here to enable Intel(R) Trace Hub controller support.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunif INTEL_TH
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunconfig INTEL_TH_PCI
21*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub PCI controller"
22*4882a593Smuzhiyun	depends on PCI
23*4882a593Smuzhiyun	help
24*4882a593Smuzhiyun	  Intel(R) Trace Hub may exist as a PCI device. This option enables
25*4882a593Smuzhiyun	  support glue layer for PCI-based Intel TH.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	  Say Y here to enable PCI Intel TH support.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunconfig INTEL_TH_ACPI
30*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub ACPI controller"
31*4882a593Smuzhiyun	depends on ACPI
32*4882a593Smuzhiyun	help
33*4882a593Smuzhiyun	  Intel(R) Trace Hub may exist as an ACPI device. This option enables
34*4882a593Smuzhiyun	  support glue layer for ACPI-based Intel TH. This typically implies
35*4882a593Smuzhiyun	  'host debugger' mode, that is, the trace configuration and capture
36*4882a593Smuzhiyun	  is handled by an external debug host and corresponding controls will
37*4882a593Smuzhiyun	  not be available on the target.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	  Say Y here to enable ACPI Intel TH support.
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunconfig INTEL_TH_GTH
42*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub Global Trace Hub"
43*4882a593Smuzhiyun	help
44*4882a593Smuzhiyun	  Global Trace Hub (GTH) is the central component of the
45*4882a593Smuzhiyun	  Intel TH infrastructure and acts as a switch for source
46*4882a593Smuzhiyun	  and output devices. This driver is required for other
47*4882a593Smuzhiyun	  Intel TH subdevices to initialize.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	  Say Y here to enable GTH subdevice of Intel(R) Trace Hub.
50*4882a593Smuzhiyun
51*4882a593Smuzhiyunconfig INTEL_TH_STH
52*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub Software Trace Hub support"
53*4882a593Smuzhiyun	depends on STM
54*4882a593Smuzhiyun	help
55*4882a593Smuzhiyun	  Software Trace Hub (STH) enables trace data from software
56*4882a593Smuzhiyun	  trace sources to be sent out via Intel(R) Trace Hub. It
57*4882a593Smuzhiyun	  uses stm class device to interface with its sources.
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	  Say Y here to enable STH subdevice of Intel(R) Trace Hub.
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunconfig INTEL_TH_MSU
62*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub Memory Storage Unit"
63*4882a593Smuzhiyun	help
64*4882a593Smuzhiyun	  Memory Storage Unit (MSU) trace output device enables
65*4882a593Smuzhiyun	  storing STP traces to system memory. It supports single
66*4882a593Smuzhiyun	  and multiblock modes of operation and provides read()
67*4882a593Smuzhiyun	  and mmap() access to the collected data.
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun	  Say Y here to enable MSU output device for Intel TH.
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunconfig INTEL_TH_PTI
72*4882a593Smuzhiyun	tristate "Intel(R) Trace Hub PTI output"
73*4882a593Smuzhiyun	help
74*4882a593Smuzhiyun	  Parallel Trace Interface unit (PTI) is a trace output device
75*4882a593Smuzhiyun	  of Intel TH architecture that facilitates STP trace output via
76*4882a593Smuzhiyun	  a PTI port.
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun	  Say Y to enable PTI output of Intel TH data.
79*4882a593Smuzhiyun
80*4882a593Smuzhiyunconfig INTEL_TH_DEBUG
81*4882a593Smuzhiyun	bool "Intel(R) Trace Hub debugging"
82*4882a593Smuzhiyun	depends on DEBUG_FS
83*4882a593Smuzhiyun	help
84*4882a593Smuzhiyun	  Say Y here to enable debugging.
85*4882a593Smuzhiyun
86*4882a593Smuzhiyunendif
87