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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:59:30 +0000 (14:59 -0700)
commit6c6ed1e244c0530fb76a8b52024f199f398ef100
tree8878b571db210fb49f02668e05b3f65062d3ccd8
parenta8ab4268e0db93c564ee6ccb770bb3d53af24be9
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>
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