blob: 5e005709860b0eac255c16aeb56f55b6218b7163 [file] [log] [blame]
Pratik Patel61e91702013-01-27 20:30:42 -08001menuconfig CORESIGHT
2 bool "CoreSight Tracing Support"
Pratik Patel2963de42012-05-17 12:43:40 -07003 help
Pratik Patel61e91702013-01-27 20:30:42 -08004 CoreSight components are compliant with the ARM CoreSight
5 architecture specification and can be connected in various
6 topologies to suite a particular SoCs tracing needs. These trace
7 components can generally be classified as sources, links and
8 sinks. Trace data produced by one or more sources flows through
9 the intermediate links connecting the source to the currently
10 selected sink.
Pratik Patel2963de42012-05-17 12:43:40 -070011
Pratik Patel61e91702013-01-27 20:30:42 -080012 This framework provides an interface for the CoreSight debug and
13 trace drivers to register themselves with. It's intended to build
14 up a topological view of the CoreSight components and configure
15 the right series of components on user input via sysfs. It also
16 provides status information to user space applications through
17 sysfs interface.
Pratik Patel2963de42012-05-17 12:43:40 -070018
Pratik Patel61e91702013-01-27 20:30:42 -080019 If unsure, say 'N' here to avoid potential power, performance and
20 memory penalty.
21
22if CORESIGHT
23
24config HAVE_CORESIGHT_SINK
25 bool
26
Pratik Pateld944cc72013-02-08 11:52:12 -080027config CORESIGHT_CTI
28 bool "CoreSight Cross Trigger Interface driver"
29 help
30 This driver provides support for Cross Trigger Interface that is
31 used to input or output i.e. pass cross trigger events from one
32 hardware component to another. It can also be used to pass
33 software generated events.
34
Pratik Patel61e91702013-01-27 20:30:42 -080035config CORESIGHT_CSR
36 bool "CoreSight Slave Register driver"
37 help
38 This driver provides support for CoreSight Slave Register block
39 that hosts miscellaneous configuration registers.
40
41config CORESIGHT_TMC
42 bool "CoreSight Trace Memory Controller driver"
Pratik Pateld944cc72013-02-08 11:52:12 -080043 select CORESIGHT_CTI
Pratik Patel61e91702013-01-27 20:30:42 -080044 select CORESIGHT_CSR
45 select HAVE_CORESIGHT_SINK
46 help
47 This driver provides support for Trace Memory Controller which
48 can be configured as either an ETB (Embedded Trace Buffer),
49 ETR (Embedded Trace Router) or ETF (Embedded Trace Fifo). It acts
50 as sink when configured as ETB, ETR or ETF in circular buffer mode
51 whereas it is a link when configured as ETF in hardware fifo mode.
52
53 ETB collects trace data in a circular buffer whereas ETR can be
54 used to route trace data to memory allocated in RAM. ETF in
55 circular buffer mode is like an ETB whereas in hardware fifo mode
56 it is a fifo link.
57
58config CORESIGHT_TPIU
59 bool "CoreSight Trace Port Interface Unit driver"
60 select HAVE_CORESIGHT_SINK
61 help
62 This driver provides support for Trace Port Interface Unit which
63 acts as a conduit for offchip trace collection.
64
65config CORESIGHT_ETB
66 bool "CoreSight Embedded Trace Buffer driver"
67 select HAVE_CORESIGHT_SINK
68 help
69 This driver provides support for the legacy Embedded Trace Buffer
70 which is a circular buffer.
71
72if HAVE_CORESIGHT_SINK
73
74config CORESIGHT_FUNNEL
75 bool "CoreSight Funnel driver"
76 help
77 This driver provides support for Funnel which is a link that
78 typically has multiple input ports and a single output port. Input
79 trace data streams from the input ports are interleaved into a
80 single output trace data stream coming out of the output port.
81
82config CORESIGHT_REPLICATOR
83 bool "CoreSight Replicator driver"
84 help
85 This driver provides support for Replicator that typically has
86 a single input port and two output ports. Single trace data
87 stream on the input port is replicated to produce two identical
88 trace data output streams coming out of the two output ports.
89
90config CORESIGHT_STM
91 bool "CoreSight System Trace Macrocell driver"
92 help
93 This driver provides support for hardware assisted software
94 instrumentation based tracing. This is primarily useful for
95 logging useful software events or data.
96
97config CORESIGHT_STM_DEFAULT_ENABLE
98 bool "Turn on STM tracing by default"
99 depends on CORESIGHT_STM
Pratik Patel2963de42012-05-17 12:43:40 -0700100 help
101 Turns on CoreSight STM tracing (hardware assisted software
102 instrumentation based tracing) by default. Otherwise, tracing is
103 disabled by default but can be enabled via sysfs.
104
Pratik Patel61e91702013-01-27 20:30:42 -0800105 If unsure, say 'N' here to avoid potential power and performance
106 penalty.
Pratik Patel2963de42012-05-17 12:43:40 -0700107
Pratik Patel61e91702013-01-27 20:30:42 -0800108config CORESIGHT_ETM
109 bool "CoreSight Embedded Trace Macrocell driver"
110 help
111 This driver provides support for processor tracing which allows
112 tracing the instructions that the processor is executing. This is
113 primarily useful for instruction level tracing.
114
115config CORESIGHT_ETM_DEFAULT_ENABLE
116 bool "Turn on ETM tracing by default"
117 depends on CORESIGHT_ETM
Pratik Patel2963de42012-05-17 12:43:40 -0700118 help
119 Turns on CoreSight ETM tracing (processor tracing) by default.
120 Otherwise, tracing is disabled by default but can be enabled via
121 sysfs.
122
Pratik Patel61e91702013-01-27 20:30:42 -0800123 If unsure, say 'N' here to avoid potential power and performance
124 penalty.
Pushkar Joshi61af7182012-09-12 14:29:23 -0700125
Pratik Patel61e91702013-01-27 20:30:42 -0800126config CORESIGHT_ETM_PCSAVE_DEFAULT_ENABLE
Pratik Patel938e1ff2012-09-28 23:21:46 -0700127 bool "Turn on PC saving by default"
Pratik Patel61e91702013-01-27 20:30:42 -0800128 depends on CORESIGHT_ETM
Pratik Patel938e1ff2012-09-28 23:21:46 -0700129 help
130 Turns on program counter saving on reset by default. Otherwise,
131 PC saving is disabled by default but can be enabled via sysfs.
132
Pratik Patel61e91702013-01-27 20:30:42 -0800133 If unsure, say 'N' here to avoid potential power penalty.
Pratik Patel938e1ff2012-09-28 23:21:46 -0700134
Pratik Patel61e91702013-01-27 20:30:42 -0800135endif
136
137config CORESIGHT_EVENT
138 tristate "CoreSight Event driver"
Pushkar Joshi61af7182012-09-12 14:29:23 -0700139 help
Pratik Patel61e91702013-01-27 20:30:42 -0800140 This driver provides support for registering with various events
141 and performing CoreSight actions like aborting trace on their
142 occurrence.
Pushkar Joshi61af7182012-09-12 14:29:23 -0700143
Pratik Patel61e91702013-01-27 20:30:42 -0800144endif