coresight: tmc: splitting driver in ETB/ETF and ETR components
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:50 +0000 (11:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:46:35 +0000 (15:46 -0600)
commitde03aeaf645691669fbcda2ec364c143ab7d900b
treee0d14eb0dcddbcbfb3dd0f15d381df2fe7a1ce2b
parent5364b7d8eb0e51193f7a6e030fe83481b575f277
coresight: tmc: splitting driver in ETB/ETF and ETR components

The TMC block can operate in 3 modes (ETB, ETF and ETR) and accessed
via two interfaces (sysFS and Perf).  That makes 6 mode to cover, which
is way too much coupling for a single file.

This patch splits the original TMC driver in 2 halves, one for ETB/ETF
and another one for ETR mode.  A common core is kept for functionality
common to all 3 modes.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 6c6ed1e244c0530fb76a8b52024f199f398ef100)
drivers/hwtracing/coresight/Makefile
drivers/hwtracing/coresight/coresight-tmc-etf.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-tmc-etr.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h